Raised This Month: $12 Target: $400
 3% 

[Source 2009] Custom Chat Colors Menu (v2.2 - 1/27/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Plugin ID:
3322
Plugin Version:
2.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
403 
Plugin Description:
Change Custom Chat Colors settings through easy to access menus
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, 4544 views)
File Type: sp Get Plugin or Get Source (custom-chatcolors-menu.sp - 2344 views - 30.5 KB)
File Type: smx custom-chatcolors-menu.smx (18.8 KB, 3866 views)
File Type: txt custom-chatcolors-menu.phrases.txt (984 Bytes, 4082 views)

Last edited by ReFlexPoison; 01-28-2014 at 01:16. Reason: 2.2
ReFlexPoison is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 10-25-2012 , 19:05   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #2

I've added the configuration file in the main post that offers all the colors found in morecolors.inc

Last edited by ReFlexPoison; 09-21-2013 at 01:25.
ReFlexPoison is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-25-2012 , 19:10   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #3

interesting - any way to add a way to block or restrict certain colors from being used?
Horsedick is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 10-25-2012 , 19:14   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #4

Quote:
Originally Posted by Horsedick View Post
interesting - any way to add a way to block or restrict certain colors from being used?
I'll do that sooner or later. I'm waiting for McKay to add some more natives to Custom Chat Colors as atm, changing a player's tag consists of Format after Format after Format.
ReFlexPoison is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 10-25-2012 , 19:30   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #5

This requires McKay's chat colors plugin correct?
__________________
serpentine is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 10-25-2012 , 19:37   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #6

Quote:
Originally Posted by serpentine View Post
This requires McKay's chat colors plugin correct?
Correct, I'll add a list of dependencies.

Last edited by ReFlexPoison; 10-25-2012 at 19:37.
ReFlexPoison is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-25-2012 , 20:54   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #7

Quote:
Originally Posted by ReFlexPoison View Post
I'll do that sooner or later. I'm waiting for McKay to add some more natives to Custom Chat Colors as atm, changing a player's tag consists of Format after Format after Format.
Yeah it may be something I could use in the future but right now without some way of doing restrictions on certain colors ie: not use Admin colors with VIP's having access - then I can't use it.
Horsedick is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-26-2012 , 02:04   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #8

This is useful. I like it.

Does it use client prefs? Is it added to the !settings menu of SM? Can you add a list of preset colors so they dont have to always use hexadecimal to make it more user friendly?
__________________

DontWannaName is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 10-26-2012 , 11:54   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #9

Quote:
Originally Posted by DontWannaName View Post
This is useful. I like it.

Does it use client prefs? Is it added to the !settings menu of SM? Can you add a list of preset colors so they dont have to always use hexadecimal to make it more user friendly?
I'll add another version with a simple color menu with specific hex values and yes it uses clientprefs.
ReFlexPoison is offline
artimedas
Member
Join Date: Aug 2012
Location: Lithuania
Old 10-27-2012 , 03:12   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #10

[SM] Native "GetEntProp" reported: Property "m_bIsCoaching" not found (entity 1/player)
[SM] Displaying call stack trace for plugin "cccm.smx":
[SM] [0] Line 439, C:\Users\Dillon\Desktop\Scripting\cccm.sp::Is ValidClient()
L 10/27/2012 - 10:092: [SM] [1] Line 74, C:\Users\Dillon\Desktop\Scripting\cccm.sp::On ClientPostAdminCheck()

not work in css
artimedas is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode