Raised This Month: $ Target: $400
 0% 

HELP ME - Tags Admins, MOD (...)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 05-27-2013 , 02:48   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #7

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_messageget_user_msgid"SayText" ), "Message_SayText" )
}

public 
ClientCommand_Sayid )
{
    for( new 
0MAXTAGSi++ )
    {
        if( 
get_user_flagsid ) & g_iAdminFlags[i] )
        {
            static 
szName[32]
            
get_user_nameidszNamecharsmaxszName ) )
            
formatexg_szFormattedcharsmaxg_szFormatted ), "^1%s ^3%s"g_szTagNames[i], szName )
            return
        }
    }
    
    
g_szFormatted[0] = 0
}

public 
Message_SayTextiMsgIdiMsgDestid )
{
    static 
szString1[19]
    
get_msg_arg_string2szString118 )
    if( 
equalszString1"#Cstrike_Chat_"14 ) && g_szFormatted[0] )
    {
        
// #Cstrike_Chat_All
        
if( szString1[14] == 'A' && !szString1[17] )
            
set_msg_arg_string2"%s1 ^1:  %s2" // Fix the color
        
        
set_msg_arg_string3g_szFormatted )
    }

__________________
youtube:
@holla16
11922911 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 16:17.


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