12.09.2015, 15:24
If the player is a Police officer how do i get the color blue but i get the red color to everyone to see
OnPlayerUpdate:
OnPlayerUpdate:
Код:
forward IsWanted(playerid); public IsWanted(playerid) { if (Team[playerid] == TEAM_COP) for (new PlayerToCheck; PlayerToCheck < MAX_PLAYERS; PlayerToCheck++) { if (IsPlayerConnected(PlayerToCheck)) { //if (GetPlayerWantedLevel(PlayerToCheck) > 0) && PoliceDuty[playerid]) if(GetPlayerWantedLevel(PlayerToCheck) > 0 && PoliceDuty[playerid]) { if(Team[playerid] == TEAM_COP) { SetPlayerColor(PlayerToCheck, COLOUR_BLUE); // set officer color } SetPlayerColor(PlayerToCheck,COLOUR_RED); SetPlayerMarkerForPlayer(playerid, PlayerToCheck, 0xFF0000FF); } else if(GetPlayerWantedLevel(PlayerToCheck) == 0 || !PoliceDuty[playerid]) { SetPlayerToTeamColour(PlayerToCheck); } } } }