SA-MP Forums Archive
[CODE] Hit Man Faction - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [CODE] Hit Man Faction (/showthread.php?tid=332147)



[CODE] Hit Man Faction - squomp - 07.04.2012

Im trying to make a hitman faction, is there a function that checks who killed a certain person, that way I can direct the payment to them.


Re: [CODE] Hit Man Faction - Marco_Valentine - 07.04.2012

Код:
OnPlayerDeath(playerid,killerid)
{
if(hitman[playerid] == 1){ // however you choose to detect if a player is a hitman
//playerid if the player that died
//killerid is the hitman
giveplayercash(killerid,CASH); //Set 'CASH' to the amount you want the hitman to receive for the kill
}
return 1;
}



Re: [CODE] Hit Man Faction - squomp - 07.04.2012

cool thanks bro, I know what to do now!


Re: [CODE] Hit Man Faction - squomp - 07.04.2012

Awesome I gave you your first rep!