12.05.2010, 16:52
Title says all
this is the code.
this is the code.
pawn Код:
public Timer()
{
gTimePassed++;
new timeleft = ((ROUND_TIME() * 60) - gTimePassed); //
new minutes = (timeleft / 60);
new seconds = (timeleft - minutes * 60);
new tmpmsg[128];
format(tmpmsg,sizeof(tmpmsg),"%d:%d",minutes, seconds);
TextDrawSetString(TimerCD, tmpmsg);
TextDrawShowForAll(TimerCD);
if(minutes == 0 && seconds == 0)
{
new string[128];
format(string,sizeof(string),"Round is over, if this message show up, the timer is also killed");
SendClientMessageToAll(0x33CCFFAA,string);
KillTimer(Timer());
KillTimer(ROUND_TIME());
TextDrawDestroy(TimerCD);
}
}