PHP CoD2 Rules Checker

Here's another Ashus update, this time on his PHP CoD2 Rules Checker. Check out the ReadMe for more information, and give it a download if...

Download

Uploading...
Do not refresh or leave this page!

File Description

Here's another Ashus update, this time on his PHP CoD2 Rules Checker. Check out the ReadMe for more information, and give it a download if it suits your purposes. ;)

-xXezekielXx

Read More

Download 'php_cod2_rules_checker_11.zip' (4KB)

Readme
PHP COD2 Rules Checker
version 1.1


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.

Functions:
1) If you choose, it can warn and then kick players with no nick (or Unknown Soldiers) - for those, who like neat statistics.
2) Next, it guards ping. Eg. the default settings does this: if a player has ping over 250, he gets warned. If his ping gets over 300 in next minute, he gets warned again and kicked. If it doesn't exceed 300, he gets warned again, or if the ping is lower than 250, the warning is cancelled.
3) And finally, time is announced by console to all players each hour. This might make your players more aware of reality and they could change more often one with another on your server.

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.

History:
1.1
Fixed: Checking for the corrupted ID by repeated header return added.
Added: Time announcing every hour.
Changed: Messages can be edited up in the header of script.
Fixed: Some ascii substrings were changed to alternative spelling to help more compatibility.

1.0
First working version.

Ashus
ashw3 -at- seznam -dot- cz
Other applications made by me are here: hxxp://ap.ashw.info/ashus/index.php?download

Read More

Comments on this File

There are no comments yet. Be the first!

Ashus


50 XP


Registered 18th June 2006

17 Files Uploaded

Share This File
Embed File