Raised This Month: $ Target: $400
 0% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 06-21-2015 , 02:04   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1081

Salut ,

Help pls

Why not work?
What am I doing wrong?

"admin_colors"
{
"Admin"
{
"flag" "z"
"tag" "[Admin] "
"tagcolor" "O"
"namecolor" "G"
"textcolor" "T"
}
}

Multumesc ,
__________________
respecta si vei fi respectat

Last edited by bebe9b; 06-21-2015 at 13:48.
bebe9b is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-26-2015 , 14:17   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1082

Quote:
Originally Posted by bebe9b View Post
Salut ,

Help pls

Why not work?
What am I doing wrong?

"admin_colors"
{
"Admin"
{
"flag" "z"
"tag" "[Admin] "
"tagcolor" "O"
"namecolor" "G"
"textcolor" "T"
}
}

Multumesc ,
Do you get any errors?
Quote:
Originally Posted by Dispenz0r View Post
I started getting

Code:
KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\custom-chatcolors.cfg
after restarting my servers, cannot seem to get the plugin work on my servers

Also pretty sure my config has no issues, it was working without any problems before the server restart

EDIT: Uploaded the .cfg incase if anybody still wants to check it anyway
Looks fine to me, maybe check your line endings?
__________________
Dr. McKay is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 06-27-2015 , 09:22   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1083

Quote:
Originally Posted by Dispenz0r View Post
Any particular reason you are using a hex editor to edit your text files?
Sreaper is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 07-03-2015 , 09:58   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1084

any way that i can get something like this colored tag [Admin]
__________________
misterG is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 07-03-2015 , 10:33   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1085

Quote:
Originally Posted by misterG View Post
any way that i can get something like this colored tag [Admin]
In order to do such multi-colored tags, you will have to modify the system on your own.
__________________
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
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 07-03-2015 , 14:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1086

Quote:
Originally Posted by arne1288 View Post
In order to do such multi-colored tags, you will have to modify the system on your own.
Ok, can somebody do this for me ? It shouldn't be very hard, just i want those [] to be white and the rest should be whatever color i want. And yes i don't care if any tag would begin with "[" and finish with "]".
So please if anybody has the skills....
__________________
misterG is offline
barel31
Member
Join Date: Mar 2011
Old 07-12-2015 , 17:07   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1087

CCC_SetTag Not work for me for regular players... Only for players with flag a or b
barel31 is offline
whtevrwt
AlliedModders Donor
Join Date: Apr 2015
Old 07-25-2015 , 22:18   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1088

Quote:
Originally Posted by Mitchell View Post
Quick tip, since i didnt want to have your updater included i changed:

#include "mckayupdater.sp"
to
#tryinclude "mckayupdater.sp"

Edit: i have some good news

I have made the csgo version, with passive changes! it shouldnt break any modules

Try this, to use the colors make sure you do: {01} - {09}, {0A} - {0F}, {10} as the color of the tag/chat/name
see the colors/example here:
Spoiler

I'm also going to attach my test plugin
The CCC_GetColor will return a number 1-16 if it is a csgo chat color 01-10-0A-0F etc.
The reason i had to use {} is because KvGetString would return '7' instead of "07"

EDIT: i threw in an idea if {03} is used it will change the author to -1, not sure if you want to keep that idea, it so they can use the color purple. This will replace 'T' with purple though.
This works perfectly fine in CS:GO. The only problem I have is that setting a custom chatcolor for a specific Steam ID doesn't work. For example, this is my cfg:

Code:
"admin_colors"
{    
    "ADMIN"
	{
		"flag"				"b"
        "tag"				"[Admin] "
        "tagcolor"			"{02}"
        "namecolor"			"{0C}"
        "textcolor"			"{01}"
	}
    
	"DONATOR"
	{
		"flag"				"t"
        "tag"				"[Donator] "
        "tagcolor"			"{04}"
	}
    
	"STEAM_0:1:38974523"
	{
        "tag"				"oh baby "
        "tagcolor"			"{0D}"
        "namecolor"			"{0B}"
	}
}
As you can see, users with the "b" flag are given the Admin Chat Color. That's perfectly fine and how I want it to be. Donator is the same thing. Works perfect. But when I add a specific Steam ID, the Admin Chat Color overrides the Steam ID chat color. Is there a way for it to be reversed? That way the Steam ID > Admin Chat Color?
__________________
whtevrwt is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 07-26-2015 , 14:42   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1089

Quote:
Originally Posted by whtevrwt View Post
This works perfectly fine in CS:GO. The only problem I have is that setting a custom chatcolor for a specific Steam ID doesn't work. For example, this is my cfg:

Code:
"admin_colors"
{    
    "ADMIN"
	{
		"flag"				"b"
        "tag"				"[Admin] "
        "tagcolor"			"{02}"
        "namecolor"			"{0C}"
        "textcolor"			"{01}"
	}
    
	"DONATOR"
	{
		"flag"				"t"
        "tag"				"[Donator] "
        "tagcolor"			"{04}"
	}
    
	"STEAM_0:1:38974523"
	{
        "tag"				"oh baby "
        "tagcolor"			"{0D}"
        "namecolor"			"{0B}"
	}
}
As you can see, users with the "b" flag are given the Admin Chat Color. That's perfectly fine and how I want it to be. Donator is the same thing. Works perfect. But when I add a specific Steam ID, the Admin Chat Color overrides the Steam ID chat color. Is there a way for it to be reversed? That way the Steam ID > Admin Chat Color?
Order matters. First you put steam ids in your cfg.
__________________
misterG is offline
whtevrwt
AlliedModders Donor
Join Date: Apr 2015
Old 07-26-2015 , 18:43   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1090

I've done this and it still displays the Admin tag before the user custom tag.
__________________
whtevrwt 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 23:52.


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