Raised This Month: $ Target: $400
 0% 

Green chat color blocks ALIVE/DEAD Chat?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 07-07-2014 , 09:06   Green chat color blocks ALIVE/DEAD Chat?
Reply With Quote #1

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_connectedid ) )
        return 
PLUGIN_HANDLED_MAIN;
    
    new 
szArgs194 ];
    
    if( !
IsValidMessageidfalseszArgscharsmaxszArgs ) ) )
        return 
PLUGIN_HANDLED_MAIN;
        
   
    new 
iAlive is_user_aliveid );
    new 
CsTeams:iTeam cs_get_user_teamid );
    
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum );
    
    new 
szName32
            
"^1*DEAD* ",
            
"^1*DEAD* ",
            
"^1*DEAD* ",
            
"^1*SPEC* "
        
},
        {
            
"",
            
"",
            
"",
            
""
        
}
    };
    
    new 
szMessage192 ];
    
formatexszMessagecharsmaxszMessage ), "^4%s ^1%s^3%s^1 :%s  %s"PrefixszPrefixesiAlive ][ iTeam ], szNameget_user_flags(id) & ADM
        
}
    
        
copy(Prefixcharsmax(Prefix), g_szTags[g_iPlayerTag[id]])

    if( !
is_user_connectedid ) )
        return 
PLUGIN_HANDLED_MAIN;
    
    new 
szArgs194 ];
    
    if( !
IsValidMessageidtrueszArgscharsmaxszArgs ) ) )
        return 
PLUGIN_HANDLED_MAIN;
    
    new 
iAlive is_user_aliveid );
    new 
CsTeams:iTeam CsTeams:( ( _:cs_get_user_teamid ) ) % );
    
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum );
    
    new 
szName32 ];
    
get_user_nameidszNamecharsmaxszName ) );
    
        },
        {
            
"(Spectator)",
            
"(Terrorist)",
            
"(Counter-Terrorist)",
            
""
essage );

    if( !
szMessage] )
        return 
false;
    
    new 
iPoscChari;
    while( ( 
cChar szMessageiPos ] ) == '@' )
    {
        
i++;
        
iPos++;
    }

    if( 
)
        return ( !( 
bTeamSay ? ( == ) : ( <= <= ) ) || !accessidg_iAdminChatFlag ) );


    while( 
< ( cChar szMessageiPos++ ] ) <= 255 )
        if( 
cChar ath));
    
add(szFilePathcharsmax(szFilePath), "/Admintags.ini");
    
    new 
fopen(szFilePath"rt");
    
    if( !
)
    {
        new 
szMessage[128];
        
formatex(szMessagecharsmax(szMessage), "Unable to open %s"szFilePath);
        
set_fail_state(szMessage);
    }
    
    new 
data[32], iTagCount;
    
        
        
    }
    
fclose(f)


Last edited by proffs; 07-07-2014 at 16:43.
proffs is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode