warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
ResetPlayerMoney
Description
Reset a player's money to $0.
Name | Description |
---|---|
playerid | The ID of the player to reset the money of. |
Returns
1 - The function was executed successfully.
0 - The function failed to execute. This means the player is not connected.
Examples
public OnPlayerDeath(playerid, killerid, WEAPON:reason)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You died and lost all of your cash!");
ResetPlayerMoney(playerid);
return 1;
}
Related Functions
- GetPlayerMoney: Check how much money a player has.
- GivePlayerMoney: Give a player money.