Raised This Month: $32 Target: $400
 8% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 05-16-2017 , 14:51   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1311

Your config is incorrect and your admin_groups has two main sections which is incorrect. To set the tag colors in the custom-chatcolors.cfg you need to define admin flags, and the admins will need to have that same flag to match.
Mitchell is offline
mucheborec
Junior Member
Join Date: May 2017
Old 05-16-2017 , 15:34   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1312

Quote:
Originally Posted by Mitchell View Post
Your config is incorrect and your admin_groups has two main sections which is incorrect. To set the tag colors in the custom-chatcolors.cfg you need to define admin flags, and the admins will need to have that same flag to match.
Uhmm....

I don't really understand you, I'm new to these things so I would need some depth tutorial.

Sorry but I'm braindead.

Thank you
mucheborec is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-16-2017 , 16:21   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1313

Use Admins.cfg, not the simple.
remove the first block, that should be commented out, from admin_groups.cfg.
Your admin_groups.cfg will look like this:
Code:
"Groups"
{
    "OWNER"
    {
        "flags"           "z"
        "immunity"        "99"
    }
    "ADMIN"
    {
        "flags"        "acdefghjkm"
        "immunity"        "98"
    }
    "MANAGER"
    {
        "flags"        "acdefghjk"
        "immunity"        "97"
    }
    "MODERATOR"
    {
        "flags"        "acdefhjk"
        "immunity"        "96"
    }
    "K1NG"
    {
        "flags"        "acdefjk"
        "immunity"        "95"
    }
    "FAMOUS"
    {
        "flags"        "acfjk"
        "immunity"        "94"
    }
    "VIP"
    {
        "flags"        "afjk"
        "immunity"        "93"
    }
}

Last edited by Mitchell; 05-16-2017 at 16:21.
Mitchell is offline
mucheborec
Junior Member
Join Date: May 2017
Old 05-17-2017 , 09:31   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1314

Quote:
Originally Posted by Mitchell View Post
Use Admins.cfg, not the simple.
remove the first block, that should be commented out, from admin_groups.cfg.
Your admin_groups.cfg will look like this:
Code:
"Groups"
{
    "OWNER"
    {
        "flags"           "z"
        "immunity"        "99"
    }
    "ADMIN"
    {
        "flags"        "acdefghjkm"
        "immunity"        "98"
    }
    "MANAGER"
    {
        "flags"        "acdefghjk"
        "immunity"        "97"
    }
    "MODERATOR"
    {
        "flags"        "acdefhjk"
        "immunity"        "96"
    }
    "K1NG"
    {
        "flags"        "acdefjk"
        "immunity"        "95"
    }
    "FAMOUS"
    {
        "flags"        "acfjk"
        "immunity"        "94"
    }
    "VIP"
    {
        "flags"        "afjk"
        "immunity"        "93"
    }
}
Ehmm So I did everything you said but still I don't see my admin title in chat.

Here are the new .cfgs :

admins.cfg
Code:
/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"   - Name based authentication
 *                        "ip"	- IP based authentication
 *                        Anything else is treated as custom.
 *					 Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *					 Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"         - Adds one group to the user's group table.
 *      "flags"         - Adds one or more flags to the user's permissions.
 *		"immunity"		- Sets the user's immunity level (0 = no immunity).
 *						  Immunity can be any value.  Admins with higher 
 *						  values cannot be targetted.  See sm_immunity_mode 
 *						  to tweak the rules.  Default value is 0.
 *
 * Example:
	"BAILOPAN"
	{
		"auth"			"steam"
		"identity"		"STEAM_0:1:16"
		"flags"			"abcdef"
	}
 *
 */
