Countdown timer?
#6

pawn Код:
new CountDown = 10;
new vartimer;

vartimer = SetTimer("CountDown",1000,false);

//outside all callbacks
forward CountDown();
public CountDown()
{
    CountDown --;
    if(CountDown == 9) GameTextForAll("9", 5000, 3 );
    if(CountDown == 8) GameTextForAll("8", 5000, 3 );
    if(CountDown == 7) GameTextForAll("7", 5000, 3 );
// goes on
//......
    if(CountDown == 0) GameTextForAll("Countdown finish", 5000, 3 ); KillTimer(vartimer);
}
Reply


Messages In This Thread
Countdown timer? - by Lajko1 - 26.07.2014, 15:07
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:37
Re: Countdown timer? - by Lajko1 - 26.07.2014, 15:40
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:45
Re: Countdown timer? - by [KHK]Khalid - 26.07.2014, 15:46
Re: Countdown timer? - by Champ - 26.07.2014, 15:51
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)