How to save a timer?
#4

Create a player variable which saves called LastPayday. Use the following check under a timer which you should create that sets off every 10 to 20 seconds.

pawn Код:
new currentTickcount = tickcount();

if(currentTickcount - LastPayday[playerid] >= 3600000)
{
    Payday();
    LastPayday[playerid] = currentTickcount;
}
Reply


Messages In This Thread
How to save a timer? - by Elysian` - 01.12.2012, 23:20
Re: How to save a timer? - by NewerthRoleplay - 01.12.2012, 23:29
Re: How to save a timer? - by BleverCastard - 01.12.2012, 23:31
Re: How to save a timer? - by SuperViper - 01.12.2012, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)