Server Time System - 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: Server Time System (
/showthread.php?tid=99337)
Server Time System -
virspector - 27.09.2009
I want to make an RPG game by myself (Not using Instant GM such as Los Angeles Life, cuz it's confusing me
). Does anybody knows, how to make a time system, so every about 2 minutes, the hour will changed, and when it's night, all player will see it's dark. And, when player type /time, they will see current time.
I tried to search in Wiki an i found SetPlayerTime, SetWorldTime and GetPlayerTime, but i still dunno how to use them like what i said above. Please help
Re: Server Time System -
Desert - 27.09.2009
Add in OnGameModeInit
SetWorldTime(00);
and your done