03.12.2010, 11:53
Hi,
thank u it works now, but the second time the timer is started it continues to count down from e.g 23 sec if it has been aborted (killed at the time the timer was on 23 sec). But i want it to start from 60 secs again and not from the last aborted time.
I looked at it for 10 mins and simply dont get it
thank u it works now, but the second time the timer is started it continues to count down from e.g 23 sec if it has been aborted (killed at the time the timer was on 23 sec). But i want it to start from 60 secs again and not from the last aborted time.
I looked at it for 10 mins and simply dont get it

pawn Код:
public counter(playerid)
{
if(countdown > 1)
{
CDONSTimer = SetTimer("counter",990,0);
new string[128];
format(string,sizeof(string),"~l~! ~r~Detonating: ~y~%d ~l~!",countdown);
GameTextForAll(string,990,5);
countdown --;
}
else
{
countdown = 0;
}
return 1;
}
forward counter(playerid);
new countdown = 60;
new CDONSTimer;
CDONSTimer = SetTimer("counter",990,0);
KillTimer(CDONSTimer);