Try this
PHP Code:
public client_putinserver(this)
{
if (is_user_bot(this))
return;
if (is_user_hltv(this))
return;
new szName[32], szCountry[46], szIp[17];
get_user_name(this, szName, charsmax(szName));
get_user_ip(this, szIp, charsmax(szIp));
geoip_country(szIp, szCountry, charsmax(szCountry));
if(!strlen(szCountry)) szCountry = "N/A";
client_print(0, print_chat, "Player %s has connected (%s).", szName, szCountry);
}
__________________