Raised This Month: $12 Target: $400
 3% 

Country Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 11-29-2006 , 13: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 07:10.
Knagg0 is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 11-29-2006 , 18:08   Re: Country Filter
Reply With Quote #2

Cool idea, great job!
__________________
tcviper is offline
Send a message via MSN to tcviper
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 11-29-2006 , 22:07   Re: Country Filter
Reply With Quote #3

Good idea but not all IPs are assigned properly, I've seen chicago US servers with reports of australia, the IP I had at my old work was actually from portugal. So IP based regional stuff isn't always reliable.
FlyingMongoose is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 11-30-2006 , 00:51   Re: Country Filter
Reply With Quote #4

Quote:
Originally Posted by FlyingMongoose
Good idea but not all IPs are assigned properly, I've seen chicago US servers with reports of australia, the IP I had at my old work was actually from portugal. So IP based regional stuff isn't always reliable.
I added the GeoLite Country database... Maybe it's better than the IP-to-Country database.
Knagg0 is offline
Rebell
Veteran Member
Join Date: Nov 2004
Location: GERMANY
Old 11-30-2006 , 17:11   Re: Country Filter
Reply With Quote #5

Danke !
__________________
Rebell is offline
Hollanda
Senior Member
Join Date: Sep 2006
Location: Netherlands
Old 12-06-2006 , 22:16   Re: Country Filter
Reply With Quote #6

I guess you used the original plugin from: Iwan-kottya-nai ?

http://d3.jpn.org/hl2/CountryFilter-en.html
Hollanda is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-07-2006 , 05:54   Re: Country Filter
Reply With Quote #7

Quote:
Originally Posted by Hollanda
I guess you used the original plugin from: Iwan-kottya-nai ?
Yes... The idea
A friend asked me to make a SourceMM version.
Knagg0 is offline
xlkiller
Member
Join Date: Jul 2004
Location: FRANCE
Old 12-07-2006 , 12:20   Re: Country Filter
Reply With Quote #8

In version 1.0.3 there are cf_allow_message command but non in this version 1.1, why ?
xlkiller is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-07-2006 , 13:53   Re: Country Filter
Reply With Quote #9

Because it's not the same plugin...
It's only the same idea of rejecting players
But i can add this to my todo list
Knagg0 is offline
Rebell
Veteran Member
Join Date: Nov 2004
Location: GERMANY
Old 01-19-2007 , 12:27   Re: Country Filter
Reply With Quote #10

Hi Knaggo,

doesn work for me anymore.
Plugin is loaded in meta list and the config is loaded by server.cfg.

hmmm.... keine Ahnung warum....
__________________
Rebell is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode