How can I store someones cash and then give it back?
#2

Make a function for SetPlayerMoney:
PHP код:
new moneyfirst[MAX_PLAYERS];
stock SetPlayerMoney(playerid,moneyafter) {
 
moneyfirst[playerid]=moneyafter;
 
GivePlayerMoney(playerid,moneyafter-GetPlayerMoney(playerid));

Credits to DracoBlue^

Then make the command with: targetid & amount.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)