05.07.2009, 19:36
Hey everyone =)
How do you check how much time that is left of a timer?...
Thank you
How do you check how much time that is left of a timer?...
Thank you
new CountDown = 10;
new CountTimer;
forward CountDownTime();
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;
}
Originally Posted by happyface
.
|