Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Cristian 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:
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
}
-
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
}
]
-
change where the money? when one kills someone
-
Sorry use this one ;)
vcmp.setcash $1 $vcmp.money(%idk)
Add this one to ur script....
-
but where it is supposed to go?
-
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