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

Quote:
Originally Posted by coool
Посмотреть сообщение
Код:
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;
}
Didn't work, the victim's cash doesn't return...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)