Plugin Info:
|
Modification: Counter-Strike
Category: General Purpose
|
Veteran Member
Join Date: Feb 2007
Location: Tennessee
|
08-24-2007
, 19:39
Colored Admin Chat
|
#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
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw
I love you exolent!
|
Last edited by Exolent[jNr]; 09-08-2007 at 16:03.
Reason: v4.0
|
|
|
|