SA-MP Forums Archive
How to set time to Morning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: How to set time to Morning (/showthread.php?tid=204075)



How to set time to Morning - Hunteraccord - 28.12.2010

Can anyone tell me how to set my server time to 07:00 AM or any other morning time? PERMANTLY!!! bcux my time changes!!! can anyone help? I m just a beginer.

Thanks


Re: How to set time to Morning - Jochemd - 28.12.2010

SetWorldTime(7);

This is not the scripting discussion, btw


Re: How to set time to Morning - Hunteraccord - 28.12.2010

It doesnt worked! The game mod I have changes time automatically, REAL TIME!!! /time.

I placed SetWorldTime(7); in public OnGameModeInit() but its not working! the time is again reaL!! not morning!


Re: How to set time to Morning - Jochemd - 28.12.2010

Delete that mod...


Re: How to set time to Morning - Hunteraccord - 28.12.2010

Lol!! I need that mod! I just want to make time to morning permantly!


Re: How to set time to Morning - Hiddos - 28.12.2010

Run a timer and set the world time again every 30 seconds or so, that should do the trick (Guaranteed your mod does have that support for SA:MP)


Re: How to set time to Morning - Hunteraccord - 28.12.2010

Can u explain it? I am new to scripting! I dont know how to run timer?


Re: How to set time to Morning - Jochemd - 28.12.2010

Do SetTimer in OnGameModeInit. Forward the Function Name and public it.


Re: How to set time to Morning - Hunteraccord - 28.12.2010

No guys its not working!! The time is still the real one! How to forward function name? Can u tell me how it will look?


Re: How to set time to Morning - Jochemd - 28.12.2010

Unload the Filterscript 'gl_realtime' it's probably loaded.