Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Jack_Bauer on July 08, 2008, 07:04:44 am

Title: Mute or similar
Post by: Jack_Bauer on July 08, 2008, 07:04:44 am
is there anyway to mute someone or,remove their commands?
Title: Re: Mute or similar
Post by: thijn on July 08, 2008, 02:52:56 pm
what basic script do you use?
SanSan has stfu include.
When you talk when you are on the stfu list, u will be kicked.
Title: Re: Mute or similar
Post by: Windlord on July 08, 2008, 05:01:04 pm
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.
Title: Re: Mute or similar
Post by: Jack_Bauer on July 08, 2008, 06:35:10 pm
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
Title: Re: Mute or similar
Post by: ReVilo on July 08, 2008, 07:20:29 pm
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'
Title: Re: Mute or similar
Post by: bakasan on July 09, 2008, 05:58:52 am
you could make the commands all admin level 2 or somethin  :o
Title: Re: Mute or similar
Post by: thijn on July 09, 2008, 03:25:26 pm
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
Title: Re: Mute or similar
Post by: Jack_Bauer on July 09, 2008, 04:58:43 pm
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.
Title: Re: Mute or similar
Post by: Windlord on July 09, 2008, 05:25:45 pm
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)
Title: Re: Mute or similar
Post by: Jack_Bauer on July 09, 2008, 06:09:34 pm
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.
Title: Re: Mute or similar
Post by: Windlord on July 09, 2008, 07:04:12 pm
I am fully aware that you are using sansan.

Code: [Select]
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
Title: Re: Mute or similar
Post by: Jack_Bauer on July 09, 2008, 08:43:17 pm
we have been working through IRC,we couldnt get it to work? anymore ideas?
Title: Re: Mute or similar
Post by: TanaX01 on July 09, 2008, 08:53:51 pm
I am fully aware that you are using sansan.

Code: [Select]
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)
Title: Re: Mute or similar
Post by: Jack_Bauer on July 10, 2008, 08:12:32 pm
does it work tanax? funciona?
Title: Re: Mute or similar
Post by: TanaX01 on July 10, 2008, 08:36:54 pm
does it work tanax? funciona?

mmm dude i test my script

-luego te cuento-
Title: Re: Mute or similar
Post by: Jack_Bauer on July 11, 2008, 08:17:06 am
resolved with this http://forum.vicecitymultiplayer.com/index.php?topic=507.0

thx a lot for your help people!
Title: Re: Mute or similar
Post by: TanaX01 on July 12, 2008, 06:19:36 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  ;)