Wantedlevelcolor problem - 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: Wantedlevelcolor problem (
/showthread.php?tid=313929)
Wantedlevelcolor problem -
Face9000 - 27.01.2012
pawn Код:
public WantedLevelColor()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsSpawned[i] == 1)
{
if(GetPlayerWantedLevel(i) = 2)
{
SetPlayerColor(i, green);
}
if(GetPlayerWantedLevel(i) > 6)
{
SetPlayerColor(i, yellow);
}
if(GetPlayerWantedLevel(i) > 10)
{
SetPlayerColor(i, orange);
}
if(GetPlayerWantedLevel(i) > 15)
{
SetPlayerColor(i, lightred);
}
if(GetPlayerWantedLevel(i) > 20)
{
SetPlayerColor(i, darkred);
}
}
}
}
It's a public that i made to change the player color based on wanted level,but doesn't work.
And...how to make it more small? Thank you.
Re: Wantedlevelcolor problem -
Face9000 - 27.01.2012
Thank you.