Quote:
Originally Posted by maramizo
Tell me if it works, I used zcmd include.
pawn Код:
CMD:mapvision(playerid, params[]) { new mapvisionz; if(PlayerTeam[playerid] == 1 && mapvisionz == 0) { for(new i = 0; i < MAX_PLAYERS; i++) if(PlayerTeam[i] != 1 && IsPlayerConnected(i)) { SetPlayerMarkerForPlayer(playerid, i, 0xFF0000FF); SendClientMessage(playerid, 0xFFFFFFF, "You can now smell humans on your minimap.. Sniff Sniff."); LimitPlayerMarkerRadius(1000.0); mapvisionz = 1; return 1; } } else if(mapvisionz == 1) { LimitPlayerMarkerRadius(1.0); SendClientMessage(playerid, 0xFFFFFFF, "You can't smell anymore, something stuck in your nose?"); mapvisionz = 0; return 1; } }
|
I took a fast look at that and kinda looks like that will show YOUR map icon for the others o.O
I would do something like :
pawn Код:
SetPlayerColor(playerid, 0xFFFFFFF);
EDIT: took a better look at it and nvm lol