Posts: 90
Threads: 32
Joined: Apr 2011
Reputation:
0
How to type in sendclientmessage in two colors?
example
color=getplayercolor(playerid);
sendclientmessagetoall(COLOR_WHITE, "(WITH COLOR ( GET PLAYER COLOR ) ) PLAYER NAME ( WITH WHITE ) text[1]);
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
I don't really understand you. Do you want something like htis;
Kingunit: Hello this is my SAMP server
Using two colors in one SendClientMessage?
Posts: 373
Threads: 8
Joined: Apr 2011
Reputation:
0
2 colors in a message
SendClientMessageToAll(-1,"{FFFFF}Color1 {FF0000}Color2!");
don't know if you can use GetPlayerColor here though.
Posts: 149
Threads: 0
Joined: Oct 2009
Reputation:
0
If you want what he said above you would need to use {RRGGBB] in the text:
sendclientmessagetoall(GetPlayerColor(playerid), "PLAYER NAME{FFFFFF} text[1]);
^ An edit of your little example (won't work, as you need to format it, but I assume you know how to do that.
Posts: 373
Threads: 8
Joined: Apr 2011
Reputation:
0
Kingunit, is that even possible?
Btw : SendClientMessageToAll doesn't require "playerid"
i know only that you can add colors by using {COLORCODE}