Admins
{
	"muche"
	{
		"auth"		"steam"
		"identity"	"STEAM_0:0:195739924"
		"flags"		"z"
		"immunity"	"99"
		"group"		"OWNER"
	}

	"Interface"
	{
		"auth"		"steam"
		"identity"	"STEAM_0:1:182606069"
		"flags"		"abcdefghijkmn"
		"immunity"	"98"
	        "group"         "ADMIN"
        {
{

admin_groups.cfg
Code:
Groups
{
	/**
	 * Allowed properties for a group:
	 *
	 *   "flags"           - Flag string.
	 *   "immunity"        - Immunity level number, or a group name.
	 *						 If the group name is a number, prepend it with an 
	 *						 '@' symbol similar to admins_simple.ini.  Users 
	 *						 will only inherit the level number if it's higher 
	 *						 than their current value.
	 */
	"Default"
	{
		"immunity"		"1"
	}
	
	"Full Admins"
	{
		/**
		 * You can override commands and command groups here.
		 * Specify a command name or group and either "allow" or "deny"
		 * Examples:
		 * 		":CSDM"			"allow"
		 *		"csdm_enable"	"deny"
		 */
		 Overrides
		 {
		 }
		"flags"			"abcdefghiz"

		/* Largish number for lots of in-between values. */
		"immunity"		"99"
	}
}

"Groups"
{
    "OWNER"
    {
        "flags"           "z"
        "immunity"        "99"
    }
    "ADMIN"
    {
        "flags"        "acdefghijkmn"
        "immunity"        "98"
    }
    "MANAGER"
    {
        "flags"        "acdefghjk"
        "immunity"        "97"
    }
    "MODERATOR"
    {
        "flags"        "acdefhjk"
        "immunity"        "96"
    }
    "K1NG"
    {
        "flags"        "acdefjk"
        "immunity"        "95"
    }
    "FAMOUS"
    {
        "flags"        "acfjk"
        "immunity"        "94"
    }
    "VIP"
    {
        "flags"        "afjk"
        "immunity"        "93"
    }
}

custom-chatcolors.cfg
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"
{
	"OWNER" // This will be the name of the group you're assigning the tag to (must match the corresponding group name in admin_groups.cfg).
	{
		"tag"				"[OWNER]" // Notice how there is no need for a "flag" key anymore
		"tagcolor"			"{02}"
	}
	"ADMIN"
	{
		"tag"				"[ADMIN] "
		"tagcolor"			"{04}"
	}
	"MANAGER"
	{
		"tag"				"[MANAGER] "
		"tagcolor"			"{03}"
	}
	"MODERATOR"
	{
		"tag"				"[MOD] "
		"tagcolor"			"{06}"
	}
	"K1NG"
	{
		"tag"				"[K1NG] "
		"tagcolor"			"{07}"
	}
	"FAMOUS"   // Use 'default' if you want to give a tag to non-group members.
	{
		"tag"				"[FAMOUS] "
		"tagcolor"			"{08}"
	}
        "VIP"
        {
                "tag"                           "[VIP]"
                "tagcolor"                      "{09}"
        }
}
mucheborec is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-17-2017 , 10:54   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1315

Your admin_groups.cfg isn't what I said. It still has two "Groups" sections.
Mitchell is offline
mucheborec
Junior Member
Join Date: May 2017
Old 05-17-2017 , 11:18   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1316

Quote:
Originally Posted by Mitchell View Post
Your admin_groups.cfg isn't what I said. It still has two "Groups" sections.
Now I changed it to this but its still not working. And btw that admin_groups.cfg I got from nanochip https://forums.alliedmods.net/showpo...postcount=1308

Code:
"Groups"
{
    "OWNER"
    {
        "flags"           "z"
        "immunity"        "99"
    }
    "ADMIN"
    {
        "flags"        "acdefghijkmn"
        "immunity"        "98"
    }
    "MANAGER"
    {
        "flags"        "acdefghjk"
        "immunity"        "97"
    }
    "MODERATOR"
    {
        "flags"        "acdefhjk"
        "immunity"        "96"
    }
    "K1NG"
    {
        "flags"        "acdefjk"
        "immunity"        "95"
    }
    "FAMOUS"
    {
        "flags"        "acfjk"
        "immunity"        "94"
    }
    "VIP"
    {
        "flags"        "afjk"
        "immunity"        "93"
    }
}

Last edited by mucheborec; 05-17-2017 at 11:19. Reason: typed wrong
mucheborec is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-17-2017 , 11:49   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1317

the custom-chatcolors-csgo for admin groups was posted here: https://forums.alliedmods.net/showpo...postcount=1315
Mitchell is offline
mucheborec
Junior Member
Join Date: May 2017
Old 05-17-2017 , 11:51   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1318

Quote:
Originally Posted by Mitchell View Post
the custom-chatcolors-csgo for admin groups was posted here: https://forums.alliedmods.net/showpo...postcount=1315
Yeah, I know I have exactly that but I still cant see tag in chat

Last edited by mucheborec; 05-17-2017 at 11:53.
mucheborec is offline
Bonnis
Senior Member
Join Date: Apr 2013
Old 05-17-2017 , 16:11   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1319

use only 1 flag like "z" or "b" etc and try
Bonnis is offline
mucheborec
Junior Member
Join Date: May 2017
Old 05-18-2017 , 06:58   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1320

Quote:
Originally Posted by Bonnis View Post
use only 1 flag like "z" or "b" etc and try
I'm trying it to myself which I have flag "z" but still doesn't work.

But I think I have to compile nanochips custom-chatcolors with Mitchell's version but I don't know how .

Last edited by mucheborec; 05-18-2017 at 07:23.
mucheborec 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 10:24.


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