Try the /country command from this plugin and see if it works:
PHP Code:
#include <amxmodx>
#include <geoip>
#if !defined geoip_country_ex
#define geoip_country_ex geoip_country
#endif
public plugin_init()
{
register_plugin("GeoIP Test", "1.0", "OciXCrom")
register_clcmd("say /country", "Cmd_Country")
}
public Cmd_Country(id)
{
new szCountry[45], szIP[32]
get_user_ip(id, szIP, charsmax(szIP))
geoip_country_ex(szIP, szCountry, charsmax(szCountry))
client_print(id, print_chat, "Your country is %s.", szCountry)
return PLUGIN_HANDLED
}
If it doesn't work as well, the problem is in GeoIP. Tell me which AMXX version you're using.
__________________