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

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-02-2016 , 03:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1201

Request/Idea:
Can you create a feature so that the custom chat colors can be applied to groups that have a specified command override, rather than using the flags? So you'd put the "command_override" key instead of the "flag" key, and a custom override would be the value, and that override would go in the admin_groups file.

For example:
Code:
"admin_colors"
{
	"Admin"
	{
		"command_override"	"customchatcolors_admin" //Instead of "flag" key, this is where you'd put a custom command override
		"tag"			"[Admin] "
		"tagcolor"		"#4294FF"
	}
}
and the admin groups would look like:
Code:
Groups
{
	"Admin"
	{
		 Overrides
		 {
			"customchatcolors_admin"	"allow"
		 }
		"flags"			"abcdefgh"
		"immunity"		"95"
	}
}
__________________

Last edited by Nanochip; 03-02-2016 at 03:31. Reason: Editing so much because I'm trying to make my explanation clear and understandable haha.
Nanochip is offline
Baklap4
Member
Join Date: Feb 2016
Old 03-02-2016 , 03:26   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1202

Quote:
Originally Posted by Nanochip View Post
Request/Idea:
Can you create a feature so that the custom chat colors can be applied to groups that have a specified command override, rather than using the "flag" key? So you'd put the "command_override" key, and a custom override would be the value, and that override would go in the admin_groups file.

For example:
Code:
"admin_colors"
{
	"Admin"
	{
		"command_override"	"customchatcolors_admin" //Instead of "flag" key, this is where you'd put a custom command override
		"tag"			"[Admin] "
		"tagcolor"		"#4294FF"
	}
}
and the admin groups would look like:
Code:
Groups
{
	"Admin"
	{
		 Overrides
		 {
			"customchatcolors_admin"	"allow"
		 }
		"flags"			"abcdefgh"
		"immunity"		"95"
	}
}
This would be great <3
Baklap4 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-02-2016 , 03:28   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1203

I'll +1 the overrides.

The more we can get to use overrides (instead of flags!), the better.

And the more possibilities we would have!
__________________
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
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-07-2016 , 03:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1204

I tried to attempt this myself but it isn't working, CheckCommandAccess is confusing me entirely. Maybe CheckCommandAccess isn't the right native to use... Whatever the case, maybe you guys know a solution to the issue:

Dr. McKay's Code (snipped):
Spoiler


My Code (snipped):
Spoiler


My custom-chatcolors.cfg:
Spoiler


My admins_groups.cfg:
Spoiler


My admins.cfg
Spoiler
__________________

Last edited by Nanochip; 03-07-2016 at 03:29.
Nanochip is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-07-2016 , 05:02   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1205

Quote:
Originally Posted by Nanochip View Post
I tried to attempt this myself but it isn't working, CheckCommandAccess is confusing me entirely. Maybe CheckCommandAccess isn't the right native to use... Whatever the case, maybe you guys know a solution to the issue:

Spoiler
^

decl String:configFlag[2];

Seems a little bit too little for an override, unless you are only using one single character in your override names?

Quote:
Originally Posted by Nanochip View Post
My custom-chatcolors.cfg:
Spoiler
^ "customchatcolors_admin" is much longer than what you can put in a decl String:configFlag[2];.


I suggest -

Try decl String:configFlag[32];, or if you want them with incredibly long names, something like decl String:configFlag[128]; to decl String:configFlag[256];.

Haven't looked into if overrides has a maximum length they can be though.

