Need help with name Tags and Map Blips
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerToTeamColor(playerid);

    if(gTeam[playerid] == TEAM_GREEN) {
      GameTextForPlayer(playerid,
          "~b~Kill Spetznatz",
          6000,5);
    }
    else if(gTeam[playerid] == TEAM_BLUE) {
      GameTextForPlayer(playerid,
          "~b~Kill USA",
          6000,5);
    }
    for (new i = 0, max = GetMaxPlayers(); i < max; i++)
        {
            if (i != playerid)
            {
                if (playerid's team is not the same as i's team)
                {
                    // Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used
                    SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
               
                    ShowPlayerNameTagForPlayer(i, playerid, false);
                }
            }
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Need help with name Tags and Map Blips - by Jeroen52 - 27.04.2010, 16:40
Re: Need help with name Tags and Map Blips - by dice7 - 27.04.2010, 16:48
Re: Need help with name Tags and Map Blips - by Jeroen52 - 27.04.2010, 19:02
Re: Need help with name Tags and Map Blips - by Jeroen52 - 29.04.2010, 11:36
Re: Need help with name Tags and Map Blips - by Retardedwolf - 29.04.2010, 11:46
Re: Need help with name Tags and Map Blips - by Jeroen52 - 29.04.2010, 13:41
Re: Need help with name Tags and Map Blips - by Jeroen52 - 29.04.2010, 13:48
Re: Need help with name Tags and Map Blips - by MadeMan - 29.04.2010, 14:31
Re: Need help with name Tags and Map Blips - by Jeroen52 - 29.04.2010, 15:42
Re: Need help with name Tags and Map Blips - by Jeroen52 - 29.04.2010, 15:51

Forum Jump:


Users browsing this thread: 2 Guest(s)