22.02.2011, 15:18
Hello.Making zombie server.i want that zombies can see humans in minimap, but humans cant see zombies in minimap.
Any ideas, how to do it?
Any ideas, how to do it?
#define TEAM_ZOMBIE 1
if(PlayerTeam[playerid] == 1)
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;
}
}
Tell me if it works, I used zcmd include.
pawn Код:
|
SetPlayerColor(playerid, 0xFFFFFFF);