SA-MP Forums Archive
Multiple color in a sendclientmessage - 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: Multiple color in a sendclientmessage (/showthread.php?tid=499826)



Multiple color in a sendclientmessage - yvoms - 09.03.2014

Greetings i have a question kind of easy one tough

For example i want to have the PM system be like
[pm from] <-- in yellow [actual text in gray]
How is that possible can i use 2 colors in one sendclientmessage(playerid, COLOR_Yellow, [Pm From %s] COLOR_WHITE %text%);


Re: Multiple color in a sendclientmessage - Bingo - 09.03.2014

Use this:

Код:
{FFFF00}[PM] From playernameetc:{C0C0C0}message here



Re: Multiple color in a sendclientmessage - MP2 - 09.03.2014

Never START a client message with an embedded color - you're wasting 8 characters. Just use the 'color' parameter.


Re: Multiple color in a sendclientmessage - yvoms - 09.03.2014

Thanks for the tips