29.11.2010, 16:26
hi,
ive created a countdown that appears on screen for all players:
It counts backwards from 60 sec but how can i stop the text countdown on screen from continuing counting?
I did :
KillTimer(CDONSTimer);
But the countdown still continues!!
Pls help.
regards.
ive created a countdown that appears on screen for all players:
pawn Код:
forward counter(playerid);
new countdown = 60;
new CDONSTimer;
public counter(playerid)
{
if(countdown > 1)
{
new string[128];
format(string,sizeof(string),"~l~! ~r~Detonating: ~y~%d ~l~!",countdown);
GameTextForAll(string,990,5);
SetTimer("counter",990,0);
countdown --;
}
else
{
countdown = 0;
}
return 1;
}
I did :
KillTimer(CDONSTimer);
But the countdown still continues!!
Pls help.
regards.