Raised This Month: $ Target: $400
 0% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Nikkii
Member
Join Date: Feb 2012
Old 06-26-2013 , 08:52   Re: [Source 2009] Custom Chat Colors
Reply With Quote #491

Quote:
Originally Posted by matchaboy View Post
Thanks, great plugin, however can I know all the colours available, as well as the codes for it.
In the config file there's more information on colors and usage, however this line gives you all the information you need:

PHP Code:
For colorseither a hex notation of a color (#RRGGBB or #RRGGBBAA) or one of the supported shortcuts (O - Olive, G - Green, T - Team) is required 
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper
Nikkii is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-26-2013 , 10:10   [Source 2009] Custom Chat Colors
Reply With Quote #492

Quote:
Originally Posted by matchaboy View Post
Thanks, great plugin, however can I know all the colours available, as well as the codes for it.
You can get some color codes here.
__________________
Dr. McKay is offline
matchaboy
Senior Member
Join Date: Jun 2013
Location: Bananaland
Old 06-26-2013 , 11:20   Re: [Source 2009] Custom Chat Colors
Reply With Quote #493

Thanks, I found another better link too.

http://www.computerhope.com/htmcolor.htm
matchaboy is offline
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 19:56   Re: [Source 2009] Custom Chat Colors
Reply With Quote #494

I keep getting this error:

Quote:
00:52:08 KeyValues Error: RecursiveLoadFromBuffer: got empty keyname in file addons/sourcemod/configs/custom-chatcolors.cfg
admin_colors,
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/custom-chatcolors.cfg
(*admin_colors*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/custom-chatcolors.cfg
(*admin_colors*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/custom-chatcolors.cfg
(*admin_colors*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/custom-chatcolors.cfg
(*admin_colors*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/custom-chatcolors.cfg
(*admin_colors*),
[SM] Plugin [Source 2009] Custom Chat Colors reloaded successfully.
My config is:

Quote:
// 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
//
// 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_0:1:47653075"
{
"namecolor" ""
"textcolor" ""
"tag" "[King of Lulzalot]"
"tagcolor" "#1A52ED"
}
"STEAM_0:1:41431397"
{
"namecolor" ""
"textcolor" ""
"tag" "[Admin]"
"tagcolor" "#FFAE00"
}
}
"STEAM_0:1:50056995"
{
"namecolor" ""
"textcolor" "#000000"
"tag" "[Man of God]"
"tagcolor" "#FFFFFF"
}
"STEAM_0:1:52428638"
{
"namecolor" ""
"textcolor" "#5AE619"
"tag" "[Admin]"
"tagcolor" "#5AE619"
}
"STEAM_0:1:50911167"
{
"namecolor" ""
"textcolor" "#007FFF"
"tag" "[]"
"tagcolor" "#007FFF"
}
"STEAM_0:1:60248955"
{
"namecolor" ""
"textcolor" "#00FFFF"
"tag" "[Krusty Krab]"
"tagcolor" "#00FFFF"
}
"STEAM_0:0:47066337"
{
"namecolor" ""
"textcolor" "#00FFFF"
"tag" "[VIP]"
"tagcolor" "#31B325"
}
"STEAM_0:0:67878321"
{
"namecolor" ""
"textcolor" "#CC0000"
"tag" "[Head Admin]"
"tagcolor" "#CC0000"
}
}


"STEAM_0:0:10972776" //X
{
"textcolor" ""
"tagcolor" ""
}
"STEAM_0:0:19355147" //B
{
"namecolor" ""
"textcolor" ""
}
"STEAM_0:0:11641193" //R
{
"namecolor" ""
"textcolor" ""
}
"STEAM_0:1:16687443" //M
{
"namecolor" ""
"textcolor" ""
}
"STEAM_0:1:45173791" //F
{
"namecolor" ""
"textcolor" ""
}
"InGame Administrators"
{
"flag" "z"
"tag" "[Head Admin]"
"tagcolor" "#5AE619"
}
"Super Moderators"
{
"flag" "o"
"tag" "[Admin]"
"tagcolor" "#5AE619"
}
"Moderators"
{
"flag" "b"
"tag" "[Mod]"
"tagcolor" "#5AE619"
}
"Donators"
{
"flag" "a"
"tag" "[VIP]"
"tagcolor" "#5AE619"
}
}

}
Onyxian is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-30-2013 , 20:02   Re: [Source 2009] Custom Chat Colors
Reply With Quote #495

After indentation, your config file comes out to this:

Code:
"admin_colors"
{
	{
		"STEAM_0:1:47653075"	
		{
			"namecolor"	""
			"textcolor"	""
			"tag"	 "[King of Lulzalot]"
			"tagcolor"	 "#1A52ED"
		}
		"STEAM_0:1:41431397"	
		{
			"namecolor"	""
			"textcolor"	""
			"tag"	 "[Admin]"
			"tagcolor"	 "#FFAE00"
		}
	}
	"STEAM_0:1:50056995"	
	{
		"namecolor"	""
		"textcolor"	"#000000"
		"tag"	 "[Man of God]"
		"tagcolor"	 "#FFFFFF"
	}
	"STEAM_0:1:52428638"	
	{
		"namecolor"	""
		"textcolor"	"#5AE619"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"STEAM_0:1:50911167"	
	{
		"namecolor"	""
		"textcolor"	"#007FFF"
		"tag"	 "[]"
		"tagcolor"	 "#007FFF"
	}
	"STEAM_0:1:60248955"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[Krusty Krab]"
		"tagcolor"	 "#00FFFF"
	}
	"STEAM_0:0:47066337"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[VIP]"
		"tagcolor"	 "#31B325"
	}
	"STEAM_0:0:67878321"	
	{
		"namecolor"	""
		"textcolor"	"#CC0000"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#CC0000"
	}
}


