GetPlayerMoney

From SA-MP Wiki

Jump to: navigation, search

GetPlayerMoney


The function GetPlayerMoney retrieves the amount of money a player has.


Parameters:
(playerid)
playeridThe ID of the player.


ReturnsThe players money


public OnPlayerDeath(playerid, killerid, reason)
{
   new string[48];
   format(string, sizeof(string), "You had $%i. Now you've got nothing.", GetPlayerMoney(playerid));
   SendClientMessage(playerid, 0xFFFFFFAA, string);
   ResetPlayerMoney(playerid);
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools
In other languages