Get Timer Time
#4

pawn Код:
//declares
new timeractive;
new sec;
new seccounttimer;
//when u set timers
SetTimer("maintime",sometime,false);
timeractive=1;
seccounttimer=SetTimerEx("seccount",1000,true,"d",playerid);
//publics
forward seccount(playerid);
public seccount(playerid);
{
    if(timeractive == 0) KillTimer(secounttimer);
    sec++;
    return 1;
}
//checking timeleft
timeleft = sometime/1000 - sec; // sometime/10 to convert it to seconds and subtract the seconds elapsed since the start of the timer
Reply


Messages In This Thread
Get Timer Time - by SnG.Scot_MisCuDI - 09.03.2012, 00:04
Re: Get Timer Time - by eesh - 09.03.2012, 02:20
Re: Get Timer Time - by SnG.Scot_MisCuDI - 09.03.2012, 02:25
Re: Get Timer Time - by eesh - 09.03.2012, 07:17
Re: Get Timer Time - by SnG.Scot_MisCuDI - 09.03.2012, 12:41
Re: Get Timer Time - by SnG.Scot_MisCuDI - 09.03.2012, 19:20

Forum Jump:


Users browsing this thread: 3 Guest(s)