Here's another CoD2 PHP script by Ashus for today, this one a little more cryptic to me than the last. :P I'm sure it's another brilliant tool, but I'm just not skilled in server management to the point that I completely understand the significant of this. The script checks server rules every few minutes or so to make sure they are enforced (rules such as kicking players for certain reasons ranging from high ping to "Unknown Soldiers"). Check out the ReadMe below for more information, and if you think it'll do some work for you, give it a download. ;)
PHP COD2 Rules Checker Requirements: Apache webserver with PHP5 support. This script guards keeping the rules you may have set. It is designed to be run via crontab. Each minute it parses rcon status. If you choose, it can warn and kick players with no nick (or Unknown Soldiers) - for those, who like neat statistics. Next, it guards ping. Eg. the default settings does this: if a player has ping over 250, it warns him. If his ping gets over 300 in next minute, he gets warned again and kicked. Otherwise, he gets warned again, or if the ping is lower than 250, the warning is cancelled. Installation: Unpack the directory and edit settings in rcon-rules.php. Descriptions of individual variables are inside the script. Add this line to your crontab: (change the url accordingly) * * * * * root nice -n 4 lynx -dump http://127.0.0.1/cod2/rcon-rules.php > /dev/null 2>&1 & You can include the content of list-of-kicked.php file anywhere to your site, it displays last 10 automatically kicked players. Ashus ashw3 -at- seznam -dot- cz Other applications made by me are here: hxxp://ap.ashw.info/ashus/index.php?download
There are no comments yet. Be the first!