Multicolored 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)
+--- Thread: Multicolored ClientMessage? (
/showthread.php?tid=493510)
Multicolored ClientMessage? -
hassantariq73 - 08.02.2014
I want to show different colors in a same message.
pawn Код:
CMD:credits(playerid, params[])
{
SendClientMessage(playerid, COLOR_RED, "Inspiron: 0xFFFFFFAA for scripting,mapping and hosting.");
SendClientMessage(playerid, COLOR_RED, "YOU: 0xFFFFFFAA for doing something.");
SendClientMessage(playerid, COLOR_RED, "YOU: 0xFFFFFFAA for doing something.");
return 1;
}
But this is the result.
What I want to do is something like this
You for doing something for server.
How to do that?
Re: Multicolored ClientMessage? -
CuervO - 08.02.2014
You need to use raw hexadecimal codes inside brackets ({AAAAAA})
{FFFFFF} would be white, {FF0000} red and so on. Can only be used via scripts or dialogs, Color codes wont get processed if sent via the chat (T, F6).
"{FF0000}You {FFFF00}for doing something for server." is what would be for what you want, specifically. Chat text lenght was increased from 128 to 144 for this reason as color codes are inside the limitation.
Re: Multicolored ClientMessage? -
hassantariq73 - 08.02.2014
Quote:
Originally Posted by CuervO
You need to use raw hexadecimal codes inside brackets ({AAAAAA})
{FFFFFF} would be white, {FF0000} red and so on. Can only be used via scripts or dialogs, Color codes wont get processed if sent via the chat (T, F6).
"{FF0000}You {FFFF00}for doing something for server." is what would be for what you want, specifically. Chat text lenght was increased from 128 to 144 for this reason as color codes are inside the limitation.
|
I am sorry i cant understand what are you saying.
Can you please provide me the code for it?
Re: Multicolored ClientMessage? -
dadh - 08.02.2014
https://sampwiki.blast.hk/wiki/Colors_List#Color_embedding
Re: Multicolored ClientMessage? -
SickAttack - 08.02.2014
Quote:
Originally Posted by hassantariq73
I am sorry i cant understand what are you saying.
Can you please provide me the code for it?
|
^^^
pawn Код:
CMD:credits(playerid, params[])
{
SendClientMessage(playerid, COLOR_RED, "Inspiron: {FFFFFF} for scripting,mapping and hosting.");
SendClientMessage(playerid, COLOR_RED, "YOU: {FFFFFF} for doing something.");
SendClientMessage(playerid, COLOR_RED, "YOU: {FFFFFF} for doing something.");
return 1;
}
Re: Multicolored ClientMessage? -
hassantariq73 - 09.02.2014
Quote:
Originally Posted by SickAttack
^^^
pawn Код:
CMD:credits(playerid, params[]) { SendClientMessage(playerid, COLOR_RED, "Inspiron: {FFFFFF} for scripting,mapping and hosting."); SendClientMessage(playerid, COLOR_RED, "YOU: {FFFFFF} for doing something."); SendClientMessage(playerid, COLOR_RED, "YOU: {FFFFFF} for doing something."); return 1; }
|
Thanks, I'll rep you later