[Help]2 colours in a ClientMessage? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help]2 colours in a ClientMessage? (
/showthread.php?tid=106425)
[Help]2 colours in a ClientMessage? -
Dirty_bum - 03.11.2009
Hi, im wondering can you get two colours into a Clientmessage/ format
prob a newb question but meh
like this
pawn Код:
new test[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if(test[playerid] == 1)
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s[Test]: %s", name, text); //Players name to be a colour, and the text to be default white
SendClientMessageToAll(dunno,string);
return 0;
}
return 1;
}
Hope this made sense
Thanks
Re: [Help]2 colours in a ClientMessage? -
CJ101 - 03.11.2009
if your trying to set the players name color, just use
Код:
SetPlayerColor(playerid,color);
Re: [Help]2 colours in a ClientMessage? -
Blacklite - 03.11.2009
What you are trying to do is not possible. The only way to put 2 colors in a SendClientMessage, is to use SendPlayerMessageToAll or SendPlayerMessageToPlayer.
Re: [Help]2 colours in a ClientMessage? -
Dirty_bum - 03.11.2009
Quote:
Originally Posted by Blacklite
What you are trying to do is not possible. The only way to put 2 colors in a SendClientMessage, is to use SendPlayerMessageToAll or SendPlayerMessageToPlayer.
|
aeeehh?
How would i do that, with SendPlayerMessageToAll??
Re: [Help]2 colours in a ClientMessage? -
Mikep. - 03.11.2009
You can only use 1 color in a SCM, use textdraws.
Re: [Help]2 colours in a ClientMessage? -
Kurence - 03.11.2009
Use Sandra's "second chatbox" - it works with textdraws ... you can use ~r~,~b~... codes to change colour
http://forum.sa-mp.com/index.php?topic=49741.0
Re: [Help]2 colours in a ClientMessage? -
Abernethy - 03.11.2009
There is a way, i have the code somewhere.
If i find it, i'll post.
Re: [Help]2 colours in a ClientMessage? -
Dirty_bum - 03.11.2009
Quote:
Originally Posted by Kurence
|
Thanks for that but i dont want to use textdraws
@Abernethy♥ oooo cool thanks
Re: [Help]2 colours in a ClientMessage? -
MadeMan - 03.11.2009
https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll