SA-MP Forums Archive
Change Color on Wanted - 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: Change Color on Wanted (/showthread.php?tid=148763)



Change Color on Wanted - JustinB - 18.05.2010

Hello everybody, I wanted to know if I can make it depending on players wanted level they change color to like RED but in my server they already have name colors on different classes.So what I need is depending on wanted their name changes to a certain color and when they die and respawn it keeps the color depending on wanted.I just don't know how it will work because my script spawns with colored names.
Thanks For trying to help Guys


Re: Change Color on Wanted - ViruZZzZ_ChiLLL - 18.05.2010

pawn Код:
SetPlayerColor(playerid, COLOR_WHITE);

if(GetPlayerWantedLevel(playerid) == 1)
{
SetPlayerColor(playerid, COLOR_YELLOW);
}

if(GetPlayerWantedLevel(playerid) == 4)
{
SetPlayerColor(playerid, COLOR_ORANGE);
}
You get the idea..