SA-MP Forums Archive
Time of Day - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Time of Day (/showthread.php?tid=76373)



Time of Day - GTAScripter - 04.05.2009

Hello everyone,

My question is: Is it possible to run just a time from 20:00 till 05:00 on a godfather edit?

Greetings


Re: Time of Day - MenaceX^ - 04.05.2009

The time goes by the hoster place, if your server is hosted in Holland, it's automaticly GMT+1.
So no, it's not possible.


Re: Time of Day - Think - 04.05.2009

Quote:
Originally Posted by MenaceX^
The time goes by the hoster place, if your server is hosted in Holland, it's automaticly GMT+1.
So no, it's not possible.
wrong, it is possible, but you'll need to edit the edited GF, so it doesn't do gettime(); but you just need to set the site to a random one.

new time = 20 + random(9);
if(time > 24)
{
time -= 24;
}
SetWorldTime(time);

something like that


Re: Time of Day - MenaceX^ - 04.05.2009

Pfft, probably I misunderstood it, I still don't get what he means.


Re: Time of Day - Think - 04.05.2009

Quote:
Originally Posted by MenaceX^
Pfft, probably I misunderstood it, I still don't get what he means.
well he wants this: the time must not go under or above 20:00 and 5:00 (8 PM and 5 AM) so you'll need to remove the gettime code


Re: Time of Day - GTAScripter - 04.05.2009

On godfather its this:

Код:
	if(!realtime)
	{
		SetWorldTime(wtime);
	}
What do I need to fill in? So it should just go 20-21-22-23-0-1-2-3-4-5 and then start with 20 again!