Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. _missionStartTimeSeconds = (missionStart select 3 * 3600 + missionStart select 4 * 60 + missionStart select 5);
  2. _missionUpTime = _missionStartTimeSeconds;
  3. while(true)do{
  4. //restart at 00:00, 06:00, 12:00, 18:00
  5. if((_missionStartTimeSeconds == 0) || (_missionStartTimeSeconds == 21600) || (_missionStartTimeSeconds == 43200) || (_missionStartTimeSeconds == 64800))then{
  6. ["timedRestart"] execVM "Scripts\RestartScript.sqf";
  7. }else{
  8. _missionUpTime = _missionUpTime + 1;
  9. sleep 1;
  10. };
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement