So the code i have makes a prefix for players , showing their levels, resets, sresets before their name
example : [level 500] [Reset 5] [Sreset 3] Player: chat
the prefix itself is Green, playername is team color, and the chat is regular color
what i wanted to do was have the same prefix for admins except make admin names White, and their chat green no matter which team they're on
even if name color cant be changed to white or grey, if admin chat is green while dead and alive, and while dead both admins and regular players have [Dead] prefix , that'd be good
Code:
public HookSay(id)
{
static message[190]
read_args(message, charsmax(message))
remove_quotes(message)
if (equal(message, ""))
return PLUGIN_HANDLED;
if (is_user_alive(id) && (get_user_flags(id) & ADMIN_IMMUNITY))
zp_colored_print(0, "^x04[-Level %d] [-Reset %d] [-SReset %d]^x02 %s^x01^x04: %s", g_level[id], g_reset[id], g_grandreset[id], g_playername[id], message)
else
zp_colored_print(0, "^x04[Dead]^x02 %s^x04 : %s", g_playername[id], message)
if (is_user_alive(id))
zp_colored_print(0, "^x04[-Level %d] [-Reset %d] [-SReset %d]^x03 %s^x01 : %s", g_level[id], g_reset[id], g_grandreset[id], g_playername[id], message)
else
zp_colored_print(0, "^x04[Dead]^x03 %s^x01 : %s", g_playername[id], message)
return PLUGIN_HANDLED;
}
thats the code, yet so far this is what it looks like :
http://images.akamai.steamuserconten...A96FEBE343E58/
and for normal players it looks like this
http://puu.sh/m6VdO/7c33a782bc.jpg
and i have tried plugins with admin prefix, they make the plugin's own prefix ( Levels, Resets , Sresets ) go away and be replaced by [Admin] instead, and thats not what i wanted
i have also tried admin chat colors and it had no effect at all. im not really a coder much so if anyone can help me out with it i'd really appretiate it