Code:
/*
* This Plugin changes the chat color of a commander
* you can set the comms color with the define "comm_color" (default is green)
*
* Credits:
* -> mayhem - some rip of his colorAdminChat
*
* Author:
* -> White Panther
*
* v1.0c:
* - initial release
* - some code improvements (thx mayhem)
*
* v1.1:
* - changes:
* - moved from pev/set_pev to entity_get/entity_set (no fakemeta)
*
* v1.2:
* - added:
* - when comm uses chat there is now a sound (can be turned of via define)
* - changed:
* - minor code improvement
*
* v1.3:
* - fixed:
* - message was displayed when containing only spaces or tabs
* - added:
* - define to either play a sound when ever comm uses chat or only if message starts with a !
* - changed:
* - code improvements
*
* v1.3.2:
* - fixed:
* - messages are now logged ( thanks Gimp )
* - minor code tweaks
*
* v1.3.3:
* - fixed:
* - runtime error due to variable exchange (thx John2be)
*
* v1.3.3d:
* - fixed:
* - little error with logging ( thx BIGPhil )
*
* v1.3.4:
* - changed:
* - minor code tweak
*
* v1.3.4b:
* - fixed:
* - message was replaced with playername ( thx AiRbOrN )
*
* v1.3.4c:
* - fixed:
* - bug with compiling option "PLAY_SOUND"
*
* v1.3.5:
* - changed:
* - NS 3.2 adjustment
*/
#include <amxmodx>
#include <engine>
#include <ns>
eg:
normally each marine has a blue chat name with white text
this changes it for comm to green chat name with white text
only teammates will see the new color
Comm Chatcolor (download here)
__________________