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

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Bonkorn
Senior Member
Join Date: Jul 2015
Old 11-18-2015 , 11:14   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1161

Please use HTML Code or PHP Code or Code to sort them.

Last edited by Bonkorn; 11-18-2015 at 11:15. Reason: oops
Bonkorn is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-18-2015 , 11:26   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1162

Look at the section named in the error message ("STEAM_0:0:69187085") - you're missing a closing quotation mark after the tag.
__________________
asherkin is offline
SomePanns
Senior Member
Join Date: Dec 2013
Old 11-27-2015 , 17:11   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1163

Hey, I have a really annoying situation where I can't define the same flags in the ccc config without the colors stop working. It's a pain in the ass as I can't let my admins have the reserved slots access, as that would grant them the VIP tag instead. I monitor many servers, and I certainly do not want to manually add ccc configs for specific users on all servers. If you still don't understand what I mean, it works like this: I define trainee admins with the flag c, however, if I would give them the flag k in admin groups config (not ccc config) their trainee tag would stop working. It's possible I do it wrong, but as I have understood it, it's how it should look. I want to know why I can't just use, let us say, "abc" for "rank 1" and then "abcd" for "rank 2" without rank 2 getting the rank 1 title. Get it?

My config:
Code:
"admin_colors"
{
	
	"Server Admins"
	{
		"flag"				"k"
		"tag"				"[A] "
		"tagcolor"			"#f00000"
		"namecolor"			"#d9f7f7"
		"textcolor"			""
	}

	"VIPs"
	{
		"flag"				"a"
		"tag"				"[VIP] "
		"tagcolor"			"#009999"
		"namecolor"			"#000099"
		"textcolor"			"#FFD1B2"
	}
	
	"Trainee Admin" 
	{
		"flag"				"c"
		"tag"				"[T-A] "
		"tagcolor"			"#f00000"
		"namecolor"			"#d9f7f7"
		"textcolor"			""
	}
	
	"STEAM_0:1:76251761"
	{
		"tag"				"*Head Admin* "
		"tagcolor"			"#007cbc"
		"namecolor"			"#d9f7f7"
		"textcolor"			""
	}
	
	"STEAM_0:0:61338796"
	{
		"tag"				"*Owner* "
		"tagcolor"			"#007cbc"
		"namecolor"			"#d9f7f7"
		"textcolor"			""
	}
	
	"STEAM_0:0:61888952"
	{
		"tag"				"*Community Manager* "
		"tagcolor"			"#007cbc"
		"namecolor"			"#d9f7f7"
		"textcolor"			""
	}
}
It's a bit hard to explain, but I did my best.
SomePanns is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-27-2015 , 17:48   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1164

Reverse the order of your ranks in the configuration. Put steam ids first, then the highest ranking admins, etc. Maybe put trainee admin first. Once the plugin finds a match, it stops looking for more matches.
__________________

Last edited by ddhoward; 11-27-2015 at 17:49.
ddhoward is offline
Foskitox
Junior Member
Join Date: Jun 2015
Old 12-11-2015 , 21:07   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1165

I found a "bug" in CS:GO!

The colors are right but if you choose the color "Green" to your TAG in the chat, the green color on TAG only appears if you talk to your team chat (u) :b
It's only the TAG color! :b
Foskitox is offline
Luigi123
Member
Join Date: Nov 2015
Location: Winnipeg, Manitoba, Cana
Old 12-13-2015 , 12:06   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1166

Quote:
Originally Posted by Dr. McKay View Post
[Source 2013] Custom Chat Colors

v3.1.0

Description:
Give particular Steam IDs and admin flags custom chat colors and name tags. Supports any color you can imagine, or team color, green, and olive. This is a rewrite of Simple Chat Colors (Redux). Requires Simple Chat Processor (Redux). Complete documentation is in the config file.

Only works in Source 2013 games, which include:
  • Team Fortress 2
  • Counter-Strike: Source
  • Half-Life 2: Deathmatch
  • Day of Defeat: Source

This also works on CS:GO, but only "T", "G", and "O" codes can be used.

Update: I'm getting reports that colors don't work on CS:GO when alive. This is a shame, but this plugin doesn't officially support CS:GO. Don't expect it to be fixed.


This plugin will never support any CS:GO colors beyond those mentioned above, so stop asking.

Commands:
sm_reloadccc - reloads the config file

Cvars:
custom_chat_colors_version - plugin version
custom_chat_colors_auto_update (default 1) - enables automatic updating (has no effect if Updater is not installed)

Requirements:
Requires the Simple Chat Processor (Redux) plugin.

