Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Toy0t1k
Junior Member
Join Date: May 2013
Old 05-26-2013 , 17:50   HELP ME - Tags Admins, MOD (...)
Reply With Quote #1

i would like to have the plugin of admin chat coler, how GO PUT BEHIND:
All these tags are green:
[HEAD-ADMIN]
[ADMIN]
[SUPERMOD]
[MOD]
[VIP]

then, the nickname depending on the team you are playing:
RED = Terrorist
BLUE = Counter-Terrorist
GREY = Spectator

Those who are head-admin and super mods written green and the remaining written default color.

Please, help me :c
Toy0t1k is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-26-2013 , 18:19   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #2

what flags you want set for each of these tags?
__________________
Blizzard_87 is offline
Toy0t1k
Junior Member
Join Date: May 2013
Old 05-26-2013 , 18:24   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #3

These are flags that i want:

HEADADMINFLAG - ADMIN_IMMUNITY
ADMINFLAG - ADMIN_BAN
SUPERMODFLAG - ADMIN_KICK
MODFLAG - ADMIN_CHAT
VIPFLAG - ADMIN_RESERVATION
Toy0t1k is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-26-2013 , 22:50   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #4

try this out.
Attached Files
File Type: sma Get Plugin or Get Source (admin-tags.sma - 510 views - 2.7 KB)
__________________
Blizzard_87 is offline
Toy0t1k
Junior Member
Join Date: May 2013
Old 05-27-2013 , 14:05   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #5

Quote:
Originally Posted by Blizzard_87 View Post
try this out.
is this plugin but I liked that with this plugin, all conseguisem write for everyone. this means, allchat ..
the plugin is good but just wanted that little detail!
Toy0t1k is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-27-2013 , 17:24   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #6

Quote:
Originally Posted by Toy0t1k View Post
is this plugin but I liked that with this plugin, all conseguisem write for everyone. this means, allchat ..
the plugin is good but just wanted that little detail!
sorry dont understand?
__________________
Blizzard_87 is offline
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
Toy0t1k
Junior Member
Join Date: May 2013
Old 05-27-2013 , 17:29   Re: HELP ME - Tags Admins, MOD (...)
Reply With Quote #8

I wanted to read what the dead alive write and also wanted to read what the living dead write...
I want everyone to read what everyone writes, whether dead or alive
Toy0t1k is offline
Reply



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