Raised This Month: $ Target: $400

How to print red on the chat?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Junior Member
Join Date: Apr 2010
Old 11-20-2023 , 15:07   How to print red on the chat?
Reply With Quote #1


I have a problem, I can't print the red color and the color of the opponent against me, here is my code, what could be the problem?

stock Color(const id, const input[], any:... )
	new count = 1, players[32];
	static msg[191];
	vformat(msg, 190, input, 3);

       replace_all(msg, 190, "!g", "^4"); // Green Color
       replace_all(msg, 190, "!d", "^1"); // Default Color
       replace_all(msg, 190, "!t", "^3"); // Team Color
       replace_all(msg, 190, "!t2", "^0");
	if (id) players[0] = id; else get_players(players, count, "ch");
		for (new i = 0; i < count; i++)
			if (is_user_connected(players[i]))
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);

Last edited by Alon2k2; 11-20-2023 at 16:05.
Alon2k2 is offline

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 14:26.

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