[CODE] Hit Man Faction
#1

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.
Reply
#2

Код:
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;
}
Reply
#3

cool thanks bro, I know what to do now!
Reply
#4

Awesome I gave you your first rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)