More Colours in SendCliemtMessage
#1

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.
Reply
#2

https://sampwiki.blast.hk/wiki/Colour_Embedding
Reply
#3

Thank you
Reply
#4

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]}"
Reply
#5

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.
Reply
#6

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

Thank you for helping.
Reply
#8

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)