"STEAM_0:0:10972776"	//X
{
	"textcolor"	""
	"tagcolor"	""
}
"STEAM_0:0:19355147"	//B
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:0:11641193"	//R
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:1:16687443"	//M
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:1:45173791"	//F
{
	"namecolor"	""
	"textcolor"	""
}
"InGame Administrators"
{
	"flag"	 "z"
	"tag"	 "[Head Admin]"
	"tagcolor"	 "#5AE619"
}
"Super Moderators"
{
	"flag"	 "o"
	"tag"	 "[Admin]"
	"tagcolor"	 "#5AE619"
}
"Moderators"
{
	"flag"	 "b"
	"tag"	 "[Mod]"
	"tagcolor"	 "#5AE619"
}
"Donators"
{
	"flag"	 "a"
	"tag"	 "[VIP]"
	"tagcolor"	 "#5AE619"
}
}

}
Hopefully that's enough for you to figure out what you did horribly wrong.
__________________
Dr. McKay is offline
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 20:11   Re: [Source 2009] Custom Chat Colors
Reply With Quote #496

Quote:
Originally Posted by Dr. McKay View Post
After indentation, your config file comes out to this:

Code:
"admin_colors"
{
	{
		"STEAM_0:1:47653075"	
		{
			"namecolor"	""
			"textcolor"	""
			"tag"	 "[King of Lulzalot]"
			"tagcolor"	 "#1A52ED"
		}
		"STEAM_0:1:41431397"	
		{
			"namecolor"	""
			"textcolor"	""
			"tag"	 "[Admin]"
			"tagcolor"	 "#FFAE00"
		}
	}
	"STEAM_0:1:50056995"	
	{
		"namecolor"	""
		"textcolor"	"#000000"
		"tag"	 "[Man of God]"
		"tagcolor"	 "#FFFFFF"
	}
	"STEAM_0:1:52428638"	
	{
		"namecolor"	""
		"textcolor"	"#5AE619"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"STEAM_0:1:50911167"	
	{
		"namecolor"	""
		"textcolor"	"#007FFF"
		"tag"	 "[]"
		"tagcolor"	 "#007FFF"
	}
	"STEAM_0:1:60248955"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[Krusty Krab]"
		"tagcolor"	 "#00FFFF"
	}
	"STEAM_0:0:47066337"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[VIP]"
		"tagcolor"	 "#31B325"
	}
	"STEAM_0:0:67878321"	
	{
		"namecolor"	""
		"textcolor"	"#CC0000"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#CC0000"
	}
}


"STEAM_0:0:10972776"	//X
{
	"textcolor"	""
	"tagcolor"	""
}
"STEAM_0:0:19355147"	//B
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:0:11641193"	//R
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:1:16687443"	//M
{
	"namecolor"	""
	"textcolor"	""
}
"STEAM_0:1:45173791"	//F
{
	"namecolor"	""
	"textcolor"	""
}
"InGame Administrators"
{
	"flag"	 "z"
	"tag"	 "[Head Admin]"
	"tagcolor"	 "#5AE619"
}
"Super Moderators"
{
	"flag"	 "o"
	"tag"	 "[Admin]"
	"tagcolor"	 "#5AE619"
}
"Moderators"
{
	"flag"	 "b"
	"tag"	 "[Mod]"
	"tagcolor"	 "#5AE619"
}
"Donators"
{
	"flag"	 "a"
	"tag"	 "[VIP]"
	"tagcolor"	 "#5AE619"
}
}

}
Hopefully that's enough for you to figure out what you did horribly wrong.
It's great to see such a fast reply, but honestly I've no idea what to fix.
Onyxian is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-30-2013 , 20:16   Re: [Source 2009] Custom Chat Colors
Reply With Quote #497

