is there anyway to mute someone or,remove their commands?
what basic script do you use?
SanSan has stfu include.
When you talk when you are on the stfu list, u will be kicked.
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.
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
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'
you could make the commands all admin level 2 or somethin :o
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
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.
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)
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.
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
we have been working through IRC,we couldnt get it to work? anymore ideas?
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)
does it work tanax? funciona?
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-
resolved with this http://forum.vicecitymultiplayer.com/index.php?topic=507.0
thx a lot for your help people!
Quote from: Jack_Bauer on July 11, 2008, 07:17:06 AM
resolved with this http://forum.vicecitymultiplayer.com/index.php?topic=507.0
thx a lot for your help people!
mmm i not more help you are ignore my in help ;)