Wouldn't this be easier?
PHP Code:
#include <amxmodx>
#include <colorchat>
#define PLUGIN "Admin Tags"
#define VERSION "1.1"
#define AUTHOR "emblaze"
new flagi[] = {
ADMIN_IMMUNITY
}
new tagi[][] = {
"[ADMIN]"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_authorized (id) {
new username[32]
get_user_name(id, username, 31)
new user_flags = get_user_flags(id)
for (new i; i<sizeof(flagi); i++)
if (user_flags & flagi[i])
{
if (contain(username, tagi[i])==-1)
ColorChat(id, GREEN, "name ^"%s^x01 %s^"", tagi[i], username)
break
}
}
__________________
We all live under the same sky but we have different horizons.