ResetPlayerMoney
From SA-MP Wiki
Description:
Reset a player's money to $0.
(playerid)
playerid | The ID of the player to reset the money of. |
Return Values:
- 1: The function 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!"); ResetPlayerMoney(playerid); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerMoney: Check how much money a player has.
- GivePlayerMoney: Give a player money.