Oh, wow.. It worked just a minute ago.. I'll try to figure this out.
Edit:
Code:
public myFunc(id) {
new target = read_data(2)
new g_message = get_cvar_num("sv_message")
new ip[32]
new country[45]
get_user_ip(target,ip,31)
geoip_country(ip,country)
if(equal(country,"United States") && g_message == 1){
//...
}
return PLUGIN_HANDLED
}
[EDITED]
__________________