Maybe you can try this. (maybe not stable

, but you can test it)
PHP Code:
#include amxmodx
const MAXTAGS = 5
new const g_szTagNames[MAXTAGS][] = {
"^4[HEAD-ADMIN]",
"[ADMIN]",
"^4[SUPERMOD]",
"[MOD]",
"[VIP]"
}
new const g_iAdminFlags[MAXTAGS] = {
ADMIN_IMMUNITY,
ADMIN_BAN,
ADMIN_KICK,
ADMIN_CHAT,
ADMIN_RESERVATION
}
new g_szFormatted[64]
public plugin_init()
{
register_clcmd( "say", "ClientCommand_Say" )
register_clcmd( "say_team", "ClientCommand_Say" )
register_message( get_user_msgid( "SayText" ), "Message_SayText" )
}
public ClientCommand_Say( id )
{
for( new i = 0; i < MAXTAGS; i++ )
{
if( get_user_flags( id ) & g_iAdminFlags[i] )
{
static szName[32]
get_user_name( id, szName, charsmax( szName ) )
formatex( g_szFormatted, charsmax( g_szFormatted ), "^1%s ^3%s", g_szTagNames[i], szName )
return
}
}
g_szFormatted[0] = 0
}
public Message_SayText( iMsgId, iMsgDest, id )
{
static szString1[19]
get_msg_arg_string( 2, szString1, 18 )
if( equal( szString1, "#Cstrike_Chat_", 14 ) && g_szFormatted[0] )
{
// #Cstrike_Chat_All
if( szString1[14] == 'A' && !szString1[17] )
set_msg_arg_string( 2, "%s1 ^1: %s2" ) // Fix the color
set_msg_arg_string( 3, g_szFormatted )
}
}
__________________