Faguss

Fwatch Game Schedule Customize

Feb 15th, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?php  
  2.     // Create new server and populate data fields
  3.     $test = new game_server();
  4.     $test -> name        = "My Test Server";
  5.     $test -> shortName   = "test";                  // required
  6.     $test -> version     = 1.99;
  7.     $test -> ip          = "192.168.0.1";           // required
  8.     $test -> port        = 2302;
  9.     $test -> password    = "";
  10.     $test -> equalModReq = false;
  11.     $test -> languages[] = "English";
  12.     $test -> languages[] = "Polish";
  13.     $test -> location    = "Poland";
  14.     $test -> website     = "http://ofp-faguss.com";
  15.     $test -> message     = "Hello!";
  16.     $test -> logo        = "http://www.ofp-faguss.com/xml/logo.jpg";
  17.    
  18.    
  19.     // Schedule event (required)
  20.     $test -> add_game_time
  21.     (
  22.         "single",           // recurrence (it can be "single", "weekly" or "daily")
  23.         "9 Feb 2017 16:17", // date and time
  24.         "Europe/Warsaw",    // time zone (full list on http://php.net/manual/en/timezones.php )
  25.         60                  // duration in minutes
  26.     );
  27.    
  28.    
  29.     // Schedule second event
  30.     $test -> add_game_time
  31.     (
  32.         "weekly",
  33.         '6 Jan 2017 00:55',
  34.         "Europe/Warsaw",
  35.         120
  36.     );
  37.  
  38.  
  39.     // Add modfolder to the game server
  40.     $test -> add_modfolder
  41.     (
  42.         "@ww4mod25",        // name
  43.        
  44.         "128 MB",           // size (e.g. 2 KB, 150 MB, 1.8 GB)
  45.        
  46.         // download link or installation script
  47.         "download ftp://ftp.ofpr.info/ofpd/unofaddons2/ww4mod25rel.rar
  48.         unpack ww4mod25rel.rar
  49.         move @ww4mod25
  50.         download http://ofp-faguss.com/temp/WW425patch1.rar
  51.         unpack WW425patch1.rar
  52.         move *.pbo @ww4mod25\\addons\\"
  53.     );
  54. ?>
Add Comment
Please, Sign In to add comment