Author Topic: Script hunter...  (Read 4258 times)

0 Members and 1 Guest are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Script hunter...
« on: September 10, 2008, 11:51:55 pm »
hi,

   and seen a command that is called !hunt and is as a mode to play, example: putting !hunt begins the hunter, a player puts it, and one must kill him and then give a sum of money for having killed

   
it where the script?

and otherwise

in my server when someone kills a person, does not give you money :S, because it will be?

My script is:

Quote
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 Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Script hunter...
« Reply #1 on: September 11, 2008, 05:52:14 pm »
Code: [Select]
Hey i have repaired it use this.. ;D

[codeon *: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(%idk)
  if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
  vcmp.kick2 %idk
  }
  vcmp.validweapon %idk $4
  vcmp.killingspree.process %idk %idd
  if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek $4 | vcmp.addweaponstat %namek $4 }
  if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
  if (%echolevel > 1) vcmp.echo 04*** $vcmp.nickcolor($1) 04killed $vcmp.nickcolor($3) 4 $par($vcmp.deathreason($1))
  if (($vcmp.playerspawned(%idk)) & (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
  .signal vcmp.event.handledeath %idk
}
]
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Script hunter...
« Reply #2 on: September 11, 2008, 10:27:24 pm »
change where the money? when one kills someone


Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Script hunter...
« Reply #3 on: September 12, 2008, 02:56:22 pm »
Sorry use this one ;)

Code: [Select]
vcmp.setcash $1 $vcmp.money(%idk)
Add this one to ur script....
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Script hunter...
« Reply #4 on: September 12, 2008, 09:42:57 pm »
   
but where it is supposed to go?


Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Script hunter...
« Reply #5 on: September 13, 2008, 10:30:28 am »
Sorry use this one..

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
  ifvcmp.msg %killer Killed - Victim: $vcmp.name(%victim) $+ , Weapon: $vcmp.weapon.name(%weapon) $+ , Reward: $ $+ $bytes($vcmp.reward(%killer),b) $+ , Range: $vcmp.distince.rate($vcmp.distince(%killer,%victim)) $+ ( $+ $vcmp.distince(%killer,%victim) Meters) $+ , Location: $vcmp.area(%victim)
    vcmp.add.kills %killer 1
    vcmp.cash+ %killer $vcmp.reward(%killer)
  }
 (%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
}
 

I hope it will help you now..
Thanks
Punjabi_goli
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>