Hi.
Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>
new countries[33][46]
new ips[33][30]
public plugin_init()
{
register_clcmd("say", "cmdSay")
}
public client_connect(id)
{
get_user_ip(id, ips[id], charsmax(ips))
geoip_country(ips[id], countries[id], charsmax(countries))
}
public cmdSay(id)
{
new message2[200]
read_args(message2, charsmax(message2))
new name[32]
get_user_name(id, name, 31)
new country[46]
copy(country, charsmax(country), countries[id])
client_print(0, print_chat, "[%s] %s : %s", country, name, message2[1])
}
The result is like this.
[Japan] Player : Hello
Player : Hello
The original chat "Player : Hello" Please tell me how to delete the