Raised This Month: $ Target: $400
 0% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Foskitox
Junior Member
Join Date: Jun 2015
Old 12-11-2015 , 21:07   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1161

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 #1162

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 #1163

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 #1164

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 #1165

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 #1166

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
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-16-2015 , 00:34   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1167

Quote:
Originally Posted by Luigi123 View Post
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?
If you don't know how to edit a file, then AlliedModders doesn't seem to be the right place for you yet.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Foskitox
Junior Member
Join Date: Jun 2015
Old 12-18-2015 , 14:12   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1168

Quote:
Originally Posted by Foskitox View Post
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
kaiqueluis49
Junior Member
Join Date: Jun 2015
Old 12-23-2015 , 18:49   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1169

My server is in trouble simply does not recognize these your files and does not put the Tags in the players and server administrators anyone could help me with this?
kaiqueluis49 is offline
Send a message via Skype™ to kaiqueluis49
Atomicbeast101
New Member
Join Date: Jan 2016
Old 01-08-2016 , 19:05   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1170

Something is up with the linking between admin groups and custom chat color's group naming. I set myself to Admin rank, and when I tested it in the server, I only show up as "Member" instead of "Admin". I tested the commands between Member and Admin ranks and they work correctly. For example, I can access sm_admin in Admin group while I can't in Member group. Any idea what's up with that? Here's my configuration files if you want to take a look:
admin_groups.cfg
Code:
Groups
{
	"Default"
	{
		"immunity"	"1"
		"Overrides"
		{
			"sm_addban"		"deny"
			"sm_ban"		"deny"
			"sm_banip"		"deny"
			"sm_unban"		"deny"
			"sm_kick"		"deny"
			"sm_cancelvote"		"deny"
			"sm_map"		"deny"
			"sm_who"		"deny"
			"sm_chat"		"deny"
			"sm_csay"		"deny"
			"sm_hsay"		"deny"
			"sm_msay"		"deny"
			"sm_mute"		"deny"
			"sm_unmute"		"deny"
			"sm_silence"		"deny"
			"sm_unsilence"		"deny"
			"sm_slap"		"deny"
			"sm_slay"		"deny"
			"sm_votemap"		"deny"
			"sm_admin"		"deny"
			"sm_cvar"		"deny"
			"sm_execcfg"		"deny"
			"sm_help"		"deny"
			"sm_rcon"		"deny"
			"sm_reloadadmins"	"deny"
			"sm_beacon"		"deny"
			"sm_burn"		"deny"
			"sm_gag"		"deny"
			"sm_play"		"deny"
			"sm_psay"		"deny"
			"sm_rename"		"deny"
			"sm_resetcvar"		"deny"
			"sm_say"		"deny"
			"sm_tsay"		"deny"
			"sm_ungag"		"deny"
			"sm_votealltalk"	"deny"
			"sm_voteff"		"deny"
			"sm_votegravity"	"deny"
			"sm_votekick"		"deny"
			"sm_voteslay"		"deny"
			"ads_reload"		"deny"
		}
	}
	"VIP"
	{
		"immunity"	"2"
		"Overrides"
		{
			"sm_addban"		"deny"
			"sm_ban"		"deny"
			"sm_banip"		"deny"
			"sm_unban"		"deny"
			"sm_kick"		"deny"
			"sm_cancelvote"		"deny"
			"sm_map"		"deny"
			"sm_who"		"deny"
			"sm_chat"		"deny"
			"sm_csay"		"deny"
			"sm_hsay"		"deny"
			"sm_msay"		"deny"
			"sm_mute"		"deny"
			"sm_unmute"		"deny"
			"sm_silence"		"deny"
			"sm_unsilence"		"deny"
			"sm_slap"		"deny"
			"sm_slay"		"deny"
			"sm_votemap"		"deny"
			"sm_admin"		"deny"
			"sm_cvar"		"deny"
			"sm_execcfg"		"deny"
			"sm_help"		"deny"
			"sm_rcon"		"deny"
			"sm_reloadadmins"	"deny"
			"sm_beacon"		"deny"
			"sm_burn"		"deny"
			"sm_gag"		"deny"
			"sm_play"		"deny"
			"sm_psay"		"deny"
			"sm_rename"		"deny"
			"sm_resetcvar"		"deny"
			"sm_say"		"deny"
			"sm_tsay"		"deny"
			"sm_ungag"		"deny"
			"sm_votealltalk"	"deny"
			"sm_voteff"		"deny"
			"sm_votegravity"	"deny"
			"sm_votekick"		"deny"
			"sm_voteslay"		"deny"
			"ads_reload"		"deny"
		}
	}
	"Mod"
	{
		"immunity"	"3"
		"Overrides"
		{
			"sm_addban"		"allow"
			"sm_ban"		"allow"
			"sm_banip"		"allow"
			"sm_unban"		"allow"
			"sm_kick"		"allow"
			"sm_cancelvote"		"allow"
			"sm_map"		"allow"
			"sm_who"		"allow"
			"sm_chat"		"allow"
			"sm_csay"		"allow"
			"sm_hsay"		"allow"
			"sm_msay"		"allow"
			"sm_mute"		"allow"
			"sm_unmute"		"allow"
			"sm_silence"		"allow"
			"sm_unsilence"		"allow"
			"sm_slap"		"allow"
			"sm_slay"		"allow"
			"sm_votemap"		"allow"
			"sm_admin"		"deny"
			"sm_cvar"		"deny"
			"sm_execcfg"		"deny"
			"sm_help"		"deny"
			"sm_rcon"		"deny"
			"sm_reloadadmins"	"deny"
			"sm_beacon"		"deny"
			"sm_burn"		"deny"
			"sm_gag"		"deny"
			"sm_play"		"deny"
			"sm_psay"		"deny"
			"sm_rename"		"deny"
			"sm_resetcvar"		"deny"
			"sm_say"		"deny"
			"sm_tsay"		"deny"
			"sm_ungag"		"deny"
			"sm_votealltalk"	"deny"
			"sm_voteff"		"deny"
			"sm_votegravity"	"deny"
			"sm_votekick"		"deny"
			"sm_voteslay"		"deny"
			"ads_reload"		"deny"
		}
	}
	"Admin"
	{
		"immunity"	"4"
		"Overrides"
		{
			"sm_addban"		"allow"
			"sm_ban"		"allow"
			"sm_banip"		"allow"
			"sm_unban"		"allow"
			"sm_kick"		"allow"
			"sm_cancelvote"		"allow"
			"sm_map"		"allow"
			"sm_who"		"allow"
			"sm_chat"		"allow"
			"sm_csay"		"allow"
			"sm_hsay"		"allow"
			"sm_msay"		"allow"
			"sm_mute"		"allow"
			"sm_unmute"		"allow"
			"sm_silence"		"allow"
			"sm_unsilence"		"allow"
			"sm_slap"		"allow"
			"sm_slay"		"allow"
			"sm_votemap"		"allow"
			"sm_admin"		"allow"
			"sm_cvar"		"allow"
			"sm_execcfg"		"allow"
			"sm_help"		"allow"
			"sm_rcon"		"allow"
			"sm_reloadadmins"	"allow"
			"sm_beacon"		"allow"
			"sm_burn"		"allow"
			"sm_gag"		"allow"
			"sm_play"		"allow"
			"sm_psay"		"allow"
			"sm_rename"		"allow"
			"sm_resetcvar"		"allow"
			"sm_say"		"allow"
			"sm_tsay"		"allow"
			"sm_ungag"		"allow"
			"sm_votealltalk"	"allow"
			"sm_voteff"		"allow"
			"sm_votegravity"	"allow"
			"sm_votekick"		"allow"
			"sm_voteslay"		"allow"
			"ads_reload"		"allow"
		}
	}
}
admins.cfg
Code:
Admins
{
	"atomicbrod101"
	{
		"auth"		"steam"
		"identity"	"STEAM_0:0:57587326"
		"group"		"Admin"
	}
}
admins_simple.ini
Code:
"STEAM_0:0:57587326" "@Admin" ""
custom_chatcolors.cfg
Code:
"admin_colors"
{
	"Default"
	{
		"tag"			"[Member] "
		"tagcolor"		"#808080"
		"namecolor"		"T"
		"textcolor"		"O"
	}
	"VIP"
	{
		"tag"			"[VIP] "
		"tagcolor"		"#FFA500"
		"namecolor"		"T"
		"textcolor"		"O"
	}
	"Mod"
	{
		"tag"			"[Mod] "
		"tagcolor"		"#008000"
		"namecolor"		"T"
		"textcolor"		"O"
	}
	"Admin"
	{
		"tag"			"[Admin] "
		"tagcolor"		"#FF0000"
		"namecolor"		"T"
		"textcolor"		"O"
	}
}
Versions:
SourceMod: 1.7.3-dev+5286
TF2 Version: 3214643

Last edited by Atomicbeast101; 01-08-2016 at 19:20. Reason: Added version information
Atomicbeast101 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 08:11.


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