GetPlayerMoney
From SA-MP Wiki
Description:
Retrieves the amount of money a player has.
(playerid)
playerid | The ID of the player to get the money of. |
Return Values:
The amount of money the player has.
public OnPlayerSpawn(playerid) { new string[32]; format(string, sizeof(string), "Your money: $%i.", GetPlayerMoney(playerid)); SendClientMessage(playerid, 0xFFFFFFAA, string); }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GivePlayerMoney: Give a player money.
- ResetPlayerMoney: Set the money of a player to $0.