23.02.2011, 20:02
You just need a timer for this like:
//At the top of your script
new sec,min,hour,time;
forward Counter();
main()
{
time = SetTimer("Counter",1000,1);
}
public Counter()
{
sec ++;
if(sec == 60) { sec=0; min++; }
if(min == 60) { min=0; h++; }
return 1;
}
/*
and if the player ends the race you just need to kill the timer like this: KillTimer(time);
*/
//At the top of your script
new sec,min,hour,time;
forward Counter();
main()
{
time = SetTimer("Counter",1000,1);
}
public Counter()
{
sec ++;
if(sec == 60) { sec=0; min++; }
if(min == 60) { min=0; h++; }
return 1;
}
/*
and if the player ends the race you just need to kill the timer like this: KillTimer(time);
*/

