Change of Time
#1

Hey guys, can you help me? i need help with making a Real Life server. i want to make time Change, for example if it is 17:00 sun will go down
18:00 sun is down like in real Life.
Reply
#2

https://sampwiki.blast.hk/wiki/Gettime
Reply
#3

No, i mean like. If ingame it is 12:00 and in real life it is 15:59. When it will be 16:00 i want time ingame to change to 13:00.
Reply
#4

Quote:
Originally Posted by Mikep
and

https://sampwiki.blast.hk/wiki/SetWorldTime
Reply
#5

Do you understand what im saying? i know those commands. im asking you, how can i make it so every hour time will change +1. How can i do that?
Reply
#6

use those commands together wisely
Reply
#7

The bit these two posters are leaving out is that you want to add these functions within a timer that is run every hour. Examine the SetTimer function if you are unfamiliar with it. Keep in mind that the SetTimer function requires the time in milliseconds, account for this and you should be great.
Reply
#8

Quote:
Originally Posted by samgreen
The bit these two posters are leaving out is that you want to add these functions within a timer that is run every hour.
if it's simply run every hour, it won't sync with the local time - just every hour from when you start it.
But yes, you need timers for this.
Reply
#9

I have a timer that runs in my script every minute, that is what I have done to update time. it works good to me, although I would love for time to be able to update by the minute rather than hour.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)