GetPlayerMoney

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:14, 29 March 2010
Mikep (Talk | contribs)

← Previous diff
Revision as of 01:37, 5 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Retrieves the amount of money a player has.}} {{Description|Retrieves the amount of money a player has.}}
Line 25: Line 24:
[[Category:Scripting_Functions]] [[Category:Scripting_Functions]]
 +[[fr:GetPlayerMoney]]
[[nl:GetPlayerMoney]] [[nl:GetPlayerMoney]]
[[ru:GetPlayerMoney]] [[ru:GetPlayerMoney]]

Revision as of 01:37, 5 February 2014



Description:

Retrieves the amount of money a player has.


Parameters:
(playerid)
playeridThe ID of the player to get the money of.


Return Values:

The amount of money the player has


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 may be useful, as they are related to this function in one way or another.

In other languages