Raised This Month: $ Target: $400
 0% 

Colored Admin Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-24-2007 , 19:39   Colored Admin Chat
Reply With Quote #1

Colored Admin Chat
by Exolent



Features:
  • Colored chat in say and say_team for all admins
    -ADMIN_LEVEL_A for green name with yellow chat
    -ADMIN_LEVEL_B for red
    -ADMIN_LEVEL_C for blue
    -ADMIN_LEVEL_D for silver
  • Admins with admin level ADMIN_KICK can see dead all dead chat, all alive chat, and all say_team messages.
  • Admins with admin level ADMIN_IMMUNITY can hear any dead voices, any alive voices, and any team voices.
  • **NOTE!** The closest admin level to green name with yellow chat will be used over an others.
    - eg. you have the red and blue chat flags. red will be used instead
Examples:
  • Green Name with yellow chat
    Name : Text
    --
    Red
  • Name : Text
    --
    Blue
  • Name : Text
    --
    Gray
  • Name : Text
Cvars:
  • amx_cac_enabled <0|1>
    (Default: 1; determines if colored admin chat should be used. (1 for on, 0 for off))
    -
  • amx_adminlisten_chat <0|1>
    (Default: 1; determines if admins can see any chat ever displayed. (1 for on, 0 for off))
    -
  • amx_adminlisten_voice <0|1>
    (Default: 1; defermines if admins can hear any voices. (1 for on, 0 for off))
Don't Like The Default Admin Levels?
  • Open the .sma (source)
  • To change the admin levels, edit the following lines to the admin levels you prefer:
    -ADMIN_NORMAL
    -ADMIN_RED
    -ADMIN_BLUE
    -ADMIN_SILVER
    -LISTEN_CHAT
    -LISTEN_VOICE
  • Save
  • Recompile on the online compiler or recompile locally
Changelog:
  • Version 1.0
    - Initial release
  • Version 1.1
    - Added admin level for green chat
    - Merged 4 format() functions into one
  • Version 2.0
    - Simple code cleanup
    - Merged Adminlisten using the fakemeta module
    --- Adminlisten link: http://forums.alliedmods.net/showthread.php?p=107768
  • Version 3.0
    - Multiplied color possibilities
    - Rearranged messages
    - Fixed a few bugs
    - Renamed plugin
  • Version 3.1
    - Cleanup code
    - Fixed cvar chat issue
  • Verison 3.2
    - Made only 1 check for @ | @@ | @@@ say commands
    - Made voice follow sv_alltalk when not using voice listening
    - Added cvar to turn on/off plugin
    - Removed green name with green chat
    - Optimized has_color_chat() and get_color_chat() when using get_user_flags()
    - Removed SPEAK_MUTED for its uselessness
  • Verison 4.0]
    - Rewrote plugin
    - Fixed a few bugs
Credits:
  • Arion
    - for the first format() fix
  • Battousai-sama
    - for the admin level idea for green chat
  • team06
    - for creating set_speak & get_speak functions to make this fakemeta voice portion possible
  • _Master_
    - for encouraging me to optimize the "@ | @@ | @@@" portion of "valid_message()"
  • All bug reporters
    - for helping me fix any issues that appeared.
Current Version: 4.0
Attached Files
File Type: sma Get Plugin or Get Source (colored-admin-chat.sma - 3895 views - 8.6 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 09-08-2007 at 16:03. Reason: v4.0
Exolent[jNr] is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-24-2007 , 19:40   Re: Green Admin Chat
Reply With Quote #2

Why did you repost this when Hawk552 unapproved it?
X-Script is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-24-2007 , 19:42   Re: Green Admin Chat
Reply With Quote #3

i dont even know where the thread went O.o
i tried finding it and i couldnt.
i thought it was trashed and not unapproved.
ill go check it out...
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-24-2007 , 19:43   Re: Green Admin Chat
Reply With Quote #4

EDIT: Indeed, this was updated but you should PM a plugin approver.

Last edited by X-Script; 08-24-2007 at 19:49.
X-Script is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-24-2007 , 19:49   Re: Green Admin Chat
Reply With Quote #5

this is unique.
it gives admins the fun opportunity of green chat instead of yellow.
it also supports a fakemeta version of adminlisten.
i dont see any other plugin do this.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
-GSE-||Obsession^
Junior Member
Join Date: Oct 2006
Location: Monnickendam
Old 08-27-2007 , 11:31   Re: Green Admin Chat
Reply With Quote #6

Quote:
Originally Posted by X-olent View Post
this is unique.
it gives admins the fun opportunity of green chat instead of yellow.
it also supports a fakemeta version of adminlisten.
i dont see any other plugin do this.
I know more than one plugin which lets admins write green. This one for instance:
http://forums.alliedmods.net/showthread.php?p=127273

Which lets you even decide if you would like to add some text infront and after your name.
Furter it has the oppurtunity to toggle between standard chat ( via say & say_team) and for green chat (amx_say). Allso very configurable with team coulours and own tekst options etc.!

But your idea was allso good I think, too bad it has been made already.

Last edited by -GSE-||Obsession^; 08-27-2007 at 11:34.
-GSE-||Obsession^ is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-24-2007 , 19:46   Re: Green Admin Chat
Reply With Quote #7

Is this not completely different than the first one? with admin_listen?

A smiley face after a smart ass remark, makes it all better eh. right
__________________
bmann_420 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-24-2007 , 19:50   Re: Green Admin Chat
Reply With Quote #8

I know there is a plugin that does this, i can't remember which but I used it once.
X-Script is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-24-2007 , 20:37   Re: Green Admin Chat
Reply With Quote #9

I know their is not a fully functional plugin that does all of this in one and is currently supported.

(also in features, you forgot the word "see") lol
__________________

Last edited by bmann_420; 08-24-2007 at 20:41.
bmann_420 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-25-2007 , 00:41   Re: Green Admin Chat
Reply With Quote #10

fixed >.<
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 11:36.


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