show_country_connect
Wrote the following code to refer to
http://www.amxmodx.org/funcwiki.php?go=func&id=487
http://www.amxmodx.org/funcwiki.php?go=func&id=154
However, it fails to compile
What do I do?
http://www.amxmodx.org/funcwiki.php?go=func&id=487
http://www.amxmodx.org/funcwiki.php?go=func&id=154
However, it fails to compile
What do I do?
Code:
#include <amxmodx>
#include <geoip>
public plugin_init()
{
register_plugin("PLUGIN", "VERSION", "AUTHOR")
}
public client_connect(id)
{
new name[32]
new authid[32]
new ip[]
new country[]
get_user_name(id, name, 31)
get_user_authid(id, authid, 31)
get_user_ip(id, ip)
geoip_country(ip[], country)
client_print(0, print_chat, "%s (%s) has connected to the server from %s", name, authid, country)
}
public client_disconnect(id)
{
new name[32]
new authid[32]
new ip[]
new country[]
get_user_name(id, name, 31)
get_user_authid(id, authid, 31)
get_user_ip(id, ip)
geoip_country(ip[], country)
client_print(0, print_chat, "%s (%s) has disconnected to the server from %s", name, authid, country)
}
Orignal From: show_country_connect
Post a Comment