How to make a lil clock (textdraw)
#4

pawn Код:
new Tmin = 0; Thour = 00;

...
new cdTimer = SetTimer("countdown", 1000, 1);
...

public countdowntimer()
{
  Tmin--;
  if(Tmin < 0) Thour--, Tmin=59;
  if(Thour < 0)
  {
    KillTimer(cdTimer);
    ...do whatever you do when timer runs out
    return 1;
  }
  //set your textdraw to the new time and reshow for players
}
Reply


Messages In This Thread
How to make a lil clock (textdraw) - by `FuTuRe- - 24.01.2010, 09:44
Re: How to make a lil clock (textdraw) - by Roleplaya - 24.01.2010, 09:49
Re: How to make a lil clock (textdraw) - by `FuTuRe- - 24.01.2010, 09:50
Re: How to make a lil clock (textdraw) - by mansonh - 24.01.2010, 11:36
Re: How to make a lil clock (textdraw) - by MadeMan - 24.01.2010, 12:34

Forum Jump:


Users browsing this thread: 2 Guest(s)