22.08.2015, 16:44
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); } } }