ResetPlayerMoney
From SA-MP Wiki
ResetPlayerMoney
ResetPlayerMoney is like it says, a reset for the money of a player. So it just sets the money of the player back to $0.
(playerid)
| playerid | The PlayerID from the person the money needs to be set to $0. |
This function does not return a specific value.
public OnPlayerDeath(playerid, killerid, reason) { SendClientMessage(playerid, 0xFFFFFFAA, "You died. You lost all of your cash!"); ResetPlayerMoney(playerid); return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- GetPlayerMoney: Check how much money a player has.
- GivePlayerMoney: Give a player money.
