Freeze time
#1

How do I for example, set the global time for every player to midnight, then let it stay midnight constantly, not changing time at all?
Reply
#2

https://sampwiki.blast.hk/wiki/SetWorldTime
Reply
#3

I do know that, but how do I freeze it on a specific time
Reply
#4

Could u explain what you want? World time, player time ?

I gave you example

Код:
public OnGameModeInit()
{
   SetWorldTime(0);//Midnight
}
Reply
#5

The time is frozen upon the usage of that function by default, unless other parts of your script change it.

Alternatively, you may perhaps have TogglePlayerClock() enabled which would make the SetWorldTime function redundant.
Reply
#6

You probably have either gl_realtime filterscript loaded or used TogglePlayerClock function in your script. Check and remove em. (or possibly server sided time system)
Reply
#7

Ah thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)