Same time for all - 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: Same time for all (
/showthread.php?tid=305822)
Same time for all -
SnG.Scot_MisCuDI - 24.12.2011
How can i make it so all players see the same world time. I have the clock on but one player sees 12:00 and another see 21:12
Re: Same time for all -
[O.z]Caroline - 24.12.2011
You can read in wiki(
https://sampwiki.blast.hk/wiki/SetWorldTime)
Re: Same time for all -
SnG.Scot_MisCuDI - 24.12.2011
Will this make the time keep going from day to day with everyone seeing the same time?
Re: Same time for all -
=WoR=Varth - 24.12.2011
Checkout "gl_realtime.pwn" in samp server package, filsterscripts folder.
Re: Same time for all -
[O.z]Caroline - 24.12.2011
Quote:
Originally Posted by googamalugafoo
Will this make the time keep going from day to day with everyone seeing the same time?
|
not,
you can use this:
pawn Код:
public OnGameModeInit()
{
SetTimer("Hor", 60000*60, true);
return 1;
}
forward Hor();
public Hor()
{
static h, m, s;
gettime(h, m,s);
#pragma unused m,s
SetWorldTime(h);
return 1;
}
Re: Same time for all -
SnG.Scot_MisCuDI - 24.12.2011
Quote:
Originally Posted by =WoR=Varth
Checkout "gl_realtime.pwn" in samp server package, filsterscripts folder.
|
Will that make it show the same time for all players