06.08.2011, 06:36
Server Whitelist
Usage:This script allows server admins (rcon) to add/remove users to the server whitelist. The whitelist allows and disallows players to join your server.
Commands (Rcon):
pawn Code:
COMMAND: /whiteadd [entry]
COMMAND: /whiteremove [entry]
Example of a whitelist:
Code:
lolumadd batman 127.0.0.1 cow
This script has MySQL support for better optimization or for players planning on connecting this script to web via php.
To enable MySQL make sure line #3 looks like this:
Code:
#define MYSQL 1
If you are using G-Stylez mysql plugin, make sure to comment the lines where it says stricken kid and uncomment the lines that say g-stylez. Also, you need to fill in your MySQL info in the lines provided in the script.
To enable logging (printing successful connections and unsuccessful connections make sure line #4 looks like this:
Code:
#define LOGGING 1
Notes:
This script is Plug & Play. All you need to do put the script in the filterscripts folder, include it in server, and it is running. It will automatically create/recreate the needed files if not found. The same applies to MySQL version.
Have Fun
http://pastebin.mozilla.org/1291507
AMX Only: http://www.mediafire.com/?2910b2j4lleo3yt
(Mozilla Pastebin FTW )