It doesn't work, it won't show up a husmessage, this is the script:
Code:
#include <amxmodx>
#include <geoip>
public plugin_init() {
register_plugin("Country", "0.1", "v3x")
register_event("DeathMsg","event_DeathMsg","a")
return PLUGIN_CONTINUE
}
public event_DeathMsg() {
new id = read_data(2)
if(is_user_alive(id)) remove_task(id)
new tid, body
get_user_aiming(id,tid,body,200)
new name[33]
new ip[33]
new country[45]
get_user_name(tid,name,32)
get_user_ip(tid,ip,32)
geoip_country(ip,country)
set_hudmessage(200, 100, 0, -1.0, 0.35, 0, 6.0, 0.5, 0.1, 0.2, 4)
show_hudmessage(id,"%s from %s",name,country)
set_task(0.5,"event_DeathMsg",id)
return PLUGIN_CONTINUE
}