24.01.2010, 11:36
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
}