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

Country kicker


Post New Thread Reply   
 
Thread Tools Display Modes
feffe
Member
Join Date: Dec 2005
Location: Denmark
Old 03-11-2006 , 18:43   Re: Country kicker
Reply With Quote #31

Quote:
Originally Posted by EKS
This plugin is used if you only want ppl from spesfic countrys on your server, or wanna prevent ppl from a spesfic countrys from entering


Modules required: geoip

Credits:
Ops in #AMXmod @ Quakenet for alot of help ( + AssKicker & CheesyPeteza )
xeroblood Explode string func

Setting up plugin:
sv_country
1 Only allow ppl from this country
2 Everyone exect from this country

sv_country_name use commas to seperate country names
like:
sv_country_name "NOR,DEN"

Country list: http://www.statoids.com/wab.html <- Use A-3

Changelog
1.0.0( 18.12.2004 )
- First public release[/b]

DEN is not in the A-3 list. im from denmark and it should be DNK??

i always get the errror called:

nly ppl from dnk nor are allowed....

should i write somethings else in the server.cfg?


i found that the cvar, dont work. you have to change witch countrys in the .sma file... strange but true
feffe is offline
sirdrinkalot
Junior Member
Join Date: Feb 2006
Location: Fantasy world of CS
Old 03-15-2006 , 10:31   Use as a country kicker, not banner...
Reply With Quote #32

Is there any way to make this kick instead of not allow at all?
sirdrinkalot is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-15-2006 , 13:45   Re: Use as a country kicker, not banner...
Reply With Quote #33

Quote:
Originally Posted by sirdrinkalot
Is there any way to make this kick instead of not allow at all?
that makes not sense

this does kick the players that does not come from the correct nation
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 03-15-2006 , 13:53  
Reply With Quote #34

Ok I have to ask, why do you want to kick people from a certain country?
6pack is offline
feffe
Member
Join Date: Dec 2005
Location: Denmark
Old 03-17-2006 , 15:00  
Reply With Quote #35

Quote:
Originally Posted by 6pack
Ok I have to ask, why do you want to kick people from a certain country?
All german people cheats

i hate whem peole woth low ping is joining the server and talk ind their own language
feffe is offline
sirdrinkalot
Junior Member
Join Date: Feb 2006
Location: Fantasy world of CS
Old 03-17-2006 , 16:24  
Reply With Quote #36

Sorry, I was a little vague. I was drunk, once again - anyway, what I mean is - I want to allow ALL people from ALL countries, but want to be able to, at my will, Kick all the people from a certain country with a command like "/amx_countkick ***" or something like that.
sirdrinkalot is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 03-17-2006 , 22:39  
Reply With Quote #37

Edit: Plugin works flawlessly. Great idea.
SubStream is offline
Puntje
Member
Join Date: May 2004
Old 03-31-2006 , 09:50  
Reply With Quote #38

Lots of germans on my server connect from dialin-t.net... Amxbans for instance puts an american flag behind their nick. What country exactly should i put 'm in then? America like amxbans says?

Also, im trying to keep out all the germans cause of the fact of 'm not reading my motd, which is pretty clear about the language that has to be spoken there.
Im getting however kicked everytime im trying to join, even when i changed sv_country...
Quote:
sv_country 2
"sv_country" is "2"
L 03/31/2006 - 16:55:20: World triggered "Round_Start"
L 03/31/2006 - 16:57:13: "ex-Rawh^<2><STEAM_ID_PENDING><>" connected, address "130.89.***.***:27005"
L 03/31/2006 - 16:57:13: Kick: "ex-Rawh^<2><STEAM_ID_PENDING><>" was kicked by "Console" (message "Only ppl from DEU are allowed")
Dropped ex-Rawh^ from server
Reason: Kicked :Only ppl from DEU are allowed
sv_country
"sv_country" is "2"
Quote:
sv_country 1
sv_country
"sv_country" is "1"
130.89.162.19:27005:reconnect
L 03/31/2006 - 16:57:44: "ex-Rawh^<3><STEAM_ID_PENDING><>" connected, address "130.89.***.***:27005"
L 03/31/2006 - 16:57:44: Kick: "ex-Rawh^<3><STEAM_ID_PENDING><>" was kicked by "Console" (message "Only ppl from DEU are allowed")
Dropped ex-Rawh^ from server
Reason: Kicked :Only ppl from DEU are allowed
I've got the following inside my server.cfg:
Quote:
sv_country 1
sv_country_name "DEU"
I've also got GeoIP running (because of amxbans).

