ResetPlayerMoney

From SA-MP Wiki

Jump to: navigation, search

ResetPlayerMoney


ResetPlayerMoney is like it says, a reset for the money of a player. So it just sets the money of the player back to $0.


Parameters:
(playerid)
playeridThe PlayerID from the person the money needs to be set to $0.


This function does not return a specific value.


public OnPlayerDeath(playerid, killerid, reason)
{
    SendClientMessage(playerid, 0xFFFFFFAA, "You died. You lost all of your cash!");
    ResetPlayerMoney(playerid);
    return 1;
}

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