Not able to see the opposite teams name tags?
#10

You guys are pretty crazy's, Why the hell PUT 1 LOOP INSIDE OF ANOTHER LOOP?

This function below may work.
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
   for(new i = 0;i<MAX_PLAYERS;i++)
   {
      if(IsPlayerCOnnected(i))
      {
          if(GetPlayerTeam(i) == GetPlayerTeam(i)) // comparing their teams, if they are equal, they'll be able to see.
          {
             ShowPlayerNameTagForPlayer(x, i, true);
          }
          else return ShowPlayerNameTagForPlayer(x, i, false); // if they aren't they will not be able to see.
      }
   }
   return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)