PlayerMarkers
#1

Is it possible to make something where gTeam Survivor cannot see gTeam Animal and gTeam Animal can see gTeam Survivor?

+rep for whoever can help me.
Reply
#2

damn just look down few topics it was discussed already !!!

https://sampforum.blast.hk/showthread.php?tid=304340

lrn2search
Reply
#3

I already read that, it has nothing to do with what I'm speaking of.

I don't have markers for either gTeams.

Basically I don't want Survivors to see Survivors markers, I just want Animals to see Survivors.
Reply
#4

Use a loop with this: SetPlayerMarkerForPlayer
Here is an example:
pawn Код:
stock HideTeamMarkers(playerid)
{
    for(new x; x < MAX_PLAYERS; x++) if(IsPlayerConnected(x))
    {
        if(gTeam[x] == gTeam[playerid]) // Change this part the way you like
        {
            SetPlayerMarkerForPlayer(playerid, x, (GetPlayerColor(x) & 0xFFFFFF00));
            SetPlayerMarkerForPlayer(x, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
        }
    }
    return 1;
}
^ Code by Lorenc_. Use it under OnPlayerSpawn then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)