Thread: Country Filter
View Single Post
Author Message
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 11-29-2006 , 14:42   Country Filter
Reply With Quote #1

This plugin allows you to reject players of certain countries to connect to your server.
It uses the GeoLite Country or IP-to-Country Database.

ConVars:
cf_allow - Countries that are allowed to connect
cf_deny - Countries that are not allowed
cf_reject_msg - Message that is shown to a rejected player
cf_database - Database that will be used

ConCommands:
cf_status - Displays all players with their userid/name/uniqueid/country
cf_reload - Reload the database file

I created it for a friend and its NOT tested properly.

Code:
Version 1.1

 - Added new Database (GeoLite Country) (default)
 - Added new ConVar (cf_database)
 - Added new ConCommand (cf_reload)
Latest Version: 1.1 (30 November 2006)

Download Binaries
Download Sourcecode
__________________

MFZB Gaming Community

[ www.mfzb.de ]


Last edited by Knagg0; 03-20-2007 at 08:10.
Knagg0 is offline