Getting time of a timer - 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: Getting time of a timer (
/showthread.php?tid=620034)
Getting time of a timer -
StrikerZ - 25.10.2016
Hi, is there any way to get a timer's time. See my timer uses this. For ex- {take something named timer as a new variable} timer = gettime() + 30; Just an example. But that 30, can it be shown on screen in a type of countdown using gametext?
Re: Getting time of a timer -
Konstantinos - 25.10.2016
timer - gettime()
format the result of the above subtraction and show it.