Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Arma3 Linux Server scheduled Restart Messages
- 1. Download https://github.com/Nizarii/arma-rcon-class-php/releases
- 2. unpack the Archive to /PathtoArma3Folder/scheduler
- 3. create 10minutes.php, 5minutes.php and 1minute.php (or whatever you want) in /PathtoArma3Folder/scheduler with the following Content:
- ---
- <?php
- require_once 'arc.php';
- use \Nizarii\ARC;
- $rcon = new ARC('127.0.0.1','BE-RCONPASSWORD',BE-RCONPORT)
- $rcon->sayGlobal('*** Server will restart in 10 Minutes ***');
- ?>
- ---
- Replace BE-RCONPASSWORD with your Battleye Rcon Password and BE-RCONPORT with your Battleye Rcon Port found in /PathtoArma3Folder/battleye/beserver.cfg.
- 4. Create CronJobs:
- 50 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/10minutes.php
- 55 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/5minutes.php
- 59 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/1minutes.php
- 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /PathtoArma3Folder/restart.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement