SA-MP Forums Archive
2 colors in 1 string? - 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: 2 colors in 1 string? (/showthread.php?tid=182778)



2 colors in 1 string? - Naxix - 12.10.2010

Hi, i was wondering how you can make 2 colors in 1 string. Like:

Quote:
Hi my name is Naxix
Like first part is red, next is black.

Best regards Naxix


Re: 2 colors in 1 string? - BloodyEric - 12.10.2010

Only possible with textdraws.


Re: 2 colors in 1 string? - Naxix - 12.10.2010

Oh, i thought it was possible to the OnPlayerText send out a msg like this:

Quote:
Name[id]: text
I think i have seen it before.


Re: 2 colors in 1 string? - LarzI - 12.10.2010

If you have seen it before, textdraws was used to make a custom chatbox.


Re: 2 colors in 1 string? - Nero_3D - 12.10.2010

Changed the nick of the player than use SendPlayerMessageToAll and changed the nick back in OnPlayerText