Give money to or take money from a player.
|playerid||The ID of the player to give money to or take money from.|
|money||The amount of money to give the player. Use a minus value to take money.|
1: The function was executed successfully.
0: The function failed to execute. This means the player is not connected.
public OnPlayerDeath(playerid, killerid, reason)
if (killerid != INVALID_PLAYER_ID)
// Award $1000 to the killer
SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
// Take $500 from the player who died.