Advertisement
Veticus

fn_restart.sqf - Arma Script

Mar 21st, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. // Created by νєтι¢υѕ. This script is an open source to anyone.
  2. //This is a restart timer. It announces that the server is restarting in 10 minutes. And then at the last 60 seconds, it warns the players again that they will be kicked to lobby. When the 60 seconds are up, All players are kicked to lobby (then you queue the server restart).
  3.  
  4. //To properly get work you gonna have to use "addAction". You can create your own or use mine. Put this script into your init.sqf (Or whatever array you may have) "Restart_Action = player addAction ["Restart Server", "fn_restart.sqf", [], 0, false, true, "", "true"];"
  5.  
  6. _vetrestart = 600;
  7.  
  8. while {_vetrestart >= 0} do {
  9.  
  10. hintSilent parseText format ["<t color='#0040FF' size='1.8' underline='true'>Martial Gaming</t><br/><br/><t color='#FFFFFF' size='1.3'>The server is restarting make sure that all your data has been saved. You have 10 minutes to disconnect, before you get kicked!<br/></t>", "PLAIN"];
  11. sleep 540;
  12. };
  13. if (_vetrestart <= 0) then {
  14.  
  15. hintSilent parseText format["<t color='#0040FF' size='1.8' underline='true'>Martial Gaming</t><br/><br/><t color='#FFFFFF' size='1.3'>Server is now restarting. You will be kicked back to the lobby 60 seconds. Please disconnect and wait for the server to go back up!</t>", "PLAIN"];
  16. sleep 60;
  17. failMission "END!";
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement