20.11.2019, 02:58
I have this function:
It is called in function every 1 second, check if player is a COP, and if player is a COP show to others COPs on radar...
It is already working, but there is a problem, if the partner go out of the player range, map icon show always to north
Even if the partner is not on the north
There is a way to fix it?
My server is already:
pawn Code:
forward TeamRadar(playerid); public TeamRadar(playerid) {
if(IsACop(playerid)) {
foreach(new i : Player) {
if(IsACop(i)) {
SetPlayerMarkerForPlayer(i, playerid, COLOR_LIMEGREEN);
}
}
}
}
It is already working, but there is a problem, if the partner go out of the player range, map icon show always to north
Even if the partner is not on the north
There is a way to fix it?
My server is already:
pawn Code:
ShowPlayerMarkers(1);