ResetPlayerMoney

ResetPlayerMoney

Description:
Function ResetPlayerMoney reset a player's money to $0.


Parameters:
(playerid)
int playerid The 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.


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


Related Functions
The following functions may be useful, as they are related to this function in one way or another.