• Welcome to Vice City Multiplayer.
 

Script hunter...

Started by Cristian, September 10, 2008, 09:51:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cristian

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
}


Punjabi

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..>>

Cristian

change where the money? when one kills someone


Punjabi

Sorry use this one ;)

vcmp.setcash $1 $vcmp.money(%idk)

Add this one to ur script....
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Cristian

   
but where it is supposed to go?


Punjabi

Sorry use this one..

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..>>