Code:
             if(CheckCommandAccess(client, configFlag, -1, false)) {
Try putting in a default flag in the third parameter. Since root (normally) has access to everything anyway, so eventually something like this:

Code:
             if(CheckCommandAccess(client, configFlag, ADMFLAG_ROOT, false)) {
I'm not sure if flag 0 or -1 should make it totally ignore the third parameter.

Sometime I tested (...ages back!), it would always fall back no matter what, and when 0 was being used, everyone had access.
__________________
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
Nanochip
Senior Member
Join Date: Jan 2014
Old 03-07-2016 , 11:42   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1206

Quote:
Originally Posted by arne1288 View Post
^

decl String:configFlag[2];
Ah derp, forgot about that. Changed it.

Quote:
Originally Posted by arne1288 View Post
Code:
             if(CheckCommandAccess(client, configFlag, -1, false)) {
Try putting in a default flag in the third parameter. Since root (normally) has access to everything anyway, so eventually something like this:

Code:
             if(CheckCommandAccess(client, configFlag, ADMFLAG_ROOT, false)) {
I'm not sure if flag 0 or -1 should make it totally ignore the third parameter.

Sometime I tested (...ages back!), it would always fall back no matter what, and when 0 was being used, everyone had access.
I was hoping that it would just return false if it tries to use default flag, but -1 didn't seem to do anything.

Tried ADMFLAG_ROOT as well, still no luck. D:

Current Code (snipped):
Spoiler
__________________

Last edited by Nanochip; 03-07-2016 at 14:35.
Nanochip is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-08-2016 , 14:49   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1207

Make sure Simple Chat Processor is up to date.
__________________
Dr. McKay is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 03-09-2016 , 09:47   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1208

Why when player died and print a message in chat, chat prints *DEAD* Player without colors ?

And why i can't add a tag for players, who don't have any admin overrides?

I tried to put player's steamid, but if player don't have admin overrides - tag won't work!

Last edited by MAGNAT2645; 03-13-2016 at 05:10.
MAGNAT2645 is offline
GlobalEliteTradeServers
Member
Join Date: Apr 2015
Old 03-24-2016 , 22:42   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1209

Hello,

Ive been running CCC on my server for about 6 months. Suddenly, the plugin has stopped working for only certain users on the servers. Some of my mods and some VIPs no longer have working tags. Some people do have working tags, it is a very odd situation. There is no similiaritys I can see of users who have working tags and those who don't. This problem happened a few months back and was due to files parsing because our sourcemod was out of date - but our SM is fresh installed and I dont see parsing in our error logs.

our CCC.CFG is attached. Thank you so much, and if we can find a solution to this problem we would really appreciate it!

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_1: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"
{
//-----[DEV]-----

//-----[OWNER]-----
//Pr1me
"STEAM_1:1:68782054"
{
"tag" "[Owner]"
"tagcolor" "{04}"
}
//Schmed
"STEAM_1:1:52746850"
{
"tag" "[Owner]"
"tagcolor" "{04}"
}

//-----[ADMIN]-----
//JonSnow
"STEAM_1:0:78692"
{
"tag" "[Admin of the North]"
"tagcolor" "{06}"
}
//-----[MOD]-----
//Chameleon
"STEAM_1:1:99908160"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//Confounds
"STEAM_1:1:52237585"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//Simply
"STEAM_1:1:18425832"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//Regret
"STEAM_1:18792419"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//NootNoot
"STEAM_1:1:74002039"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//WildJ
"STEAM_1:1:56482033"
{
"tag" "[Mod]"
"tagcolor" "{05}"
}
//MaZah
"STEAM_1:1:29447168"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//thepatyman
"STEAM_1:09368953"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//LePenguin
"STEAM_1:1:71414216"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Epar
"STEAM_1:0:86674656"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Juke
"STEAM_1:1:27050102"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Tango
"STEAM_1:1:162536662"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Corvus
"STEAM_1:1:74060207"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Xelen
"STEAM_1:0:111948603"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}

//Soel
"STEAM_1:0:53389482"
{
"tag" "[Admin] "
"tagcolor" "{06}"
}
//M0isT?
"STEAM_1:0:12600235"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Rukkuz
"STEAM_1:0:84501464"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Imjom
"STEAM_1:1:87193971"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Salmon
"STEAM_1:0:103513780"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
"{05}"
//Fab
"STEAM_1:0:71667502"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Kooless
"STEAM_1:1:26659383"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Mythic
"STEAM_1:0:78992072"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Spod3s
"STEAM_1:1:66900488"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Phesta
"STEAM_1:0:106528191"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}
//Freclan
"STEAM_1:1:51347003"
{
"tag" "[Mod] "
"tagcolor" "{05}"
}


//-----[Tier EXAMPLE]-----
//Name of Person
// "STEAM_1:55555555"
// {
// "tag" "[Tier AnyText Here] "
// "tagcolor" "{0E}"
// }
//
// LIST OF TAG COLORS FOR TIERS: T1=0A, T2=0B, T3=0C, T4= 03, T5=0E,

//-----[Tier I]-----
//SHUBBlER
"STEAM_1:1:62133936"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//Zia
"STEAM_1:03398897"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//guy
"STEAM_1:1:59860752"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//Viral
"STEAM_1:1:122472621"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//Poshy
"STEAM_1:0:88057503"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//Wolfdead
"STEAM_1:1:84767596"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//eartherectrion
"STEAM_1:1:119058535"
{
"tag" "[Tier I] "
"tagcolor" "{0A}"
}
//-----[Tier II]-----
//Zia
"STEAM_1:0:56291454"
{
"tag" "[Tier II] "
"tagcolor" "{0D}"
}
//Chameleon
"STEAM_1:1:99908160"
{
"tag" "[Tier II] "
"tagcolor" "{0D}"
}
//-----[Tier III]-----

//Kooless
"STEAM_1:1:26659383"
{
"tag" "[Tier III] "
"tagcolor" "{0C}"
}

//Corporal Crepe
"STEAM_1:178776"
{
"tag" "[Tier III] "
"tagcolor" "{0C}"
}
//-----[Tier IV]-----


//-----[Tier V]-----
//Stepyly
"STEAM_1:0:51302975"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//RealNukeOG
"STEAM_1:0:86914161"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Skyd1ddy
"STEAM_1:06075659"
{
"tag" "[Tier V] "
"tagcolor" "{10}"
}
//Levi
"STEAM_1:0:26783760"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Gentleman
"STEAM_1:0:25990581"
{
"tag" "[GentleAdmin] "
"tagcolor" "{06}"
}
//Flipsong
"STEAM_1:0:64739839"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Kalashnikov
"STEAM_1:0:124681664"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Kooless
"STEAM_0:1:26659383"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Xelam
"STEAM_1:0:147756482"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//1040am
"STEAM_1:1:65653378"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Bawb
"STEAM_1:1:42019624"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Spixxy
"STEAM_1:1:119702280"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//Lil Bunny FooFoo
"STEAM_1:1:26783640"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//ROFL
"STEAM_1:1:57332863"
{
"tag" "[Tier V] "
"tagcolor" "{0E}"
}
//-----[VIP]-----
"VIP"
{
"tag" "[VIP] "
"tagcolor" "{02}"
"flag" "a"
}
}
GlobalEliteTradeServers is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 03-24-2016 , 22:48   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1210

Quote:
Originally Posted by GlobalEliteTradeServers View Post
Hello,

Ive been running CCC on my server for about 6 months. Suddenly, the plugin has stopped working for only certain users on the servers. Some of my mods and some VIPs no longer have working tags. Some people do have working tags, it is a very odd situation. There is no similiaritys I can see of users who have working tags and those who don't. This problem happened a few months back and was due to files parsing because our sourcemod was out of date - but our SM is fresh installed and I dont see parsing in our error logs.

our CCC.CFG is attached. Thank you so much, and if we can find a solution to this problem we would really appreciate it!
May I ask why you don't use just an flag for VIPs instead? That's so much work you have there. I think that should also fix your problem. I guess that the file is just too big maybe.
__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
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 11:57.


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