Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Create new server and populate data fields
- $test = new game_server();
- $test -> name = "My Test Server";
- $test -> shortName = "test"; // required
- $test -> version = 1.99;
- $test -> ip = "192.168.0.1"; // required
- $test -> port = 2302;
- $test -> password = "";
- $test -> equalModReq = false;
- $test -> languages[] = "English";
- $test -> languages[] = "Polish";
- $test -> location = "Poland";
- $test -> website = "http://ofp-faguss.com";
- $test -> message = "Hello!";
- $test -> logo = "http://www.ofp-faguss.com/xml/logo.jpg";
- // Schedule event (required)
- $test -> add_game_time
- (
- "single", // recurrence (it can be "single", "weekly" or "daily")
- "9 Feb 2017 16:17", // date and time
- "Europe/Warsaw", // time zone (full list on http://php.net/manual/en/timezones.php )
- 60 // duration in minutes
- );
- // Schedule second event
- $test -> add_game_time
- (
- "weekly",
- '6 Jan 2017 00:55',
- "Europe/Warsaw",
- 120
- );
- // Add modfolder to the game server
- $test -> add_modfolder
- (
- "@ww4mod25", // name
- "128 MB", // size (e.g. 2 KB, 150 MB, 1.8 GB)
- // download link or installation script
- "download ftp://ftp.ofpr.info/ofpd/unofaddons2/ww4mod25rel.rar
- unpack ww4mod25rel.rar
- move @ww4mod25
- download http://ofp-faguss.com/temp/WW425patch1.rar
- unpack WW425patch1.rar
- move *.pbo @ww4mod25\\addons\\"
- );
- ?>
Add Comment
Please, Sign In to add comment