SA-MP Forums Archive
is this possible? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: is this possible? (/showthread.php?tid=404651)



is this possible? - mailu - 03.01.2013

Hello!

I just wonder if is possible to show the secounds of a timmer in a GameText or a Dialog if so, how?


Re: is this possible? - Dolby - 03.01.2013

Yes, is possible, I create This Include(click-me), she can help you.
pawn Код:
new TimerID,TimerCheck; //Put This in Top of Script.
StartTimer("Function",10000,TimerID,false);
TimerCheck = SetTimerEx("GameText",1000,true,"d",TimerID);
public GameText(TimerID)
{
     if(GetTimer(TimerID) > 0) return printf("Seconds of TimerID(%d): %d",TimerID,GetTimer(TimerID));
     KillTimer(TimerCheck);
     return 1;
}



AW: is this possible? - Blackazur - 03.01.2013

Yep it is.