Raised This Month: $ Target: $400
 0% 

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
plywrx
Junior Member
Join Date: Feb 2015
Old 02-25-2015 , 19:10   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1031

i mean in game.
plywrx is offline
plywrx
Junior Member
Join Date: Feb 2015
Old 02-25-2015 , 20:11   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1032

and my tag is not working it shows up like this [owner] [owner] ff301 sniperelite:test
plywrx is offline
DREDPOOL
New Member
Join Date: Feb 2015
Old 02-26-2015 , 07:14   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1033

Quote:
Originally Posted by Dr. McKay View Post
Use real quotes instead of angle quotes.
God-damn Mac keyboards. How did I not spot that?!

Thanks Doc.
DREDPOOL is offline
plywrx
Junior Member
Join Date: Feb 2015
Old 02-28-2015 , 14:22   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1034

this is not working for one of my friends
{
"flag" "z"
"tag" "[Co Owner] "
"tagcolor" "#0000FF"
"namecolor" "#FFFF00"
"textcolor" "#CC0000"
}
when he types something the tag does not change and when he types something with / in front of it it will come out correctly
plywrx is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-28-2015 , 15:40   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1035

Quote:
Originally Posted by plywrx View Post
this is not working for one of my friends
{
"flag" "z"
"tag" "[Co Owner] "
"tagcolor" "#0000FF"
"namecolor" "#FFFF00"
"textcolor" "#CC0000"
}
when he types something the tag does not change and when he types something with / in front of it it will come out correctly
What game?
__________________
Dr. McKay is offline
LittleShiT
BANNED
Join Date: Jan 2015
Location: https://t.me/pump_upp
Old 03-03-2015 , 05:20   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1036

CUSTOM COLORS FOR CS:GO http://hlmod.ru/forum/plaginy-dlya-s...ce-2009-a.html

WORKS 100%

SOMEONE PLEASE POST THIS PLUGIN HERE

Last edited by LittleShiT; 03-03-2015 at 05:21.
LittleShiT is offline
Send a message via ICQ to LittleShiT Send a message via AIM to LittleShiT Send a message via Yahoo to LittleShiT Send a message via Skype™ to LittleShiT
Mitchell
~lick~
Join Date: Mar 2010
Old 03-03-2015 , 09:22   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1037

why do
Code:
	decl String:game[64];
	GetGameFolderName(game, sizeof(game));
	if(StrEqual(game, "csgo")) {
when ever a message is processed, why not just get the engine version on plugin load? It's not something that can change.

I could work on some small changes to support csgo colors, should be passive changes.

Last edited by Mitchell; 03-03-2015 at 09:24.
Mitchell is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-03-2015 , 22:29   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1038

Quote:
Originally Posted by Mitchell View Post
why do
Code:
    decl String:game[64];
    GetGameFolderName(game, sizeof(game));
    if(StrEqual(game, "csgo")) {
when ever a message is processed, why not just get the engine version on plugin load? It's not something that can change.

I could work on some small changes to support csgo colors, should be passive changes.
It could be done that way, I just didn't.

If you want to, feel free. Just make sure you update the API in a sane way.
__________________
Dr. McKay is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-03-2015 , 23:53   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1039

Quote:
Originally Posted by Dr. McKay View Post
It could be done that way, I just didn't.

If you want to, feel free. Just make sure you update the API in a sane way.
I was mainly thinking of making it translate the colors "01" - "09", "0A" - "0F", and "10" to "\x##"

Edit:
I saw that you wanted to add suffixs, and in tag colors also.
Might i ask why you went with returning an int instead a string of the color?

Last edited by Mitchell; 03-04-2015 at 10:10.
Mitchell is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-08-2015 , 15:52   Re: [Source 2013] Custom Chat Colors
Reply With Quote #1040

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.

EDIT(4/12/17): Wow 1337 views! heres a small exploit fix for csgo!
Attached Files
File Type: sp Get Plugin or Get Source (custom-chatcolors-csgo.sp - 2562 views - 19.1 KB)
File Type: smx custom-chatcolors-csgo.smx (12.1 KB, 2699 views)

Last edited by Mitchell; 05-10-2017 at 02:07.
Mitchell 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 03:19.


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