SA-MP Forums Archive
Time Issue - 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: Time Issue (/showthread.php?tid=448268)



Time Issue - CrystalMethod - 03.07.2013

Alright, so under public OnGameModeInit() I've got SetWorldTime(12);
I've got the player clock enabled with TogglePlayerClock(playerid, 1);
My issue, is that when the player dies, their time is reset to 00:00 while other players are still running from the 12.
I'm sure it's an easy fix, but I'm still new at Pawn.


Re: Time Issue - Basssiiie - 03.07.2013

Why would you want to use TogglePlayerClock specifically? If you look onto the wiki, you'll see that it states these things:
Quote:

Note: Time is not synced with other players!

Quote:

Note: Time will automatically advance 6 hours when the player dies.

TogglePlayerClock basically enables the Singleplayer clock and it'll work exactly like that.