ShowPlayerMarkerForPlayer problem
#5

Well, if you want this:

"I want it that you can see your teammates, but you cant see enemies"

You have to explain that in the first post and don't say that we didn't understand you.

Try that:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_BLUE) {
        TeamBlueSettings(playerid);
        //labelblue[playerid] = Create3DTextLabel("Team Blue",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        //Attach3DTextLabelToPlayer(labelblue[playerid],playerid,0.0, 0.0, 0.7);
    }
    if(gTeam[playerid] == TEAM_RED) {
        TeamRedSettings(playerid);
        //labelred[playerid] = Create3DTextLabel("Team Red",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        //Attach3DTextLabelToPlayer(labelred[playerid],playerid,0.0, 0.0, 0.7);
    }
    Spawned[playerid] = 1;
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Spawned[i] == 1)
            {
                if(gTeam[i] == gTeam[playerid])
                {
                    SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i));
                    SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid));
                }
                else
                {
                    SetPlayerMarkerForPlayer(playerid, i,  0xFFFFFF00);
                    SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
                }
            }
        }
    }
        return 1;
}
Reply


Messages In This Thread
ShowPlayerMarkerForPlayer problem - by [BLS]Touchdown - 08.08.2011, 15:27
Re: ShowPlayerMarkerForPlayer problem - by Jafet_Macario - 08.08.2011, 15:34
AW: ShowPlayerMarkerForPlayer problem - by [BLS]Touchdown - 08.08.2011, 16:29
AW: ShowPlayerMarkerForPlayer problem - by [BLS]Touchdown - 08.08.2011, 17:11
Re: ShowPlayerMarkerForPlayer problem - by OwlCity - 08.08.2011, 17:19
AW: ShowPlayerMarkerForPlayer problem - by [BLS]Touchdown - 08.08.2011, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)