PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>
#define PLUGIN "PLUGIN"
#define VERSION "VERSION"
#define AUTHOR "AUTHOR"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /country", "scan_text" )
}
public client_connect(id)
{
new arg[128], name[64];
read_argv(1,arg,127);
new id = str_to_num(arg);
get_user_name(id,name,63);
new usrip[33], result[46];
get_user_ip(id, usrip, 32, 1);
geoip_country(usrip, result, 45);
client_print(id, print_chat, "[AMXX] %s is from %s", name, result);
}
Why doesent this work?
And
PHP Code:
public Foot_steps(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
set_user_footsteps (id, 1)
}
} //how to set silents footsteps to terrorist only?
and
PHP Code:
public client_connect(id)
{
if(is_user_admin(id))
{
new name[18]
get_user_name(id, name, 17)
client_cmd (0, "spk %s", g_sound1)
set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(0, "Admin %s connected", name)
}
How im going to set hudmessage when admin connect?
and is it possible to make plugin that allows admins to spectate everyone, but normal players just teammates?
__________________