Colour of Names help?!?! - 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: Colour of Names help?!?! (
/showthread.php?tid=287397)
Colour of Names help?!?! -
banner - 03.10.2011
hey guys, thanks for viewing.
in my server, i want to make it so that when a civilian becomes a freecop, their name and map marker changes to blue, another example, a fireman goes on duty and their map marker and name becomes red. where should i be looking in the code to change this? im using raven if that makes it easier to answer, but in general it would be nice to know what code i need to change to do something like that. thanks all!
if this leads to a few people getting questions answered, a rep+ would be soo appreciated!!! thanks guys!
Re: Colour of Names help?!?! -
=WoR=Varth - 03.10.2011
https://sampwiki.blast.hk/wiki/SetPlayerColor
Re: Colour of Names help?!?! -
TheLazySloth - 03.10.2011
SetPlayerColor(playerid,
Color);
Colors..
#define White 0xFFFFFFFF
#define
Black 0x000000FF
#define
Grey 0x5C5C5CFF
#define
Brown 0x430000FF
#define
Red 0xFF0000FF
#define
Orange 0xFF9900FF
#define
Yellow 0xFFFF00FF
#define
Green 0x00CC00FF
#define
Blue 0x0033CCFF
#define
Purple 0x660099FF
http://www.colorpicker.com/
To choose a color just find a good shade/hex then define it
#define Color 0x//paste here and add
FF at the end.