20.04.2010, 00:38
Ok This might be a wierd thing to ask but is there a way to make the time in game to stay at 24:00 ?
public CLOCK_EverySecondTimer()
{
CLOCK_minute++;
if(CLOCK_minute == 24)
{
CLOCK_minute = 24;
CLOCK_hour++;
SetWorldTime(24);
}
if(CLOCK_hour == 24)
{
CLOCK_hour = 24;
}
new clockstr[32];
format(clockstr,sizeof(clockstr),"%02d:%02d",CLOCK_hour,CLOCK_minute);
TextDrawSetString(Clock, clockstr);
}
stock GetHour()
{
return CLOCK_hour;
}
stock Minute()
{
return CLOCK_minute;
}