Try this, cvars: amx_tag "Player" and amx_tag_name "Tag Name"
Untested:
Code:
#include <amxmodx>
#include <amxmisc>
new Tag;
public plugin_init() {
Tag = register_cvar("amx_tag_name", "Amx #");
register_clcmd("amx_tag", "CmdTag");
}
public CmdTag(id) {
if(get_user_flags(id) & ADMIN_KICK) {
new User[32], Uid;
read_argv(1, User, 31);
Uid = find_player("bhl", User);
if(Uid == 0) {
client_print(id, print_chat, "Player not found.");
return PLUGIN_HANDLED;
}
new szName[32], UserTag[32], SetName[32];
get_user_name(Uid, szName, 31);
get_pcvar_string(Tag, UserTag, 31);
format(SetName, 31, "%s %s", szName, UserTag);
set_user_info(Uid, "name", SetName);
return PLUGIN_HANDLED;
}
else {
client_print(id, print_chat, "You can't use this command.");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
__________________