29.07.2010, 08:26
Here you go
also you need somewhere
with this you can count hours minutes seconds
pawn Код:
forward TextDrawTimer();
new txdtimer;
new time;
txdtimer = SetTimer("TextDrawTimer",1000,1);
public TextDrawTimer()
{
new string[32];
new hour,minute,second;
if(time >= 3600) { hour = time/3600; time = time-(hour*3600); } else { hour = 0; }
if(time >= 60) { minute = time/60; time = time-(minute*60); } else { minute = 0; }
if(time < 60) { second = time; } else { second = 0; }
format(string,sizeof(string),"%02d:%02d:%02d",hour,minute,second);
TextDrawSetString(YourTEXTDRAW,string);
time++;
}
pawn Код:
KillTimer(txdtimer);
time = 0;