22.01.2017, 23:57
If a player wanted. he get the red color but it's display for all players. I don't want to display it for teams, i wanted it to display it to playerid
should be like but its now working?
Код:
public OnPlayerUpdate(playerid) { if(GetPlayerWantedLevel(playerid) > 0) // Check if player have wanted stars { SetPlayerMarkerForPlayer(playerid, playerid, COLOUR_RED); // set criminals color SetPlayerColor(playerid, COLOUR_RED); <--- this display to all players } else if(GetPlayerWantedLevel(playerid) == 0) // If player have 0 stars. it sets player colour back. { SetPlayerToTeamColour(playerid); //restart player colour } }
Код:
if(playerid) { if(GetPlayerWantedLevel(playerid) > 0) { SetPlayerMarkerForPlayer(playerid, playerid, COLOUR_RED); // set criminals color SetPlayerColor(playerid, COLOUR_RED); } else if(GetPlayerWantedLevel(playerid) == 0) { SetPlayerToTeamColour(playerid); // restart criminals team color } }