Score it money
#8

I wouldn't recommend you to use timers for such things thats just a waste of memory, you should update the player score once you give him money only.
pawn Код:
stock GiveMoney(playerid,amount)
{
    GivePlayerMoney(playerid,amount);
    SetPlayerScore(playerid,GetPlayerMoney(playerid));
    return true;
}
//later usage should be GiveMoney instead of GivePlayerMoney. for example:
public OnPlayerSpawn(playerid)
{
    GiveMoney(playerid,100);
    return 1;
}
Reply


Messages In This Thread
Score it money - by LeanAlex - 14.09.2014, 23:49
Re: Score it money - by MasonSFW - 14.09.2014, 23:56
Re: Score it money - by Eth - 15.09.2014, 00:01
Respuesta: Re: Score it money - by LeanAlex - 15.09.2014, 00:03
Re: Score it money - by MasonSFW - 15.09.2014, 00:09
Re: Score it money - by SanAndreasMP - 15.09.2014, 00:23
Re: Score it money - by Eth - 15.09.2014, 09:43
Re: Score it money - by SilentSoul - 15.09.2014, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)