Timer help... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer help... (
/showthread.php?tid=85144)
Timer help... -
introzen - 05.07.2009
Hey everyone =)
How do you check how much time that is left of a timer?...
Thank you
Re: Timer help... -
happyface - 05.07.2009
Hello, I know this not quite what you looking for, never seen that done before, but you could however use a second timer and do a count down although I'm not sure if it will satisfy your needs.
Sorry for that blank post, it mess up while writing this and post.
pawn Код:
new CountDown = 10;
new CountTimer;
forward CountDownTime();
pawn Код:
public CountDownTime()
{
if(Countdown <1)
{
KillTimer(CountTimer);
CountDown = 10;
return 1;
}
else
{
new string[16];
format(string, sizeof(string), "Count Down:%d", CountDown);
GameTextForAll(string, 1000, 3);
CountTimer = SetTimer("CountDownTime", 1000, 0);
CountDown--;
}
return 1;
}
sorry if its totally not what you want, i tried
Re: Timer help... -
refshal - 05.07.2009
Quote:
Originally Posted by happyface
.
|
That was really helpful.
No, it wasn't. Why did you even post that? lol