I force my suggestion upon ye!
PHP Code:
public client_connect(id)
{
new usersteamid[37]
get_user_authid(id,usersteamid,36)
if(!equal("Your friend's steam ID here",usersteamid)&&!equal("Your second friend's steam ID here",usersteamid))
{
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
}
Replace this function with the code above, and add in the steamid's of your friends within the quotes.
__________________