Raised This Month: $ Target: $400
 0% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 06-09-2016 , 20:17   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1231

Quote:
Originally Posted by tuan206 View Post
Is there anyway to use mitchells CCC version with cksurf?
my version is very similiar on how the original one works, however im not sure what cksurf actually does, or how the char processor handles two plugins trying to change the tag/colors.
Mitchell is offline
tuan206
Member
Join Date: May 2016
Old 06-09-2016 , 20:26   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1232

Quote:
Originally Posted by Mitchell View Post
my version is very similiar on how the original one works, however im not sure what cksurf actually does, or how the char processor handles two plugins trying to change the tag/colors.
Cksurf uses geoip and has its own chat proccessor. In the cvars I disabled the cksurf chat processor but it still did not work. I disabled everything that is related to chat tags and it still doesn't work. Maybe its with the sp file
tuan206 is offline
The_Z_Dog
Junior Member
Join Date: Jun 2014
Old 06-12-2016 , 22:37   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1233

How is this kid bypassing the plugin overrides?
Anyone seen this before?
http://steamcommunity.com/sharedfile.../?id=701408674
The_Z_Dog is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-16-2016 , 15:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1234

I can't seem to manage to make 2 players with the same flag have 2 different tags.
I have an admin (z-flag) and a try-admin (b-flag) and config like this:
Code:
"STEAM_0:0:3997033"
	{
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	}
	
	"Try-Admin"
	{
		"flag"				"b"
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	    "textcolor"         ""
	}
	
	"STEAM_0:1:22454069"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
	}
	
	"STEAM_0:0:38439947"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
	
	"Admin"
	{
		"flag"				"z"
		"tag"				"[ADMIN] "
		"tagcolor"          "{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
But everyone now get's the try-admin tag..

NOTE: It's on CSGO using Mitchell's version

Last edited by condolent; 06-16-2016 at 15:22.
condolent is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-16-2016 , 15:46   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1235

Quote:
Originally Posted by condolent View Post
I can't seem to manage to make 2 players with the same flag have 2 different tags.
I have an admin (z-flag) and a try-admin (b-flag) and config like this:
Code:
"STEAM_0:0:3997033"
	{
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	}
	
	"Try-Admin"
	{
		"flag"				"b"
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	    "textcolor"         ""
	}
	
	"STEAM_0:1:22454069"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
	}
	
	"STEAM_0:0:38439947"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
	
	"Admin"
	{
		"flag"				"z"
		"tag"				"[ADMIN] "
		"tagcolor"          "{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
But everyone now get's the try-admin tag..

NOTE: It's on CSGO using Mitchell's version
Of course, if you put first the Try-admin everyone with b flag or more than b will have that. You must put first the "Admin" field in the config, and steam ids should be always above any flagged-ones in the config.
__________________
misterG is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-16-2016 , 15:51   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1236

Quote:
Originally Posted by misterG View Post
Of course, if you put first the Try-admin everyone with b flag or more than b will have that. You must put first the "Admin" field in the config, and steam ids should be always above any flagged-ones in the config.
Guess you meant having it this way:
Code:
	"STEAM_0:1:22454069"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
	}
	
	"STEAM_0:0:38439947"
	{
		"tag"				"[Admin] "
		"tagcolor"			"{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
	
	"Admin"
	{
		"flag"				"z"
		"tag"				"[ADMIN] "
		"tagcolor"          "{02}"
		"namecolor"			"{07}"
		"textcolor"			""
	}
	
	"STEAM_0:0:3997033"
	{
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	}
	
	"Try-Admin"
	{
		"flag"				"b"
	    "tag"               "[Try-Admin] "
	    "tagcolor"          "{10}"
	    "namecolor"         "{09}"
	    "textcolor"         ""
	}
Now all 3 users has the admin-tag

Last edited by condolent; 06-16-2016 at 15:51.
condolent is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 06-16-2016 , 15:51   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1237

If you specify the Steam ID specifically as provided by the engine (on TF2, use the [U:1:1234567] rather than the STEAM_0:1:123456) then the order does not matter, as an exact match causes the plugin to jump directly to that section of the config.

If you specify the wrong type of Steam ID, then the plugin will search through the entire config for a matching Steam ID of either type. In this case, order does matter, as flags that match will stop this search.

PHP Code:
    // check the Steam ID first
    
decl String:auth[32];
    
GetClientAuthString(clientauthsizeof(auth));
    
KvRewind(configFile);
    if(!
KvJumpToKey(configFileauth)) {
        
//search through the entire config if an exact string match was not found
    


You should generally always put all SteamID-based tags before all flag-based tags in that config, regardless of anything else. There is really never a reason to do otherwise.
__________________

Last edited by ddhoward; 06-16-2016 at 15:55.
ddhoward is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-16-2016 , 15:53   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1238

Quote:
Originally Posted by ddhoward View Post
If you specify the Steam ID specifically as provided by the engine (on TF2, use the [U:1:1234567] rather than the STEAM_0:1:123456) then the order does not matter.

If you specify the wrong type of Steam ID, then the plugin will search through the entire config for a matching Steam ID of either type. In this case, order does matter, as flags that match will stop this search.


You should generally always put all SteamID-based tags before all flag-based tags in that config.
It's CSGO, not tf2. And if I put all 3 before both 2 groups, then everyone gets admin tag aswell
condolent is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-16-2016 , 16:22   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1239

Quote:
Originally Posted by condolent View Post
It's CSGO, not tf2. And if I put all 3 before both 2 groups, then everyone gets admin tag aswell
Make sure to !reloadccc after modifying it. Or then you have everyone with z flags... or steam ids that you have put there...
__________________
misterG is offline
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-16-2016 , 16:42   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1240

Quote:
Originally Posted by misterG View Post
Make sure to !reloadccc after modifying it. Or then you have everyone with z flags... or steam ids that you have put there...
I usually just to sm plugins reload custom-chatcolors-csgo in console, works aswell right?
condolent 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 04:43.


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