SA-MP Forums Archive
More Colours in SendCliemtMessage - 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: More Colours in SendCliemtMessage (/showthread.php?tid=269179)



More Colours in SendCliemtMessage - Roko_foko - 15.07.2011

Hello, I saw there is a way how you can show player in one line text with more than one colour.
Example: "[white]Hello[/white] [/red] Roko_foko [red] [/blue]how are you?[blue]"
I guess they use SendClientMessage, but I'm not sure. Hot to do that?
Thanks in advance.


Re: More Colours in SendCliemtMessage - dutchrp - 15.07.2011

https://sampwiki.blast.hk/wiki/Colour_Embedding


Re: More Colours in SendCliemtMessage - Roko_foko - 15.07.2011

Thank you


Re: More Colours in SendCliemtMessage - [MG]Dimi - 15.07.2011

It's basicly very simple. For ordinary pawno codes you use this format "0x[RED colour][blue color][green color][contrast or something]". Here you use "{[red][blue][green]}"


Re: More Colours in SendCliemtMessage - Roko_foko - 15.07.2011

Okay, is there any limit of the sting length inside SendClientMessage if it has colors inside?
Becuase it doesn't want to show message with 146 cell's(includeing string terminator)- doesn't even appear the message, but 145 is showing perfectly.


Re: More Colours in SendCliemtMessage - [MG]Dimi - 15.07.2011

Earlier in SA-MP on some Servers you could get crash if message.command is too long so I think they have added limit.


Re: More Colours in SendCliemtMessage - Roko_foko - 15.07.2011

Thank you for helping.


Re: More Colours in SendCliemtMessage - [MG]Dimi - 15.07.2011

No problem