Custom Chat Colors Menu
Dependencies:
Description:Players are granted the ability to change their tag, name and chat colors through simple figured menus. Custom player settings are saved through MySQL or SQLite databases. To compile locally you will need Simple Chat Processor and Custom Chat Colors. To change admin command access, use admin_overrides.cfg (See Overrides section below). The original custom-chatcolors.cfg will not be changed, however player's colors will be overridden by any values loaded from the MySQL or SQLite database(s).
Control Variables:- sm_cccm_enabled (default: 7) Enable/Disable the plugin (Add up the numbers to choose) 0 = Disabled 1 = Tag 2 = Name 4 = Chat
- sm_cccm_hidetags (default: 1) Enable/Disable hiding of chat tags 0 = Disabled 1 = Enabled
Commands:Command access configurable through admin overrides
- sm_ccc (Generic Admin) - Open Chat Colors Menu
- sm_reload_cccm (Root Admin) - Reloads Custom Chat Colors Menu config
- sm_tagcolor (Root Admin) - Change tag color to a specified hexadecimal value
- sm_resettag (Generic Admin) - Reset tag color to default
- sm_namecolor (Root Admin) - Change name color to a specified hexadecimal value
- sm_resetname (Generic Admin) - Reset name color to default
- sm_chatcolor (Root Admin) - Change chat color to a specified hexadecimal value
- sm_resetchat (Generic Admin) - Reset chat color to default[/INDENT]
Command Overrides:- sm_ccc_tag (Generic Admin) - Admin flag to change tag colors
- sm_ccc_name (Generic Admin) - Admin flag to change name colors
- sm_ccc_chat (Generic Admin) - Admin flag to change chat colors
- sm_ccc_hidetags (Generic Admin) - Required flag to hide chat tags
Configurations:
Code:
"CCC Menu Colors"
{
"1" // Color Index
{
"name" "Red" // Color name
"hex" "#FF0000" // Color hexadecimal value
"flags" "abo" // Required admin flags for access (Leave blank if none)
}
...
}
Databases:
Code:
"cccm"
{
"driver" "mysql"
"host" "localhost"
"database" "cccm"
"user" "username"
"pass" "password"
}
Installation:
1) Add the files included in this post to their folders relative to sourcemod/addons
- custom-chatcolors-menu.smx to plugins
- custom-chatcolors-menu.phrases.txt to translations
- custom-chatcolors-menu.cfg to configs
2) Add your saved variables database configuration into databases.cfg. See
Databases above.
Version Log:
Spoiler
Version 2.2 - 1/27/14
- Fixed SQLite not properly setting up tables
- Fixed issue where saved chat colors would be switched
Version 2.1 - 1/15/14
- Added commands to change your tag, name, and chat colors to a specified hexadecimal value
- Fixed saving all connect client's steamids into databases
- Changed how colors are loaded into the system of menus (Enhances stability and performance of plugin)
- Changed the format of which players are notified of there colors being changed
- Fixed issues where all colors would reset if one color type was reset
Version 2.0 - 9/20/13
- Complete plugin overhaul
- Changed/fixed translations
- Added MySQL support
- Added overrides to set access for specific chat color changing
- Removed setting chat colors through chat
- Added colors to chat notifications
Version 1.6
- Fixed issue where colors were reset on map change
- Added hide tag to main page if hiding tag is enabled and coloring your tag is disabled
Version 1.5
- Should now always load cookies
- Added CVar to enabled/disable the ability to hide tags
Version 1.4
- Now allows you to designate specific admin flags for colors in the config
Version 1.3
- Added new color config so you can choose to either use a designated colors menu or chat to decide chat colors
- Added choice to hide your tag in the tag menu
- Changed panels to menus
Version 1.2
- Uses strcopy to change color strings
- Changed the way cookies and colors are loaded on client connect
- Added database CVars and auto config
Version 1.1
- Added support for new Custom Chat Colors natives
- Fixed many bugs with chat colors
- Changed script file name
- Removed plugin config file
Version 1.0.1
- Should now be compatible with CS:S
Version 1.0
My Plugins