I also removed the entries that weren't doing anything.

Code:
"admin_colors"
{
	"STEAM_0:1:47653075"	
	{
		"namecolor"	""
		"textcolor"	""
		"tag"	 "[King of Lulzalot]"
		"tagcolor"	 "#1A52ED"
	}
	"STEAM_0:1:41431397"	
	{
		"namecolor"	""
		"textcolor"	""
		"tag"	 "[Admin]"
		"tagcolor"	 "#FFAE00"
	}
	"STEAM_0:1:50056995"	
	{
		"namecolor"	""
		"textcolor"	"#000000"
		"tag"	 "[Man of God]"
		"tagcolor"	 "#FFFFFF"
	}
	"STEAM_0:1:52428638"	
	{
		"namecolor"	""
		"textcolor"	"#5AE619"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"STEAM_0:1:50911167"	
	{
		"namecolor"	""
		"textcolor"	"#007FFF"
		"tag"	 "[]"
		"tagcolor"	 "#007FFF"
	}
	"STEAM_0:1:60248955"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[Krusty Krab]"
		"tagcolor"	 "#00FFFF"
	}
	"STEAM_0:0:47066337"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[VIP]"
		"tagcolor"	 "#31B325"
	}
	"STEAM_0:0:67878321"	
	{
		"namecolor"	""
		"textcolor"	"#CC0000"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#CC0000"
	}
	"InGame Administrators"
	{
		"flag"	 "z"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#5AE619"
	}
	"Super Moderators"
	{
		"flag"	 "o"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"Moderators"
	{
		"flag"	 "b"
		"tag"	 "[Mod]"
		"tagcolor"	 "#5AE619"
	}
	"Donators"
	{
		"flag"	 "a"
		"tag"	 "[VIP]"
		"tagcolor"	 "#5AE619"
	}
}
__________________
Dr. McKay is offline
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 20:17   Re: [Source 2009] Custom Chat Colors
Reply With Quote #498

Quote:
Originally Posted by Dr. McKay View Post
I also removed the entries that weren't doing anything.

Code:
"admin_colors"
{
	"STEAM_0:1:47653075"	
	{
		"namecolor"	""
		"textcolor"	""
		"tag"	 "[King of Lulzalot]"
		"tagcolor"	 "#1A52ED"
	}
	"STEAM_0:1:41431397"	
	{
		"namecolor"	""
		"textcolor"	""
		"tag"	 "[Admin]"
		"tagcolor"	 "#FFAE00"
	}
	"STEAM_0:1:50056995"	
	{
		"namecolor"	""
		"textcolor"	"#000000"
		"tag"	 "[Man of God]"
		"tagcolor"	 "#FFFFFF"
	}
	"STEAM_0:1:52428638"	
	{
		"namecolor"	""
		"textcolor"	"#5AE619"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"STEAM_0:1:50911167"	
	{
		"namecolor"	""
		"textcolor"	"#007FFF"
		"tag"	 "[]"
		"tagcolor"	 "#007FFF"
	}
	"STEAM_0:1:60248955"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[Krusty Krab]"
		"tagcolor"	 "#00FFFF"
	}
	"STEAM_0:0:47066337"	
	{
		"namecolor"	""
		"textcolor"	"#00FFFF"
		"tag"	 "[VIP]"
		"tagcolor"	 "#31B325"
	}
	"STEAM_0:0:67878321"	
	{
		"namecolor"	""
		"textcolor"	"#CC0000"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#CC0000"
	}
	"InGame Administrators"
	{
		"flag"	 "z"
		"tag"	 "[Head Admin]"
		"tagcolor"	 "#5AE619"
	}
	"Super Moderators"
	{
		"flag"	 "o"
		"tag"	 "[Admin]"
		"tagcolor"	 "#5AE619"
	}
	"Moderators"
	{
		"flag"	 "b"
		"tag"	 "[Mod]"
		"tagcolor"	 "#5AE619"
	}
	"Donators"
	{
		"flag"	 "a"
		"tag"	 "[VIP]"
		"tagcolor"	 "#5AE619"
	}
}
Should I just copy and paste that into my config then?
Onyxian is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-30-2013 , 20:18   Re: [Source 2009] Custom Chat Colors
Reply With Quote #499

Quote:
Originally Posted by Onyxian View Post
Should I just copy and paste that into my config then?
Yes.
__________________
Dr. McKay is offline
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 20:21   Re: [Source 2009] Custom Chat Colors
Reply With Quote #500

Quote:
Originally Posted by Dr. McKay View Post
Yes.
You are a damn server saver! It's fixed. Thank you so much!
Onyxian is offline
Reply



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 12:50.


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