Countdown problem
#1

hi,

i have a countdown that starts when a player enters a certain checkpoint. it counts backwards from 60.
After the countdown started there is a 2nd cp and if u enter that cp the countdown has to stop an diasappear from the screen.
How to do that?

pawn Код:
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;
}
regards.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)