Quote:
Originally Posted by Logofero
PHP код:
if(Team[playerid] == TEAM_COP)
{
for(new p = GetPlayerPoolSize(); p >= 0; --p) {
if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid])
{ // If is Add it work?
SetPlayerColor(playerid,COLOUR_RED);
SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF);
}
else if(GetPlayerWantedLevel(p) == 0 || !PoliceDuty[playerid] ) // Teste it
{
SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color
SetPlayerToTeamColour(p);
}
}
}
|
How to fix the code current that how the code look messes