12.10.2015, 12:59
Код:
forward GivePlayerMoneyEx(playerid, amount); public GivePlayerMoneyEx(playerid, amount) { if(IsPlayerConnected(playerid)) { PlayerInfo[playerid][Money] = PlayerInfo[playerid][Money] + amount; } return 1; } CMD:10cash(playerid, params[]) { GivePlayerMoneyEx(playerid, 10); SendClientMessage(playerid, -1, "You just received $10 from custom function"); return 1; }
Now you can put on GivePlayerMoneyEx the update bar function so it will update the bar when you use it