How to make a 1 minute countdown
#2

Код:
forward CountDown(cd);
public CountDown(cd)
{
      new ctd[20];
      format(ctd, sizeof(ctd), "%d", cd);
      GameTextForAll(ctd,1000,3);
      if(cd > 0)
      {
              cd--;
              SetTimerEx("CountDown",false, 1000, "d", cd);
       }
       else GameTextForAll("Go",1000,3);
       return 1;
}
and if you want to do a 1 min countdown you use:
CountDown(60);


hope i help
Reply


Messages In This Thread
How to make a 1 minute countdown - by ShawtyyMacJunior - 27.07.2012, 11:54
Re: How to make a 1 minute countdown - by avivelkayam - 27.07.2012, 12:09
AW: How to make a 1 minute countdown - by Tigerkiller - 28.07.2012, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)