09.04.2013, 07:04
I am using, seems to work
if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] != TEAM_ARMY && PlayerInfo[playerid][team] != TEAM_SWAT && PlayerInfo[playerid][team] != TEAM_LVCOP && PlayerInfo[playerid][team] != TEAM_LVARMY && PlayerInfo[playerid][team] != TEAM_LVSWAT && PlayerInfo[playerid][team] != TEAM_LSCOP && PlayerInfo[playerid][team] !=TEAM_MEDIC && PlayerInfo[playerid][team] != TEAM_LVMEDIC && PlayerInfo[playerid][team] != TEAM_MECHANIC)
{
SetPlayerColor(playerid, COLOR_WHITE);
}
else if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] == TEAM_MEDIC && PlayerInfo[playerid][team] == TEAM_LVMEDIC)
{
SetPlayerColor(playerid, COLOR_PINK);
}
else if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] == TEAM_MECHANIC)
{
SetPlayerColor(playerid, COLOR_BROWN);
}
else if(GetPlayerWantedLevel(playerid) >= 1 && GetPlayerWantedLevel(playerid) <=3)// between 1 and less than 3 stars, name color changed to yellow
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
else if (GetPlayerWantedLevel(playerid) >=4 )
{
SetPlayerColor(playerid,COLOR_ORANGE); // with 4 or more stars, name color changed to orange
}
if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] != TEAM_ARMY && PlayerInfo[playerid][team] != TEAM_SWAT && PlayerInfo[playerid][team] != TEAM_LVCOP && PlayerInfo[playerid][team] != TEAM_LVARMY && PlayerInfo[playerid][team] != TEAM_LVSWAT && PlayerInfo[playerid][team] != TEAM_LSCOP && PlayerInfo[playerid][team] !=TEAM_MEDIC && PlayerInfo[playerid][team] != TEAM_LVMEDIC && PlayerInfo[playerid][team] != TEAM_MECHANIC)
{
SetPlayerColor(playerid, COLOR_WHITE);
}
else if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] == TEAM_MEDIC && PlayerInfo[playerid][team] == TEAM_LVMEDIC)
{
SetPlayerColor(playerid, COLOR_PINK);
}
else if(GetPlayerWantedLevel(playerid) == 0 && PlayerInfo[playerid][team] == TEAM_MECHANIC)
{
SetPlayerColor(playerid, COLOR_BROWN);
}
else if(GetPlayerWantedLevel(playerid) >= 1 && GetPlayerWantedLevel(playerid) <=3)// between 1 and less than 3 stars, name color changed to yellow
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
else if (GetPlayerWantedLevel(playerid) >=4 )
{
SetPlayerColor(playerid,COLOR_ORANGE); // with 4 or more stars, name color changed to orange
}