ResetPlayerMoney
From SA-MP Wiki
(Difference between revisions)
Revision as of 22:28, 25 April 2012 Smithy (Talk | contribs) ← Previous diff |
Revision as of 01:34, 5 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Reset a player's money to $0.}} | {{Description|Reset a player's money to $0.}} | ||
Line 24: | Line 23: | ||
[[Category:Scripting_Functions]] | [[Category:Scripting_Functions]] | ||
+ | [[fr:ResetPlayerMoney]] | ||
[[nl:ResetPlayerMoney]] | [[nl:ResetPlayerMoney]] | ||
[[ru:ResetPlayerMoney]] | [[ru:ResetPlayerMoney]] |
Revision as of 01:34, 5 February 2014
Description:
Reset a player's money to $0.
(playerid)
playerid | The ID of the player to reset the money of. |
Return Values:
This function does not return any specific values.
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.