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

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
KoltaiArmy
AlliedModders Donor
Join Date: Feb 2015
Location: Hungary
Old 09-09-2018 , 09:35   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1361

Quote:
Originally Posted by Dragonisser View Post
Groups with flags work but steamids dont work at all. No color, no tag.

Anyone has a similar problem?
Same here.

edit: ok, problem solved.
__________________

Last edited by KoltaiArmy; 09-09-2018 at 11:23.
KoltaiArmy is offline
Fizzy Momo
New Member
Join Date: Sep 2018
Old 09-25-2018 , 16:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1362

Ok so like, do steam tags just not work past a certain point?

Code:
//		Custom Chat Colors is written by Dr. McKay (http://www.doctormckay.com)
//		Simple Chat Colors (Redux) is written by Antithasys
//		The configuration is very similar, so I've stolen Redux's documentation :P
//		
//		How to edit this file:
//		"admin_colors"										<--	Leave this alone
//		{																<--	Add all groups/steamids after first bracket (Leave this alone)
//																			
//			"STEAM_0:1:1234567"						<--	Here is a steamid example with a tag (don't duplicate steamids)
//			{
//				"namecolor"		"#RRGGBB"						<--	This is the color for the name (#RRGGBB in hex notation or #RRGGBBAA with alpha)
//				"textcolor"		"#RRGGBBAA"						<--	This is the color of the text
//			}
//
//			"groupname"											<--	This can either be a steamid for a specific player, or a group name
//			{															<--	Open the group
//				"flag"				"z"							<--	This is the flag(s) assoicated with the group.  This field doesn't matter if the group name is a steamid
//				"tag"				"[admin]"					<--	This is the text for the tag
//				"tagcolor"		"O"						<--	This is the color for the tag
//				"namecolor"		"G"						<--	This is the color for the name
//				"textcolor"		"T"						<--	This is the color of the text
//			}															<--	Close the group
//		}																<--	Add all groups/steamids before last bracket (Leave this alone)
//
//		NOTE:
//		If you don't enter a steamid then the group name does not matter, it's just for your reference.
//
//		For colors, either a hex notation of a color (#RRGGBB or #RRGGBBAA) or one of the supported shortcuts (O - Olive, G - Green, T - Team) is required
//
//		--------ORDER OF OPERATIONS--------
//		
//		The order in which you place items in the config file matters.  Here is what determins what color they get:
//		1. SteamID
//			If there is a steamid present, it will always override everything.  If you put a steamid in twice
//			then the first entry (top to bottom) will be used. (I think, just don't do it!)
//		2. Groups
//			The plugin will search (top to bottom) for a postitive match for the flag string.  The player' flags
//			will be compared with the group flag character (NOTE: only one flag per group! "a" is okay, "ab" is NOT),
//			and if the player has the flag, it will stop there.
//			For example. Admins with the "ad" flags and donators with the "a" flag.  If you place the "a" flag group
//			above the "d" group then the admin will get the "a" colors. Order matters.
//
//		---------DO NOT EDIT ABOVE THIS LINE---------
"admin_colors"
{
	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Owner]  "
		"tagcolor"			"#EC89FF"
	}

	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Owner]  "
		"tagcolor"			"#EC89FF"
	}

	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Admin]  "
		"tagcolor"			"#70cc9c"
	}
	
	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Admin]  "
		"tagcolor"			"#70cc9c"
	}

	"STEAM_x:x:xxxxxxxx"
	{
		"tag				"[Admin]  "
		"tagcolor"			"#70cc9c"
	}
	
	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Nasty]  "
		"tagcolor"			"#ce2e29"
	}
	
	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Hell]  "
		"tagcolor"			"#FDE900"
	}

	STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Nyoom]  "
		"tagcolor"			"#9ffeb0"
	}
	
	"STEAM_x:x:xxxxxxxx"
	{
		"tag"				"[Nasty]  "
		"tagcolor"			"#ce2e29"
	}
}

Last edited by Fizzy Momo; 09-25-2018 at 17:38.
Fizzy Momo is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 09-25-2018 , 20:37   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1363

Fizzy Momo, you're missing a quotation mark on the Steam id at the end
JoinedSenses is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-25-2018 , 20:49   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1364

Quote:
Originally Posted by JoinedSenses View Post
Fizzy Momo, you're missing a quotation mark on the Steam id at the end
Click image for larger version

Name:	screenie.PNG
Views:	523
Size:	7.7 KB
ID:	171566
__________________
ddhoward is offline
Fizzy Momo
New Member
Join Date: Sep 2018
Old 09-25-2018 , 21:15   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1365

Quote:
Originally Posted by JoinedSenses View Post
Fizzy Momo, you're missing a quotation mark on the Steam id at the end
The problem is, most of them in that list don't work. Only the [Owner] and [Admin] tags work. Do I need to put non admin or owner tags in their own sections? Also, [Admin] tags suddenly just lost their hexcoloring despite it working like, 2 hours ago.
Fizzy Momo is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-25-2018 , 21:31   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1366

Quote:
Originally Posted by Fizzy Momo View Post
The problem is, most of them in that list don't work. Only the [Owner] and [Admin] tags work. Do I need to put non admin or owner tags in their own sections? Also, [Admin] tags suddenly just lost their hexcoloring despite it working like, 2 hours ago.
Did you fix the problem that we pointed out?
__________________
ddhoward is offline
turkcodec
Member
Join Date: Nov 2010
Old 09-26-2018 , 12:43   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1367

CS GO version of plugin still work? It was working but with the dev build of sourcemod and metamod stops working? There is no any error but it is not working.
turkcodec is offline
Fizzy Momo
New Member
Join Date: Sep 2018
Old 09-26-2018 , 17:47   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1368

Quote:
Originally Posted by ddhoward View Post
Did you fix the problem that we pointed out?
Yeah, took like 2 seconds, but most of the tags just don't work still
Fizzy Momo is offline
Allen DN
New Member
Join Date: Dec 2018
Old 12-20-2018 , 18:50   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1369

Does anyone know how to fix this that comes out on my tf2 server?

L 12/20/2018 - 20:07:02: [SM] Exception reported: Fatal error creating dynamic native!
L 12/20/2018 - 20:07:02: [SM] Blaming: custom-chatcolors.smx
L 12/20/2018 - 20:07:02: [SM] Call stack trace:
L 12/20/2018 - 20:07:02: [SM] [0] CreateNative
L 12/20/2018 - 20:07:02: [SM] [1] Line 55, D:\Libraries\Documents\Repos\Public Plugins\scripting\custom-chatcolors.sp::AskPluginLoad2
L 12/20/2018 - 20:07:02: [SM] Failed to load plugin "custom-chatcolors.smx": unexpected error 23 in AskPluginLoad callback.
Allen DN is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 02-08-2019 , 18:43   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1370

Hey, made a plugin which allows to change there tags on the fly, users that don't have access to /admin will not be able to change there tags to anything related to "Owner, Admin or Moderator"

The tags automatically get wrapped in brackets, I may update it to the prefix style can be changed.

sm_tag <tag> (Does not allow spaces)
sm_resettag

The tags get saved using client preferences, resetting the tag to the default players value, also removes the color.
Attached Files
File Type: sp Get Plugin or Get Source (ccc_settag.sp - 266 views - 3.8 KB)
File Type: smx ccc_settag.smx (11.9 KB, 288 views)

Last edited by cigzag; 02-08-2019 at 18:53. Reason: Removed server label from source
cigzag 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 13:48.


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