Problema Country_kicker

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 21:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 177 times
Been thanked: 405 times

05 Oct 2009, 10:00

Ai internet de la RDS?
RoyalServer
User avatar
Granea
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 15 Apr 2009, 21:14
Detinator Steam: Da
SteamID: granea21
Location: Alexandria
Has thanked: 8 times

05 Oct 2009, 11:09

Da.
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 19:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

05 Oct 2009, 11:31

pai deaia nu te lasa sa intri ca la pluginurile country kicker etc...stiu ca nu lasa pe toata lumea din romania sa intre doar pe cei din anumite retele de internet stiu ca si un prieten o patit-o avea rds si nu-l lasa sa intre pe server
Retras din activitate.
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 21:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 177 times
Been thanked: 405 times

05 Oct 2009, 14:36

Granea wrote:Da.
Atunci nu-l mai folosi. IP-urile din RDS sunt considerate a fi din alta tara.
User avatar
TiTex
Membru, skill +1
Membru, skill +1
Posts: 400
Joined: 14 Feb 2009, 00:08
Detinator Steam: Da
Detinator server CS: cs.ilogicgroup.org
Been thanked: 35 times
Contact:

05 Oct 2009, 15:10

crazy.cipry wrote:
Granea wrote:Da.
Atunci nu-l mai folosi. IP-urile din RDS sunt considerate a fi din alta tara.
gresit , trebuie doar sa updatezi GeoIP
Academician, profesor, doctor, inginer, honoris cauza si premiul Nobel
[ Ardealul e al nost' http://www.ilogicgroup.org Image]
Si ar mai fi de zis multe,mult,mult prea multe
Dar prefer sa inchei,oricum nimeni n`o s`asculte.
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 21:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 177 times
Been thanked: 405 times

05 Oct 2009, 15:11

TiTex wrote:gresit , trebuie doar sa updatezi GeoIP
crazy.cipry wrote:Pune acest GeoIp.dat in addons/amxmodx/data.
Asta e printre cele mai noi, il folosesc la mine pe server, dar el zice ca nu merge...
MosCraciun
Membru, skill +1
Membru, skill +1
Posts: 115
Joined: 11 Sep 2008, 20:03
Detinator Steam: Da
CS Status: h00ligans.zapto.org
Detinator server CS: h00ligans.zapto.org
SteamID: swat3r_cs
Location: h00ligans.zapto.org
Been thanked: 1 time

12 Oct 2009, 20:56

Seteaza cvarurile asa:
sv_country_name "ROU"
sv_country 1

Deci asa le pui in sma-ul country_kicker-ului apoi il compilezi si treci cvarurile si in amxx.cfg

Bft.
connect h00ligans.zapto.org
User avatar
Granea
Membru, skill +1
Membru, skill +1
Posts: 191
Joined: 15 Apr 2009, 21:14
Detinator Steam: Da
SteamID: granea21
Location: Alexandria
Has thanked: 8 times

14 Oct 2009, 23:15

Uite aici sma.
| Afiseaza codul
/* Country kicker
 Fisier descarcat de pe www.eXtreamCS.com!

About:
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

Forum topic: http://www.amxmodx.org/forums/viewtopic.php?t=12063

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"

Changelog
1.0.0( 18.12.2004 )
	- First public release
*/ 

#include <amxmodx> 
#include <geoip>

#define MAX_COUNTRYS 15

new g_Mode
new g_CC[MAX_COUNTRYS+1][4]
new g_Countries
new CountyList[128]

public plugin_init()
{ 
	register_plugin("Country kicker","1.0.0","EKS")
	register_cvar("sv_country_name","NOR,DEN")
	register_cvar("sv_country","1")
}

public plugin_cfg()
{
	g_Mode = get_cvar_num("sv_country")
	
	new CvarInfo[MAX_COUNTRYS*3+MAX_COUNTRYS+2]
	get_cvar_string("sv_country_name",CvarInfo,MAX_COUNTRYS*3+MAX_COUNTRYS+2)
	
	g_Countries = ExplodeString( g_CC, MAX_COUNTRYS, 3, CvarInfo, ',' )
	
	for(new i=0;i<=g_Countries;i++)
		format(CountyList,127,"%s %s",CountyList,g_CC)
}
stock ExplodeString( p_szOutput[][], p_nMax, p_nSize, p_szInput[], p_szDelimiter ) 
{ 
    new nIdx = 0, l = strlen(p_szInput) 
    new nLen = (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput, p_szDelimiter )) 
    while( (nLen < l) && (++nIdx < p_nMax) ) 
        nLen += (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput[nLen], p_szDelimiter )) 
    return nIdx
} 
stock IsConInArray(Con[4])
{
	for(new i=0;i<=g_Countries;i++)
	{
		if(equal(Con,g_CC))
			return 1
	}
	return 0
}
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
}
public client_connect(id)
{
	new userip[32]
	new CC[4]
	get_user_ip(id,userip,31,1)

	geoip_code3(userip,CC)
	if(strlen(userip) == 0)
	{
		get_user_ip(id,userip,31,1)		
		if(!IsLocalIp(userip))
			log_amx("%s made a error when passed though geoip",userip)
		return PLUGIN_HANDLED
	}
	
	if(g_Mode == 1 && !IsConInArray(CC))
	{
		server_cmd("kick #%d Only ppl from %s are allowed",get_user_userid(id),CountyList)
		
		new Name[32]
		get_user_name(id,Name,31)
		client_print(0,print_chat,"%s was kicked because he is not from %s",Name,CountyList)
	}
	else if(g_Mode == 2 && IsConInArray(CC))
	{
		server_cmd("kick #%d No %s are allowed on this server",get_user_userid(id),CC)
		
		new Name[32]
		get_user_name(id,Name,31)
		client_print(0,print_chat,"%s was kicked because he is from %s",Name,CC)
	}
	return PLUGIN_HANDLED
}
Last edited by TZACANEL on 14 Oct 2009, 23:17, edited 1 time in total.
Reason: [Sursa][/Sursa]
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

18 Oct 2009, 11:14

Salut,

Foloseste asta :
country_kicker.sma | Afiseaza codul
/* Country kicker
 Fisier descarcat de pe http://www.eXtreamCS.com!

About:
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

Forum topic: http://www.amxmodx.org/forums/viewtopic.php?t=12063

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"

Changelog
1.0.0( 18.12.2004 )
	- First public release
*/ 

#include <amxmodx> 
#include <geoip>

#define MAX_COUNTRYS 15

new g_Mode
new g_CC[MAX_COUNTRYS+1][4]
new g_Countries
new CountyList[128]

public plugin_init()
{ 
	register_plugin("Country kicker","1.0.0","EKS")
	register_cvar("sv_country_name","RO,ROU,ROM")
	register_cvar("sv_country","1")
}

public plugin_cfg()
{
	g_Mode = get_cvar_num("sv_country")
	
	new CvarInfo[MAX_COUNTRYS*3+MAX_COUNTRYS+2]
	get_cvar_string("sv_country_name",CvarInfo,MAX_COUNTRYS*3+MAX_COUNTRYS+2)
	
	g_Countries = ExplodeString( g_CC, MAX_COUNTRYS, 3, CvarInfo, ',' )
	
	for(new i=0;i<=g_Countries;i++)
		format(CountyList,127,"%s %s",CountyList,g_CC)
}
stock ExplodeString( p_szOutput[][], p_nMax, p_nSize, p_szInput[], p_szDelimiter ) 
{ 
    new nIdx = 0, l = strlen(p_szInput) 
    new nLen = (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput, p_szDelimiter )) 
    while( (nLen < l) && (++nIdx < p_nMax) ) 
        nLen += (1 + copyc( p_szOutput[nIdx], p_nSize, p_szInput[nLen], p_szDelimiter )) 
    return nIdx
} 
stock IsConInArray(Con[4])
{
	for(new i=0;i<=g_Countries;i++)
	{
		if(equal(Con,g_CC))
			return 1
	}
	return 0
}
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
}
public client_connect(id)
{
	new userip[32]
	new CC[4]
	get_user_ip(id,userip,31,1)

	geoip_code3(userip,CC)
	if(strlen(userip) == 0)
	{
		get_user_ip(id,userip,31,1)		
		if(!IsLocalIp(userip))
			log_amx("%s made a error when passed though geoip",userip)
		return PLUGIN_HANDLED
	}
	
	if(g_Mode == 1 && !IsConInArray(CC))
	{
		server_cmd("kick #%d Only ppl from %s are allowed",get_user_userid(id),CountyList)
		
		new Name[32]
		get_user_name(id,Name,31)
		client_print(0,print_chat,"%s was kicked because he is not from %s",Name,CountyList)
	}
	else if(g_Mode == 2 && IsConInArray(CC))
	{
		server_cmd("kick #%d No %s are allowed on this server",get_user_userid(id),CC)
		
		new Name[32]
		get_user_name(id,Name,31)
		client_print(0,print_chat,"%s was kicked because he is from %s",Name,CC)
	}
	return PLUGIN_HANDLED
}


Si scoate toate cvarurile adaugate de tine prin amxx.cfg,server.cfg
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
User avatar
scorpi
Fost moderator
Fost moderator
Posts: 4355
Joined: 25 May 2008, 09:23
Detinator Steam: Da
Reputatie: Fost eXtream mod
Nume anterior: scorpi, shotskat, xqvs
Fost Membru Club eXtreamCS
Location: Bacau
Has thanked: 66 times
Been thanked: 117 times

18 Oct 2009, 11:51

Ai uitat acolo la inceput
sv_country_name "NOR,DEN"
->
sv_country_name "ROU,NOR,DEN"
Image
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

19 Oct 2009, 09:11

Scorpions wrote:Ai uitat acolo la inceput
sv_country_name "NOR,DEN"
->
sv_country_name "ROU,NOR,DEN"
Aia de la inceput nu este utila deoarece daca vezi tu e inchis si deschis cu exemplu...

Code: Select all

/*
*/ 
Tot ce este scris aci intre astea 2 nu face parte din plugin si nu este util deloc.
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
Ionut
Fost moderator
Fost moderator
Posts: 3927
Joined: 28 Jul 2008, 23:10
Detinator Steam: Da
SteamID: intzor
Reputatie: Fost eXtream Mod
Nume anterior: blanq, filtzeR
Fost Membru Club eXtreamCS (doua luni)
Location: Constanta
Has thanked: 142 times
Been thanked: 243 times

18 Nov 2009, 08:36

Downloadeaza pluginul asta : Click
Always on ten, always too loud
Always too hard for this boujee ass crowd
Even these haters, they love my style
So, I don't know what you talkin' about
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 113 guests