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

Multiple team colors in one chat message?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-07-2018 , 14:06   Multiple team colors in one chat message?
Reply With Quote #1

We all know this is impossible, but today I accidentally managed to do this:


(image is 100% real)

Looks like ^r gives you the ability to move the message on a new line and overlap multiple rows that use different colors. Although a little glitchy, I thought I share this here and maybe someone with more knowledge will find a better way to do this.

Here's the code to reproduce the message on the image:

Code:
client_print_color(id, print_team_blue, "^3^r^rBLUE") client_print_color(id, print_team_red, "^3^r        RED") client_print_color(id, print_team_grey, "^3              WHITE ^1DEFAULT ^4GREEN")
__________________

Last edited by OciXCrom; 08-08-2018 at 07:54.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 08-08-2018 , 00:23   Re: Multiple team colors in one chat message?
Reply With Quote #2

Does it work without CromChat?
__________________
CrAzY MaN is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-08-2018 , 03:50   Re: Multiple team colors in one chat message?
Reply With Quote #3

Quote:
Originally Posted by CrAzY MaN View Post
Does it work without CromChat?
Ofc CromChat its just a stock.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-08-2018 , 07:54   Re: Multiple team colors in one chat message?
Reply With Quote #4

Here's without cromchat:

Code:
client_print_color(id, print_team_blue, "^3^r^rBLUE") client_print_color(id, print_team_red, "^3^r        RED") client_print_color(id, print_team_grey, "^3              WHITE ^1DEFAULT ^4GREEN")
__________________

Last edited by OciXCrom; 08-08-2018 at 07:54.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-08-2018 , 11:55   Re: Multiple team colors in one chat message?
Reply With Quote #5

It is like default hud and files is changed, maybe he also changed something at client side no?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-08-2018 , 13:08   Re: Multiple team colors in one chat message?
Reply With Quote #6

There's nothing changed on client or server side. The code works in default AMXX.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 08-11-2018 , 01:32   Re: Multiple team colors in one chat message?
Reply With Quote #7

Bump
WhiteFang1319 is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 08-11-2018 , 03:41   Re: Multiple team colors in one chat message?
Reply With Quote #8

Quote:
Originally Posted by WhiteFang1319 View Post
Bump
Why? Any reason to do this?
__________________
CrAzY MaN is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-14-2018 , 03:40   Re: Multiple team colors in one chat message?
Reply With Quote #9

nice find...i think someone 'more experienced' can make this working
JocAnis is offline
Reply


Thread Tools
Display Modes

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 21:21.


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