Already exists (I made one already). I've edited my Admin Tag so this version is the same as you need:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define ADMIN_FLAG ADMIN_IMMUNITY
new at_enable, at_custom
public plugin_init()
{
register_plugin("Admin Tag", "1.2", "hleV")
at_enable = register_cvar("at_enable", "1")
at_custom = register_cvar("at_custom", " [ADMIN]")
}
public client_putinserver(id)
if (get_pcvar_num(at_enable))
set_task(0.1, "changePlayerName", id)
public changePlayerName(id)
{
new name[32], tag[32]
get_user_name(id, name, 31)
get_pcvar_string(at_custom, tag, 31)
if (contain(name, tag) && get_user_flags(id) & ADMIN_FLAG)
client_cmd(id, "name ^"%s%s^"", name, tag)
}
__________________