SA-MP Forums Archive
Multiple colours on each vehicle plate - 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 colours on each vehicle plate (/showthread.php?tid=299932)



Multiple colours on each vehicle plate - Luis- - 28.11.2011

How can I do this? I would like to have a feature like it on my server. Thanks.


Re: Multiple colours on each vehicle plate - Scenario - 28.11.2011

Is it possible to embed colors onto vehicle plates?


Re: Multiple colours on each vehicle plate - admantis - 28.11.2011

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Is it possible to embed colors onto vehicle plates?
Yes it is just like client messages and 3D labels.


Re: Multiple colours on each vehicle plate - Scenario - 28.11.2011

Quote:
Originally Posted by admantis
Посмотреть сообщение
Yes it is just like client messages and 3D labels.
Oh, well in that case, -Luis, just put the colors in the string. Like so:

pawn Код:
"{FF00AA}backup"



Re: Multiple colours on each vehicle plate - Luis- - 28.11.2011

How would i do it so a random colour goes to each license plate, i know i would use an array but i dont know what i would do next.


Re: Multiple colours on each vehicle plate - Scenario - 28.11.2011

I would consider doing something like this:

pawn Код:
format(platestring, sizeof(platestring), "{%s}%s", randomcolorhere, platetext);