Green chat color blocks ALIVE/DEAD Chat?
I've had servers for over 4 years.
Today, I've noticed something, whenever I have green chat color for admins etc the alive chat and dead chat doesn't work
with that I mean Dead can see Alive's chat and Alive can see deads chat. That doesn't work when I have green color...
I've had this problem with a lot of different plugins is this a cs bug or bad coded? I've tried a lot of plugins still same shit.
Code I use:
PHP Code:
#include < amxmodx > #include < amxmisc > #include < cstrike >
new g_iMsgID_SayText;
new g_iAdminChatFlag = ADMIN_ALL;
new g_szTags[1][2]; new Trie:g_tSteamTagIndex; new g_iPlayerTag[33]
public plugin_init( ) { register_plugin("Chatt ranker", "1.0", "Fysiks") register_clcmd( "say", "CmdSay" ); register_clcmd( "say_team", "CmdSayTeam" ); g_iAdminChatFlag = iFlags; break; } }
if( !is_user_connected( id ) ) return PLUGIN_HANDLED_MAIN; new szArgs[ 194 ]; if( !IsValidMessage( id, false, szArgs, charsmax( szArgs ) ) ) return PLUGIN_HANDLED_MAIN; new iAlive = is_user_alive( id ); new CsTeams:iTeam = cs_get_user_team( id ); new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum ); new szName[ 32 "^1*DEAD* ", "^1*DEAD* ", "^1*DEAD* ", "^1*SPEC* " }, { "", "", "", "" } }; new szMessage[ 192 ]; formatex( szMessage, charsmax( szMessage ), "^4%s ^1%s^3%s^1 :%s %s", Prefix, szPrefixes[ iAlive ][ iTeam ], szName, get_user_flags(id) & ADM } copy(Prefix, charsmax(Prefix), g_szTags[g_iPlayerTag[id]])
if( !is_user_connected( id ) ) return PLUGIN_HANDLED_MAIN; new szArgs[ 194 ]; if( !IsValidMessage( id, true, szArgs, charsmax( szArgs ) ) ) return PLUGIN_HANDLED_MAIN; new iAlive = is_user_alive( id ); new CsTeams:iTeam = CsTeams:( ( _:cs_get_user_team( id ) ) % 3 ); new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum ); new szName[ 32 ]; get_user_name( id, szName, charsmax( szName ) ); }, { "(Spectator)", "(Terrorist)", "(Counter-Terrorist)", "" essage );
if( !szMessage[ 0 ] ) return false; new iPos, cChar, i; while( ( cChar = szMessage[ iPos ] ) == '@' ) { i++; iPos++; }
if( i > 0 ) return ( !( bTeamSay ? ( i == 1 ) : ( 1 <= i <= 3 ) ) || !access( id, g_iAdminChatFlag ) );
while( 0 < ( cChar = szMessage[ iPos++ ] ) <= 255 ) if( cChar ath)); add(szFilePath, charsmax(szFilePath), "/Admintags.ini"); new f = fopen(szFilePath, "rt"); if( !f ) { new szMessage[128]; formatex(szMessage, charsmax(szMessage), "Unable to open %s", szFilePath); set_fail_state(szMessage); } new data[32], iTagCount; } fclose(f) }
|