Sunrise and Sunset
#5

Quote:
Originally Posted by bogdyutzu
Посмотреть сообщение
And how I can make TIME change depending winter/summer time? Because in San Andreas is summer daylight.
I need some algorithms to make this.
Well, for example, you could do it like this (purely example, idk the real light times xD)

Get the date and determine if it's winter or summer with https://sampwiki.blast.hk/wiki/Getdate
|
v
Every hour check what time it is with https://sampwiki.blast.hk/wiki/Gettime
|
v
if it's winter and it's 7 pm -> make it nighttime
if it's summer and it's 9 pm -> make it nighttime

That is assuming you want your to have weather according to the real world time.
Reply


Messages In This Thread
Sunrise and Sunset - by bogdyutzu - 30.11.2014, 15:19
Re: Sunrise and Sunset - by PowerPC603 - 30.11.2014, 15:47
Re: Sunrise and Sunset - by AnthonyTimmers - 30.11.2014, 16:06
Re: Sunrise and Sunset - by bogdyutzu - 30.11.2014, 16:10
Re: Sunrise and Sunset - by AnthonyTimmers - 30.11.2014, 16:15
Re: Sunrise and Sunset - by bogdyutzu - 30.11.2014, 16:26
Re: Sunrise and Sunset - by bogdyutzu - 01.12.2014, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)