Advertisement
Brenner650

init.sqf time multiplier

Feb 12th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. if(isServer) then
  2. {
  3.     fnc_MultiplierCheck = "
  4.     if (daytime > 18 || daytime < 6) then
  5.     {
  6.         _timeMultiplier = 10;
  7.     }
  8.     else  
  9.     {
  10.         _timeMultiplier = 0;
  11.     };
  12.  
  13.     if(timeMultiplier != _timeMultiplier) then { setTimeMultiplier _timeMultiplier; };
  14.     ";
  15.  
  16.  
  17.     fnc_MultiplierChecker = compile fnc_MultiplierCheck;
  18.     [60, fnc_MultiplierChecker, [], true] call ExileServer_system_thread_addTask;
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement