AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HELP ME - Tags Admins, MOD (...) (https://forums.alliedmods.net/showthread.php?t=216882)

Toy0t1k 05-26-2013 17:50

HELP ME - Tags Admins, MOD (...)
 
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

Blizzard_87 05-26-2013 18:19

Re: HELP ME - Tags Admins, MOD (...)
 
what flags you want set for each of these tags?

Toy0t1k 05-26-2013 18:24

Re: HELP ME - Tags Admins, MOD (...)
 
These are flags that i want:

HEADADMINFLAG - ADMIN_IMMUNITY
ADMINFLAG - ADMIN_BAN
SUPERMODFLAG - ADMIN_KICK
MODFLAG - ADMIN_CHAT
VIPFLAG - ADMIN_RESERVATION

Blizzard_87 05-26-2013 22:50

Re: HELP ME - Tags Admins, MOD (...)
 
1 Attachment(s)
try this out.

11922911 05-27-2013 02:48

Re: HELP ME - Tags Admins, MOD (...)
 
Maybe you can try this. (maybe not stable:mrgreen:, 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 )
    }



Toy0t1k 05-27-2013 14:05

Re: HELP ME - Tags Admins, MOD (...)
 
Quote:

Originally Posted by Blizzard_87 (Post 1959082)
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!

Blizzard_87 05-27-2013 17:24

Re: HELP ME - Tags Admins, MOD (...)
 
Quote:

Originally Posted by Toy0t1k (Post 1959502)
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?

Toy0t1k 05-27-2013 17:29

Re: HELP ME - Tags Admins, MOD (...)
 
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


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

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