• Welcome to Vice City Multiplayer.
 

Auto-Kick driver-by -help-

Started by Cristian, August 07, 2008, 01:11:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cristian

hello,
          help in script of auto-kick driver-by, to Kick say this:

Quote
<&ArgentinaSpoon> ** sasuke killed tutino  (Driver-By)
<&ArgentinaSpoon> ** Auto - Kick Player:[ ] Reason:[ Driver - By ]
<&ArgentinaSpoon> Admin-Auto-Kick Player:[ ] Reason:[ Driver-By ]
<&ArgentinaSpoon> >> tutino spawned.
<&ArgentinaSpoon> ** sasuke killed _Ana_[Brazil]_ (Driver-By)
<&ArgentinaSpoon> ** Auto - Kick Player:[ ] Reason:[ Driver - By ]
<&ArgentinaSpoon> Admin-Auto-Kick Player:[ ] Reason:[ Driver-By ]
<&ArgentinaSpoon> >> _Ana_[Brazil]_ spawned.

   
this is the script:


on *:SIGNAL:vcmp.event.kill:{
  if ($vcmp.deathreason($4) == Driver-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Driver - By $chr(93)
  vcmp.kick2 %idk
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Driver-By ]
  }


help  :(


Mattz

Here try this
on *:SIGNAL:vcmp.event.kill:{
  if ($vcmp.deathreason($4) == Driver-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname($1) $chr(93) Reason: $+ $chr(91) Driver - By $chr(93)
  vcmp.kick2 $1
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname($1) ] Reason:[ Driver-By ]
  }

Cristian



Mattz


Tamas

I tryed everything but its not work   :-\
Heres my code:

Quoteon *:SIGNAL:vcmp.event.kill:{
  if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname($1) $chr(93) Reason: $+ $chr(91) Driver - By $chr(93)
  vcmp.kick2 $1
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname($1) ] Reason:[ Driver-By ]
  }
  var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)
  vcmp.validweapon %idk $4
  vcmp.killingspree.process %idk %idd
  if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek | vcmp.addweaponstat %namek $4 }
  if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
  if (%echolevel > 1) vcmp.echo 04** $vcmp.sajatnickcolor($1) 04killed $vcmp.sajatnickcolor($3) 4 $par($vcmp.deathreason($4))
  if (($vcmp.isplayerspawned(%idk)) && (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
  .signal vcmp.event.handledeath %idd

Kick alias:
Quotealias vcmp.kick2 {
  ** Admin $vcmp.hgetname(%id) kicking player:[ $$vcmp.hgetname($vcmp.nameid($1)) ] $iif($2,Reason:[ $4- ],)
  .timer. $+ $$vcmp.nameid($1) $+ .kick -m 1 250 vcmp.command kick $$vcmp.nameid($1)
}

When somebody kill someone with drive-by nothing happen, the script not kick him:
<@BootRobocop> [GOLD]Monster killed [SRS]Tamas (Drive-By)
<@BootRobocop> ** Auto - Kick Player:[ ] Reason:[ Driver - By ]

thijn

try:

on *:SIGNAL:vcmp.event.kill:{
  var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)
  if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Driver - By $chr(93)
  vcmp.kick2 %idk
  }
  vcmp.validweapon %idk $4
  vcmp.killingspree.process %idk %idd
  if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek | vcmp.addweaponstat %namek $4 }
  if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
  if (%echolevel > 1) vcmp.echo 04** $vcmp.sajatnickcolor($1) 04killed $vcmp.sajatnickcolor($3) 4 $par($vcmp.deathreason($4))
  if (($vcmp.isplayerspawned(%idk)) && (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
  .signal vcmp.event.handledeath %idd


Tamas


thijn