Developers:
This plugin provides several forwards and natives. See the include file for documentation.

Installation:
Install Simple Chat Processor (Redux), extract chatcolors.zip, upload its contents to your /addons/sourcemod directory, and reboot your server or type "sm plugins load custom-chatcolors" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v3.1.0 (8/30/14)
    • Added support for Steam3 IDs
  • v3.0.0 (7/8/13)
    • Removed deprecated natives
    • Added CCC_OnColor and CCC_OnChatMessage forwards
    • Deprecated CCC_OnTagApplied, CCC_OnNameColor, and CCC_OnChatColor forwards
    • Improved Updater integration
  • v2.4.0 (2/11/13)
    • Added CCC_OnConfigReloaded forward
  • v2.3.0 (1/27/13)
    • Added support for CS:GO
  • v2.2.0 (1/16/13)
    • Added CCC_OnUserConfigPreLoaded forward so other plugins can block the config file from being loaded
  • v2.1.0 (12/8/12)
    • Added library registration so that other plugins can verify that Custom Chat Colors is running
  • v2.0.0 (11/25/12)
    • Improved and revised natives
  • v1.8.0 (9/27/12)
    • Changed update URL to SVN repository
    • Plugin now properly fails to load when Simple Chat Processor is not installed
  • v1.7.0 (9/16/12)
    • Fixed a bug that caused people to improperly receive colors and tags
  • v1.6.0 (9/16/12)
    • Renamed forwards to add CCC_ prefix
    • Added CCC_OnUserConfigLoaded forward
    • Added CCC_SetNameColor, CCC_SetChatColor, CCC_SetTagColor, and CCC_SetTag natives
  • v1.5.0 (8/25/12)
    • Plugin now warns on load if simple-chatprocessor.smx is not loaded
  • v1.4.0 (7/12/12)
    • Added ability to disable automatic updating
  • v1.3.0 (7/3/12)
    • Fixed a problem with the OnNameColor forward
  • v1.2.0 (6/14/12)
    • Made the natives actually work
  • v1.1.0 (6/14/12)
    • Added OnTagApplied forward
    • Added CCC_GetNameColor, CCC_GetChatColor, CCC_GetTagColor, and CCC_GetTag natives
  • v1.0.0 (6/2/12)
    • Initial release

Download Plugin (chatcolors.zip)

.zip file includes compiled binary, config file, source, and .inc file

Official Modules


.
Hello Dr. McKay,
What is the command to access the Chat colors? So the players can access it after they donate on my gaming community site.
Luigi123 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-13-2015 , 15:05   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1167

Quote:
Originally Posted by Luigi123 View Post
Hello Dr. McKay,
What is the command to access the Chat colors? So the players can access it after they donate on my gaming community site.
You managed to quote the entire post but not read how to use it.
There is no donor feature, if you want to give people chat tags you must open the config and set it your self.
Mitchell is offline
kaiqueluis49
Junior Member
Join Date: Jun 2015
Old 12-15-2015 , 13:52   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1168

Quote:
// "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" "{T}" <-- This is the color for the name
// "textcolor" "{N}" <-- 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" "{G}" <-- This is the color for the tag
// "namecolor" "{G}" <-- This is the color for the name
// "textcolor" "{N}" <-- 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 a better understanding of what these colors mean, how they work, and on what games, see this link:
// http://forums.alliedmods.net/showpos...02&postcount=2
// Thanks to everyone working on the smlib for the great .inc files!
//
// --------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 string, and if the player has all the flags, 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.
// You can use more than 1 flag for the group. You could have made the admin group with the "ad" flag,
// but it will always take the first match.
//
// ---------DO NOT EDIT ABOVE THIS LINE---------
"admin_colors"
{
"STEAM_0:1:XXXXXXX"
{
"tag" "[owner]"
"tagcolor" "FFE600"
"namecolor" "9E00FF"
}

}
what is the error ?
kaiqueluis49 is offline
Send a message via Skype™ to kaiqueluis49
Baws
Veteran Member
Join Date: Oct 2012
Old 12-15-2015 , 14:52   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1169

As I can see he didn't add the # before the color codes..
__________________
Like my clean plugins and work?
Baws is offline
Luigi123
Member
Join Date: Nov 2015
Location: Winnipeg, Manitoba, Cana
Old 12-15-2015 , 20:48   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1170

Quote:
Originally Posted by Mitchell View Post
You managed to quote the entire post but not read how to use it.
There is no donor feature, if you want to give people chat tags you must open the config and set it your self.
How do i set it?

Last edited by Luigi123; 12-15-2015 at 20:48.
Luigi123 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 14:22.


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