25.04.2014, 23:57
I have this but when player gets out from the mini map and comes back, or another interior / virtual world then the marker shows, how can i do it so it hides all the time until player goes off duty
pawn Код:
// in on duty
for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, (GetPlayerCnRColor(playerid) & 0xFFFFFF00));
// in off duty
if(GetPlayerCnRColor(playerid) == 0xFFFFFF00)for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFFFF);
else for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, GetPlayerCnRColor(playerid) | 0x000000FF);