Raised This Month: $ Target: $400
 0% 

Admin Chat Colors [v2.0 - 12/10/2007]


Post New Thread Reply   
 
Thread Tools Display Modes
NeM
New Member
Join Date: Jul 2011
Old 07-09-2012 , 15:01   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #191

How can i make it work only for Head Admins?
NeM is offline
EnTeR
Junior Member
Join Date: Aug 2012
Old 08-17-2012 , 08:53   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #192

Can someone edit this plugin
it means only persons who have in users.ini flag "t" have this green text
EnTeR is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 08-17-2012 , 10:36   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #193

Change
PHP Code:
#define ACCESS_LEVEL    ADMIN_CHAT 
to
PHP Code:
#define ACCESS_LEVEL    ADMIN_LEVEL_H 

Last edited by gogicaa; 08-17-2012 at 10:36.
gogicaa is offline
EnTeR
Junior Member
Join Date: Aug 2012
Old 08-17-2012 , 10:43   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #194

i'm do this but didn work

i would like to be on flag "a" immunity

what i need to do?
EnTeR is offline
Diva
Member
Join Date: Aug 2012
Location: Denmark
Old 11-14-2012 , 10:05   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #195

So i installed this plugin on my servers.
and i noticed, that it doesnt matter if you have b or c or whatever flag you have
but what if you only want to give this to Admins with flag "a" (Immunity)
or if you have VIPs installed on your servers with ADMIN_LEVEL_H defined flag "t"
so to the people who dont know how to change that, do this:

find line: and delete it.
PHP Code:
#define ACCESS_LEVEL    ADMIN_CHAT 
then find these lines: and change "ACCESS_LEVEL" to "ADMIN_IMMUNITY" for players with immunity/Admins or ADMIN_LEVEL_H for people with flags "t"
PHP Code:
register_clcmd ("amx_color""set_color"ACCESS_LEVEL"<color>")
    
register_clcmd ("amx_namecolor""set_name_color"ACCESS_LEVEL"<color>")
    
register_clcmd ("amx_listen""set_listen"ACCESS_LEVEL"<1 | 0>"
PHP Code:
public hook_say(id)
{
    
read_args (message191)
    
remove_quotes (message)
    
    if (
message[0] == '@' || message[0] == '/' || message[0] == '!' || equal (message"")) // Ignores Admin Hud Messages, Admin Slash commands, 
                                                   // Gungame commands and empty messages
        
return PLUGIN_CONTINUE

        
    
new name[32]
    
get_user_name (idname31)
    
    new 
bool:admin false
    
    
if (get_user_flags(id) & ACCESS_LEVEL)
        
admin true 
PHP Code:
public hook_teamsay(id)
{
    new 
playerTeam get_user_team(id)
    new 
playerTeamName[19]
    
    switch (
playerTeam// Team names which appear on team-only messages
        
{
            case 
1:
                
copy (playerTeamName11"Terrorists")
                
            case 
2:
                
copy (playerTeamName18"Counter-Terrorists")
                
            default:
                
copy (playerTeamName9"Spectator")
        }
        
    
read_args (message191)
    
remove_quotes (message)
    
    if (
message[0] == '@' || message[0] == '/' || message[0] == '!' || equal (message"")) // Ignores Admin Hud Messages, Admin Slash commands, 
                                                   // Gungame commands and empty messages
        
return PLUGIN_CONTINUE

        
    
new name[32]
    
get_user_name (idname31)
    
    new 
bool:admin false
    
    
if (get_user_flags(id) & ACCESS_LEVEL)
        
admin true 

Or you can choose whatever defined level you want, so that you can customize it for special admins on your server or for lets say normal VIPs which normally is H, (t flag)
or other levels if you have admins with other flags and you dont want it to be for vips =)

m - User defined Level A (for other plugins)
n - User defined Level B
o - User defined Level C
p - User defined Level D
q - User defined Level E
r - User defined Level F
s - User defined Level G
t - User defined Level H

Then save, and compile, and put amxx in your plugins =)
Diva is offline
SquaLL
New Member
Join Date: Dec 2012
Location: Sweden
Old 12-17-2012 , 11:03   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #196

Wery nice plugin.. L0VE IT!!.
SquaLL is offline
junead101
Junior Member
Join Date: Nov 2012
Old 02-09-2013 , 12:06   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #197

Can you please help me...
This is admin color chat it woks fine but I need to change color of admin chat....
Like If admin is chatting in personal with another admin using ["u" then @] the message appear in yellow but I want this message in blue.....
junead101 is offline
Send a message via Skype™ to junead101
TonySDK
New Member
Join Date: Nov 2013
Old 11-21-2013 , 15:55   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #198

Ótimo Plugin ! Best Plugin !
Estarei personalizando ao meu gosto.
@OFF
Você é de Maringá - PR?
TonySDK is offline
Send a message via MSN to TonySDK
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-25-2013 , 04:29   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #199

Sorry to revive but someone know how to fix the twice message?
wicho is offline
memes14
New Member
Join Date: Dec 2013
Location: venezuela
Old 01-07-2014 , 21:55   Re: Admin Chat Colors [v2.0 - 12/10/2007]
Reply With Quote #200

WoW so cool man
memes14 is offline
Send a message via Skype™ to memes14
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 04:06.


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