Custom Chat Colors Menu
Dependencies:Description: Spoiler 
Select custom chat color settings via menu. No longer must players attempt to change their color configurations via txt file! This plugin bypasses Custom Chat Color's configuration file and lets players change their color settings via menu. Players are asked to designate specific hexadecimal values in chat to determine their tag, name, and chat colors. This saves over a cookie database and should work with sqlite. To compile locally you need
Simple Chat Processor and
Custom Chat Colors include files. Use admin_overrides.cfg to override for admins only. If a player has disabled their colors, it will then look into the config for the default color value, if a color is found, then that one is used, otherwise it uses default in-game values.This will not change the configuration file! If you don't want a player to have access to changing colors, remove their access to the command! See Command Overrides below.
CVar's (Defaults): PHP Code:
// Enable Custom Chat Colors Settings Menu// 0 = Disabled// 1 = Enabled// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_cccm_enabled "1"// Enable custom colors for tags// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_cccm_tag "1"// Enable custom colors for name// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_cccm_name "1"// Enable custom colors for chat// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_cccm_chat "1"
Config file will be automatically created at
cfgsourcemodplugin.cccm.cfgCommands:sm_outline - Opens Custom Chat Color Menu
Command Overrides:"sm_ccc" "" //Required admin flag to use the sm_ccc command and change colors.
Installation:cccm.smx > addonssourcemodpluginscccm.phrases.txt > addonssourcemodtranslations
Version Log: Spoiler Version 1.0.0 - 10/25/12* Initial Release. See my other plugins. Attached Files
Get Plugin or
Get Source (cccm.sp - 13.9 KB)
cccm.smx (8.6 KB)
cccm.phrases.txt (1.2 KB)
Wyświetl pełny artykuł