• Welcome to Vice City Multiplayer.
 

Mute or similar

Started by Jack_Bauer, July 08, 2008, 06:04:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jack_Bauer

is there anyway to mute someone or,remove their commands?



thijn

what basic script do you use?
SanSan has stfu include.
When you talk when you are on the stfu list, u will be kicked.


Windlord

Jack_Bauer,

As far as I know there isn't a way although I am aware that such a feature is in the Littlewhitey's Server.

I have tried to ask Adtec but he wouldn't tell me lol.

Jack_Bauer

yeah im ussing sansan, what i want to do is remove the commands from a player so he cant do !blablabla  i dont mind him using the chat,i can stfu him as you said,i want to be able to disable commands if its possible . thx in advance



ReVilo

You can edit the vcmp.gamecmd (or wtvr the alias is i forget)
so that before it does anything it checks and makes sure the player isnt on the 'list'

bakasan

you could make the commands all admin level 2 or somethin  :o

thijn

#6
maby this works:
You put the player on the stfu list.
change the chat alias to:
Quote
on *:SIGNAL:vcmp.event.chat:{
  var %name = $left([ $1 ],-1),%id = $vcmp.nameid(%name), %team = $iif($vcmp.hgetteam(%id) != -1,$v1,255), %cname = $iif($vcmp.hgetteam(%id),$vcmp.nickcolor(%name $+ $par(%team)) $+ :,01 $+ $1 $+ )
  $iif($($+(%,antispam.,[ %name ]),2) == 5,vcmp.kicknow %id flooding,inc -u5 $+(%,antispam.,[ %name ]))
  vcmp.enforcelogin %id
  vcmp.enforce.censor %id $2-
  if ($left($2,1) == !) {
  vcmp.enforcestfu %id
if ($($+(%,anticmdspam.,[ %name ]),2) > 0) { vcmp.adminmsg %id ** Error: You must wait 4 seconds between commands. }
    else { inc -u4 $+(%,anticmdspam.,[ %name ]) | .signal vcmp.event.gamecmd $1- }
  }
  if (%echolevel > 2) vcmp.echo %cname $2-
}
if the player is using a command wich start with "!" the script checks if the player is on the stfu list.

NOTE: Untested


Jack_Bauer

that gave me an idea,what about making a command,adding player to the anticmdspam thing,that will remove his ! permissions and you wouldnt need to change the stfu command.ill have a look but this could be possible.



Windlord

#8
alias vcmp.cmdallow { !return $iif($hget(cmdallow,$1),No,Yes) }
on *:signal:vcmp.event.command:{
  if ($vcmp.cmdallow(%name) != No) {
    blablabla
  }
}

and the cmd to put them on the list....
elseif (!blockcmds* iswm $2) {
  hadd -m cmdallow %name No
}

>> That should work. (Note: I have not tested this)

Jack_Bauer

#9
im going to try that,what about to give them back the cmds?

maybe ?
elseif (!blockcmds* iswm $2) {
  hadd -m cmdallow %name Yes
}

By the way,remember im using sansan.



Windlord

#10
I am fully aware that you are using sansan.


alias vcmp.cmdallow { !return $iif($hget(cmdallow,$1) == No,No,Yes) }
on *:signal:vcmp.event.gamecmd: {
  if ($vcmp.cmdallow($vcmp.hgetname($vcmp.nameid($3))) == Yes) {
    blablabla
  }
}

elseif (!blockcmd* iswm $2) { hadd -m cmdallow $vcmp.hgetname($vcmp.nameid($3)) No }
; to block and

elseif (!unblockcmd* iswm $2) { hdel cmdallow $vcmp.hgetname($vcmp.nameid($3)) }
; to unblock


>> I have never tried this but I hope this works

Jack_Bauer

we have been working through IRC,we couldnt get it to work? anymore ideas?



TanaX01

Quote from: Windlord on July 09, 2008, 06:04:12 PM
I am fully aware that you are using sansan.


alias vcmp.cmdallow { !return $iif($hget(cmdallow,$1) == No,No,Yes) }
on *:signal:vcmp.event.gamecmd: {
  if ($vcmp.cmdallow($vcmp.hgetname($vcmp.nameid($3))) == Yes) {
    blablabla
  }
}

elseif (!blockcmd* iswm $2) { hadd -m cmdallow $vcmp.hgetname($vcmp.nameid($3)) No }
; to block and

elseif (!unblockcmd* iswm $2) { hdel cmdallow $vcmp.hgetname($vcmp.nameid($3)) }
; to unblock


>> I have never tried this but I hope this works

Thank WindLord  8)

Jack_Bauer

does it work tanax? funciona?



TanaX01

Quote from: Jack_Bauer on July 10, 2008, 07:12:32 PM
does it work tanax? funciona?

mmm dude i test my script

-luego te cuento-