25.06.2012, 15:16
You guys are pretty crazy's, Why the hell PUT 1 LOOP INSIDE OF ANOTHER LOOP?
This function below may work.
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;
}