From SA-MP Wiki

Jump to: navigation, search


Retrieves the amount of money a player has.

playeridThe 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 helpful as they relate to this function in one way or another.

Personal tools
In other languages