07.04.2012, 10:25
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.
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; }