SA-MP Forums Archive
how to set player's time same as world time - 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)
+--- Thread: how to set player's time same as world time (/showthread.php?tid=434470)



how to set player's time same as world time - memeli11 - 02.05.2013

how to set player's time same as world time ? my servertime is 01:00 but when I connect server it becomes 12:00 and I want everybody use same clock... I use it :
Код:
#include <time>

forward TimeUpdate();
new worldTime;

public TimeUpdate() {
    worldTime++;
    worldTime%=24;
    SetWorldTime(worldTime);
}

//under gamemode init
    SetTimer("TimeUpdate",65009, 1);