View Single Post
Author Message
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 10-25-2012 , 19:03   [Source 2009] Custom Chat Colors Menu (v2.2 - 1/27/14)
Reply With Quote #1

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


My Plugins
Attached Files
File Type: cfg custom-chatcolors-menu.cfg (10.9 KB, 4563 views)
File Type: sp Get Plugin or Get Source (custom-chatcolors-menu.sp - 2356 views - 30.5 KB)
File Type: smx custom-chatcolors-menu.smx (18.8 KB, 3876 views)
File Type: txt custom-chatcolors-menu.phrases.txt (984 Bytes, 4103 views)

Last edited by ReFlexPoison; 01-28-2014 at 01:16. Reason: 2.2
ReFlexPoison is offline