SA-MP Forums Archive
Default Player Colors - 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: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Default Player Colors (/showthread.php?tid=570885)



Default Player Colors - Deathlane - 14.04.2015

Hello, is there an array available consisting of the default player HEX colors from ID 0 to 100?

I need it, and I hope you can help me.

Thanks!


Re: Default Player Colors - MP2 - 14.04.2015

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


Re: Default Player Colors - BleverCastard - 14.04.2015

What do you mean "color fix"? Stupid question, but what's it do?

I've never seen ColorFix on the wiki.


Re: Default Player Colors - MP2 - 14.04.2015

GetPlayerColor returns 0 (black) if the player's colour wasn't previously set with SetPlayerColor, so using that array you can set their colour beforehand.

The only place it's linked from on the wiki is here: https://sampwiki.blast.hk/wiki/GetPlayerColor (big red note).


Re: Default Player Colors - Deathlane - 15.04.2015

Quote:
Originally Posted by MP2
View Post
Oh! This is it! Thanks MP2!


Re: Default Player Colors - ChristolisTV - 05.06.2015

I already have it on my server