Quote:
Originally Posted by siriusmd99
PHP 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)) zp_colored_print(0, "^x04%s[-Level %d] [-Reset %d] [-SReset %d]^x02 %s^x01 : %s",(get_user_flags(id) & ADMIN_IMMUNITY) ? "[ADMIN]" : "" ,g_level[id], g_reset[id], g_grandreset[id], g_playername[id], message) else zp_colored_print(0, "^x04%s[Dead]^x03 %s^x01 : %s", (get_user_flags(id) & ADMIN_IMMUNITY) ? "ADMIN" : "", g_playername[id], message) return PLUGIN_HANDLED;
}
This should put [ADMIN] in front of the message.
From the edit i understood that you wanted this.
|
oh no, i just wanted The admin Name to be Grey/White color, and admin chat to be green
and when player or admin is dead, have the [dead] prefix
i do NOT want [admin] prefix like that