SolvedAny DayTime /Night Time scripts?

Posts 1–3 of 3 · Page 1 of 1
Any DayTime /Night Time scripts?
Hey guys!
In the last 2 days I tried to figure out how to set time...
I tested many scripts but when I activate them, it's day for like 1 sec and than it turns into night again....
I used something like:
Code:
setDate [1986, 2, 25, 16, 0];  //(4:00pm February 25, 1986)
OR

Code:
[FALSE, "if(isServer) then {while {true} do {setDate [2012, 9, 1, 11, 0]; sleep 5;};};"];
Does anybody know a good working code?
Quote Originally Posted by Throx View Post
Hey guys!
In the last 2 days I tried to figure out how to set time...
I tested many scripts but when I activate them, it's day for like 1 sec and than it turns into night again....
I used something like:
Code:
setDate [1986, 2, 25, 16, 0];  //(4:00pm February 25, 1986)
OR

Code:
[FALSE, "if(isServer) then {while {true} do {setDate [2012, 9, 1, 11, 0]; sleep 5;};};"];
Does anybody know a good working code?
wrong selection
but this works
Day:
Code:
example1{
                [{
                    setDate[2012, 9, 1, 9, 0];
                }, "BIS_fnc_Spawn", false, false] call BIS_fnc_MP;
                [{
                    setDate[2012, 9, 1, 9, 0];
                }, "BIS_fnc_Spawn", true, false] call BIS_fnc_MP;
                hint "Day Time!";
            };
Night:
Code:
example2{
                [{
                    setDate[2012, 9, 1, 21, 0];
                }, "BIS_fnc_Spawn", false, false] call BIS_fnc_MP;
                [{
                    setDate[2012, 9, 1, 21, 0];
                }, "BIS_fnc_Spawn", true, false] call BIS_fnc_MP;
                hint "Night Time!";
            };
No response after two days, assuming solved.
/Closed
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us