30.05.2017, 16:10
Quote:
Код:
new storedcash[MAX_PLAYERS]; cmd:dosomething(playerid) { command lines and stuff here... something to get and store the victim's ID current money here... GetPlayerCash(playerid, storedcash[playerid]); playerid or whatever you want. ResetPlayerMoney(playerid); return 1; } cmd:undosomething(playerid) { command lines and stuff here... something to give the stored money from the other command back to the victim's ID here... GivePlayerCash(playerid, storedcash[playerid]); //playerid or whatever it is. return 1; } |