Author Topic: Mute or similar  (Read 8577 times)

0 Members and 1 Guest are viewing this topic.

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Mute or similar
« on: July 08, 2008, 07:04:44 am »
is there anyway to mute someone or,remove their commands?



Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Mute or similar
« Reply #1 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.

Windlord

  • Guest
Re: Mute or similar
« Reply #2 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.

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Mute or similar
« Reply #3 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



Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Mute or similar
« Reply #4 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'

Offline bakasan

  • VC:MP Developer
  • Made Man
  • *
  • Posts: 169
    • View Profile
Re: Mute or similar
« Reply #5 on: July 09, 2008, 05:58:52 am »
you could make the commands all admin level 2 or somethin  :o

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Mute or similar
« Reply #6 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
« Last Edit: July 09, 2008, 03:27:23 pm by thijn »

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Mute or similar
« Reply #7 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.



Windlord

  • Guest
Re: Mute or similar
« Reply #8 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)
« Last Edit: July 09, 2008, 05:30:33 pm by Windlord »

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Mute or similar
« Reply #9 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.
« Last Edit: July 09, 2008, 06:19:50 pm by Jack_Bauer »



Windlord

  • Guest
Re: Mute or similar
« Reply #10 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
« Last Edit: July 09, 2008, 07:16:34 pm by Windlord »

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Mute or similar
« Reply #11 on: July 09, 2008, 08:43:17 pm »
we have been working through IRC,we couldnt get it to work? anymore ideas?



Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Mute or similar
« Reply #12 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)

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Mute or similar
« Reply #13 on: July 10, 2008, 08:12:32 pm »
does it work tanax? funciona?



Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Mute or similar
« Reply #14 on: July 10, 2008, 08:36:54 pm »
does it work tanax? funciona?

mmm dude i test my script

-luego te cuento-