Author Topic: Auto-Kick driver-by -help-  (Read 4764 times)

0 Members and 1 Guest are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Auto-Kick driver-by -help-
« on: August 07, 2008, 02:11:44 am »
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:

Code: [Select]
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  :(


Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Auto-Kick driver-by -help-
« Reply #1 on: August 07, 2008, 02:16:52 am »
Here try this
Code: [Select]
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 ]
  }


Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Auto-Kick driver-by -help-
« Reply #2 on: August 07, 2008, 02:25:56 am »
thank again mattz  :) :)


Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Auto-Kick driver-by -help-
« Reply #3 on: August 07, 2008, 02:31:50 am »
no problem  ;)


Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Auto-Kick driver-by -help-
« Reply #4 on: August 07, 2008, 08:46:39 pm »
I tryed everything but its not work   :-\
Heres my code:

Quote
on *: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:
Quote
alias 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 ]

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Auto-Kick driver-by -help-
« Reply #5 on: August 08, 2008, 12:07:34 am »
try:
Code: [Select]
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

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Auto-Kick driver-by -help-
« Reply #6 on: August 08, 2008, 02:24:20 am »
Thanks, its work  ;D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Auto-Kick driver-by -help-
« Reply #7 on: August 08, 2008, 02:46:37 pm »
No problem ;)