Maby this will work
Code:
#include <amxmodx>
#include <amxmisc>
new atCustom
public plugin_init()
{
register_plugin("Admin Tag", "1.0", "hleV")
atCustom = register_cvar("at_custom", "[HAPPY] ")
}
public client_connect(id)
{
cmdGiveTag(id)
}
public cmdGiveTag(id)
{
new name[32], tag[32]
get_user_name(id, name, 31)
get_pcvar_string(atCustom, tag, 31)
if (contain(name, tag))
client_cmd(id, "name ^"%s%s^"", tag, name)
return PLUGIN_HANDLED
}