Always Night?
#1

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 ?
Reply
#2

delete your time system and set the time to 24:00
Reply
#3

I dont know how to find my time system
Reply
#4

SetWorldTime(24);
Reply
#5

Does It Have to do with the clock because the code is
Код:
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;
}
Reply
#6

yes that is your time system
Reply
#7

So what I do delete it?
Reply
#8

I'm pretty sure when you use SetWorldTime() it doesn't change unless you re-execute the function changing the time, use OnGameModeInit() to SetWorldTime().
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)