Anyway how to do this wanted color for cops to see
#6

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
It's working but when i type /duty 2 times. i'm off duty but the color not resting to
Код:
SetPlayerToTeamColour
Код:
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)
	 {
        SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); 
        SetPlayerToTeamColour(p);
        }
     }
     }
PHP код:
if(Team[playerid] == TEAM_COP)
     {
     for(new 
GetPlayerPoolSize(); >= 0; --p) {
      if(
GetPlayerWantedLevel(p) >= && PoliceDuty[playerid])
      { 
// If is Add it work?
        
SetPlayerColor(playerid,COLOUR_RED);
        
SetPlayerMarkerForPlayer(pplayerid0xFF0000FF);
     }
     else if(
GetPlayerWantedLevel(p) == || !PoliceDuty[playerid] ) // Teste it
     
{
        
SetPlayerMarkerForPlayer(pplayeridCOLOUR_RED); // This is default color! Removed you team color
        
SetPlayerToTeamColour(p);
        }
     }
     } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)