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

HELP -> [CS:GO] \x Color Values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 03-27-2020 , 19:26   HELP -> [CS:GO] \x Color Values
Reply With Quote #1

Hey,

Today, when testing a plugin it didn't show the colors on the text!
PHP Code:
PrintToChat(client"\x0B[TEST] \x07This is a \x03Test"); 
Event testing with
PHP Code:
PrintToChat(client"\x0B [TEST] \x07 This is a \x03 Test"); 
I have either a text document where I have the "supported" colors for CS:GO:
Code:
default (white): \x01
darkred: \x02
purple: \x03
green: \x04
lightgreen: \x05
lime: \x06
red: \x07
grey: \x08
yellow: \x09
gold: \x10
blue: \x0B
What are now the \x color values compatible with CS:GO?

Best Regards,

SpirT.
__________________

Last edited by SpirT; 03-27-2020 at 19:26.
SpirT is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-28-2020 , 07:12   Re: HELP -> [CS:GO] \x Color Values
Reply With Quote #2

You can use https://github.com/Ilusion9/sourcecolors-inc
There's no problem with colors in SayText2

Maybe, with the last update, TextMsg (PrintToChat is based on TextMsg) doesn't support colors. I haven't tested it.

What colors doesn't work? All? Or just the first one. Use space character at the beginning (\x0B doesn't work in your example).

PHP Code:
PrintToChat(client" \x0B[TEST] \x07This is a \x03Test"); 
__________________
Ilusion9 is offline
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 03-28-2020 , 10:28   Re: HELP -> [CS:GO] \x Color Values
Reply With Quote #3

Quote:
Originally Posted by Ilusion9 View Post
You can use https://github.com/Ilusion9/sourcecolors-inc
There's no problem with colors in SayText2

Maybe, with the last update, TextMsg (PrintToChat is based on TextMsg) doesn't support colors. I haven't tested it.

What colors doesn't work? All? Or just the first one. Use space character at the beginning (\x0B doesn't work in your example).

PHP Code:
PrintToChat(client" \x0B[TEST] \x07This is a \x03Test"); 
The ones that are on the message are the ones that do not work. Isn't there any way to use them with no include? Or csgocolors / colors include will work?
__________________
SpirT is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-28-2020 , 10:50   Re: HELP -> [CS:GO] \x Color Values
Reply With Quote #4

https://i.imgur.com/7Cf3NqA.png
Colors works fine with my library.
__________________
Ilusion9 is offline
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 03-28-2020 , 11:19   Re: HELP -> [CS:GO] \x Color Values
Reply With Quote #5

Quote:
Originally Posted by Ilusion9 View Post
https://i.imgur.com/7Cf3NqA.png
Colors works fine with my library.
Cool, with PrintToChat right?

Is there any way to use colors with no includes? Or I need to use csgocolors / colors / your include on it?

EDIT: With multicolors, do I have to use SayText2?
__________________

Last edited by SpirT; 03-28-2020 at 11:29.
SpirT is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-28-2020 , 13:50   Re: HELP -> [CS:GO] \x Color Values
Reply With Quote #6

Quote:
Originally Posted by SpirT View Post
Cool, with PrintToChat right?

Is there any way to use colors with no includes? Or I need to use csgocolors / colors / your include on it?

EDIT: With multicolors, do I have to use SayText2?
You can use CPrintToChat from my lib.
But \x07, \x0B works fine in PrintToChat on my server.
__________________
Ilusion9 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 11:57.


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