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

Country Filter 2nd Edition


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-02-2011 , 04:34   Re: Country Filter 2nd Edition
Reply With Quote #21

Quote:
Originally Posted by sinblaster View Post
can anyone confirm that the LAN blocking works for them because its not working on my servers. The country block seems to be ok but no lan
Can you show what IP ??

*edit
I do have typo on 172.16.0.0 - 172.31.255.255 address... it will select all 172.xxx.xxx.xxx addresses
Fix this to next version




*edit 7.4.2011
Oooops !
I just wanted to do minor change to my plugin so I delete and tried update new source file, BAM! fail upload file.
Now I have somekind database error, can't see even my profile.

*fixed

Last edited by Bacardi; 04-09-2011 at 11:24.
Bacardi is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 03-04-2011 , 03:51   Re: Country Filter 2nd Edition
Reply With Quote #22

Hi,

solved.

Last edited by eric0279; 03-04-2011 at 05:48.
eric0279 is offline
rtk
Senior Member
Join Date: Dec 2009
Old 04-22-2011 , 04:02   Re: Country Filter 2nd Edition
Reply With Quote #23

There should be added the feature to kick foreign players when the server starts getting full.
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-22-2011 , 04:16   Re: Country Filter 2nd Edition
Reply With Quote #24

Quote:
Originally Posted by rtk View Post
There should be added the feature to kick foreign players when the server starts getting full.
You should able do this with one of per player plugin, you jsut change cvars depend how many players have joined server.

I'm not going to add this feature.

*edit
There two plugins
Execute Configs 1.0 (Updated 08/12/09)

and Per player commands

Maybe Per Player Commands is little easier to do this, Execute Configs use config files (*cfg) to change cvars.

*edit
Per Player commands
perplayersettings.txt
Code:
"PerPlayer"
{
    "0"        "say Empty server; cf_mode 0; cf_countries 0; cf_allowunidentified 1"
    "5"        "say Less players; cf_mode 0; cf_countries 0; cf_allowunidentified 1"
    "9"        ""
    "default"    "say Enable Country Filter; cf_mode 1; cf_countries FI; cf_allowunidentified 0"
}
- When server is empty 0, it disable country filter
- When first player connect or there 5 or less players on server, it disable country filter
- 9 players or more, it enable Country filter and start kick.

If you see, we add empty space "" between 5 player and 9 player.
So it not change cvars back too quicly when players disconnect.
Between 5 - 9 is dead area what not take any action

- If cf_adminimmunity 0 (disabled) it not kick players who have already on server when map change.
Enabling cf_adminimmunity to 1, it kick rest when map change... but then there are less player it change cvars pack and so on and so on...

Last edited by Bacardi; 04-22-2011 at 05:15.
Bacardi is offline
rtk
Senior Member
Join Date: Dec 2009
Old 04-22-2011 , 05:14   Re: Country Filter 2nd Edition
Reply With Quote #25

Well yes, does exacly the same.

TUVM ;)
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-22-2011 , 05:16   Re: Country Filter 2nd Edition
Reply With Quote #26

I added more info my previous post....
Bacardi is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 05-21-2011 , 09:27   Re: Country Filter 2nd Edition
Reply With Quote #27

Hi.
Can i prevent to connect players from anonymous proxy servers, with this plugin? Lag, cheats, hacks all. Like this one:

Code:
Power Inside / Anonymous Proxy go 199.255.209.70 / STEAM_0:0:32764850 : Aimbot
Aimbot

Br.

Last edited by blue zebra; 05-21-2011 at 09:30.
blue zebra is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-21-2011 , 14:17   Re: Country Filter 2nd Edition
Reply With Quote #28

Quote:
Originally Posted by blue zebra View Post
Hi.
Can i prevent to connect players from anonymous proxy servers, with this plugin? Lag, cheats, hacks all. Like this one:

Code:
Power Inside / Anonymous Proxy go 199.255.209.70 / STEAM_0:0:32764850 : Aimbot
Aimbot

Br.
Yes, if plugin not found country from GeoIP.dat with given IP, country filter kick player because "unidentified country"

Quote:
cf_allowunidentified "0"
// Allow players connect from unidentified country, 0 = Disabled, 1 = Enabled
*edit
If you want, you can ban IP range 199.255.209.0 - 199.255.209.255
Code:
addip 0 199.255.209
or
Code:
sm_banip 199.255.209 0

Last edited by Bacardi; 05-22-2011 at 02:05.
Bacardi is offline
EEdover
Junior Member
Join Date: Aug 2011
Old 08-25-2011 , 06:55   Re: Country Filter 2nd Edition
Reply With Quote #29

Hi,

I have a small issue with that plugin.
Everything works and restricted country is being kicked but...
Client is not being actually kicked but also he cant connect. HLSW shows that slot is in use. Client stays like hanging in server, preventing allowed clients to connect.
Also plugin floods in chat that Player X is restricted and dropped from server.
I think that client tryes automatically reconnect and plugin prevents that.
As a solution I think that only kick is not the best option. Correct me if I am wrong but when client gets banned then it cant reconnect ?!
Is it possible that plugin bans+kicks client from server instead of kick ?
Ban time does not have to be long. I think 10 min. is enough.

Thanks.
EEdover is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-25-2011 , 08:25   Re: Country Filter 2nd Edition
Reply With Quote #30

Quote:
Originally Posted by EEdover View Post
Hi,

I have a small issue with that plugin.
Everything works and restricted country is being kicked but...
Client is not being actually kicked but also he cant connect. HLSW shows that slot is in use. Client stays like hanging in server, preventing allowed clients to connect.
Also plugin floods in chat that Player X is restricted and dropped from server.
I think that client tryes automatically reconnect and plugin prevents that.
As a solution I think that only kick is not the best option. Correct me if I am wrong but when client gets banned then it cant reconnect ?!
Is it possible that plugin bans+kicks client from server instead of kick ?
Ban time does not have to be long. I think 10 min. is enough.

Thanks.
Which cf_adminimmunity value you have now ?

I could add this ban feature in plugin...
when give temporary steam_id ban, he can't connect spam anymore (he get reason "You have been banned from this server" later)
or when give IP ban, he's loading bar stuck and fail connect after 4 retryis, not see server anymore from server browser until ban expire.
__________________
Do not Private Message @me
Bacardi is offline
Reply



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 08:25.


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