How to make a Countdown timer in upper right corner
#3

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
you can do like this:

pawn Код:
new Countdown = -1,Timer1;

forward Countdownstart();

public Countdownstart()
{
   Countdown --;
   
   new string[128];
   format(string,128,"%d~n~Seconds",Countdown);
   GameTextForAll(playerid,string,1000,4);
   if(Countdown == COMPETITIONTIME) {
      GameTextForAll("Competition Finished!",1000,4);
      KillTimer(Timer1);
      Countdown = COMPETITIONTIME;
      return 1;
   }
   Timer1 = SetTimer("CountdownStart",1000,0);
   return 1;
}

CMD:startcountdown(playerid)
{
   if(!IsPlayerAdmin(playerid)) return 0;
   if(Countdown != COMPETITIONTIME) return SendclientMessage(playerid, -1,"ERROR: Countdown is already started");
   Countdown = COMPETITIONTIME;
   CountdownStart();
   return 1;
}
Yeah i know but how can i put it in the upper right corner like where normal the game times stands?
and is it possible to show in the following format: Hours:Minutes:Seconds
Reply


Messages In This Thread
How to make a Countdown timer in upper right corner - by HireMe - 10.12.2012, 15:15
Re: How to make a Countdown timer in upper right corner - by dr.lozer - 10.12.2012, 15:33
Re: How to make a Countdown timer in upper right corner - by HireMe - 10.12.2012, 16:10
Re: How to make a Countdown timer in upper right corner - by dr.lozer - 10.12.2012, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)