04.07.2011, 01:08
There is something like this, And more with Pcash..
Quote:
stock GivePlayerCash(playerid, money) { PlayerInfo[playerid][pCash] -= money; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock SetPlayerCash(playerid, money) { PlayerInfo[playerid][pCash] = money; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock ResetPlayerCash(playerid) { PlayerInfo[playerid][pCash] = 0; ResetMoneyBar(playerid); UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]); return PlayerInfo[playerid][pCash]; } stock GetPlayerCash(playerid) { return PlayerInfo[playerid][pCash]; } |