From SA-MP Wiki

Jump to: navigation, search


Reset a player's money to $0.

playeridThe ID of the player to reset the money of.

Return Values:

  • 1: The function was executed successfully.
  • 0: The function failed to execute. This means the player is not connected.

public OnPlayerDeath(playerid, killerid, reason)
    SendClientMessage(playerid, 0xFFFFFFAA, "You died and lost all of your cash!");
    return 1;

Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools
In other languages