AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multiple team colors in one chat message? (https://forums.alliedmods.net/showthread.php?t=309806)

OciXCrom 08-07-2018 14:06

Multiple team colors in one chat message?
 
We all know this is impossible, but today I accidentally managed to do this:

https://i.imgur.com/pfvfY5c.jpg
(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")

CrAzY MaN 08-08-2018 00:23

Re: Multiple team colors in one chat message?
 
Does it work without CromChat?

Ghosted 08-08-2018 03:50

Re: Multiple team colors in one chat message?
 
Quote:

Originally Posted by CrAzY MaN (Post 2609038)
Does it work without CromChat?

Ofc CromChat its just a stock.

OciXCrom 08-08-2018 07:54

Re: Multiple team colors in one chat message?
 
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")

^SmileY 08-08-2018 11:55

Re: Multiple team colors in one chat message?
 
It is like default hud and files is changed, maybe he also changed something at client side no?

OciXCrom 08-08-2018 13:08

Re: Multiple team colors in one chat message?
 
There's nothing changed on client or server side. The code works in default AMXX.

WhiteFang1319 08-11-2018 01:32

Re: Multiple team colors in one chat message?
 
Bump

CrAzY MaN 08-11-2018 03:41

Re: Multiple team colors in one chat message?
 
Quote:

Originally Posted by WhiteFang1319 (Post 2609574)
Bump

Why? Any reason to do this?

JocAnis 08-14-2018 03:40

Re: Multiple team colors in one chat message?
 
nice find...i think someone 'more experienced' can make this working


All times are GMT -4. The time now is 11:23.

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