[FilterScript] Server Whitelist [MySQL Support][Logging]
#1

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]
Entries can either be a IP or a name.

Example of a whitelist:
Code:
lolumadd
batman
127.0.0.1
cow
Toggles (MySQL and Logging):
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 it is 0, that means it is using files.

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
Otherwise, turn the value to 0.

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 )
Reply


Messages In This Thread
Server Whitelist [MySQL Support][Logging] - by lolumadd_ - 06.08.2011, 06:36
Re: Server Whitelist [MySQL Support][Logging] - by [HiC]TheKiller - 06.08.2011, 06:44
Re: Server Whitelist [MySQL Support][Logging] - by Sergei - 06.08.2011, 07:54
Re: Server Whitelist [MySQL Support][Logging] - by dreamboxxl - 22.12.2011, 11:58
Re: Server Whitelist [MySQL Support][Logging] - by Astralis - 22.12.2011, 13:31
Re: Server Whitelist [MySQL Support][Logging] - by dreamboxxl - 22.12.2011, 18:39
Re: Server Whitelist [MySQL Support][Logging] - by nickbouwhuis - 29.10.2012, 05:51
Re: Server Whitelist [MySQL Support][Logging] - by elhanan - 30.04.2016, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)