here's a list of meta:
Quote:
meta list
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.60 ini ANY ANY
[ 2] SBSRV RUN - sbsrv_mm_i386.so v2.4 ini Start Never
[ 3] STATSME RUN - statsme_mm_i386. v2.8.3 ini Chlvl Chlvl
[ 4] Fun RUN - fun_amxx_i386.so v1.60 pl1 ANY ANY
[ 5] Engine RUN - engine_amxx_i386 v1.60 pl1 ANY ANY
[ 6] MySQL RUN - mysql_amxx_i386. v1.60 pl1 ANY ANY
[ 7] GeoIP RUN - geoip_amxx_i386. v1.60 pl1 ANY ANY
[ 8] CStrike RUN - cstrike_amxx_i38 v1.60 pl1 ANY ANY
8 plugins, 8 running
And list of amxx:
Quote:
amxx list
Currently loaded plugins:
name version author file status
[ 1] Admin Base (AmxBa 1.60 AMXX Dev Team admin_sql.amxx running
[ 2] AMXBans 4.3 YoMama/Lux & lan amxbans.amxx running
[ 3] Admin Commands 1.60 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.60 AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.60 AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual Sys 1.60 AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.60 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.60 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.60 AMXX Dev Team plmenu.amxx running
[ 10] Maps Menu 1.60 AMXX Dev Team mapsmenu.amxx running
[ 11] Admin Chat 1.60 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.60 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.60 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.60 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.60 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.60 AMXX Dev Team nextmap.amxx running
[ 17] TimeLeft 1.60 AMXX Dev Team timeleft.amxx running
[ 18] Pause Plugins 1.60 AMXX Dev Team pausecfg.amxx running
[ 19] Stats Configurati 1.60 AMXX Dev Team statscfg.amxx running
[ 20] Restrict Weapons 1.60 AMXX Dev Team restmenu.amxx running
[ 21] Awp2Scout 0.2 [-3LH-]Geezus awp2scout.amxx running
[ 22] say /motd 1.1 Pa1n say_motd.amxx running
[ 23] High Ping Kicker 1.2.0 DynAstY hpk.amxx running
[ 24] Spec Kick 1.0 foo.bar spec_kick.amxx running
[ 25] Admin Spectator E 1.0 KoST admin_spec_esp. running
[ 26] AdminListen 2.3x /dev/ urandom adminlisten.amx running
[ 27] ATAC 2.5.5.0 T(+)rget/f117bom amxx_atac.2.5.5 running
[ 28] ATAC Config 1.1.06 f117bomb & T(+)r amxx_atac_cfg.a running
[ 29] Admin Gag 1.8.3 EKS admin_gag.amxx running
[ 30] Country kicker 1.0.0 EKS country_kicker. running
30 plugins, 30 running
Love the amx_gag btw

Any ideas on what im doing wrong or any questions?

Also did a small edit to the file regarding local ip addresses.
Replaced:
Code:
stock IsLocalIp(IP[32]) {     new tIP[32]         copy(tIP,3,IP)     if(equal(tIP,"10.") || equal(tIP,"127"))         return 1     copy(tIP,7,IP)     if(equal(tIP,"192.168"))         return 1     return 0 }
With:
Code:
stock IsLocalIp(IP[32]) {     new tIP[32]         copy(tIP,3,IP)     if(equal(tIP,"10.") || equal(tIP,"127") || equal(tIP,"130"))         return 1     copy(tIP,7,IP)     if(equal(tIP,"192.168"))         return 1     return 0
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
Puntje is offline
Send a message via ICQ to Puntje
feffe
Member
Join Date: Dec 2005
Location: Denmark
Old 05-26-2006 , 17:37  
Reply With Quote #39

I dont think this plugin is stable....

i got my sv_country = 1
sv_country_name = NOR,DNK

If i change it to NOR,DNK,SWE

it still kicks all the swedish people.

If i change the .sma

register_cvar("sv_country_name","NOR,DEN") <- This Linie... (DEN is not the right code to Denmark... error nr 2, but anyway..)

i change it to

register_cvar("sv_country_name","NOR,DNK,SWE" )

recompile and then it works.

How could that be???


question 2.

Is it possible to ad an IP of a user, who can connect, no matter what country it is from...?
feffe is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 05-26-2006 , 19:08  
Reply With Quote #40

I guess your config file gets executed to soon, so the plugin overwrites it.

Also no you cannot add a ip thats "ignored" without editing the code
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS 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:21.


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