10.07.2013, 21:49
(
Последний раз редактировалось kurt225; 10.07.2013 в 22:32.
)
Thank you Sandiel & Martin !! 
I've put comments in your code, can you tell me if I understood ? I'm not on my computer so I can't test the code... Sorry to annoy you with that, but I'm too impatient !

I've put comments in your code, can you tell me if I understood ? I'm not on my computer so I can't test the code... Sorry to annoy you with that, but I'm too impatient !
Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(gTeam[playerid] == NINJA) // gTeam[playerid] represents me ?
{
if(gTeam[i] == NINJA && playerid != i) // gTeam[i] represents another player and we check if the player id of this other player does not match with mine ?
{
// Show NameTags
ShowPlayerNameTagForPlayer(playerid, i, true);
}
else if(gTeam[i] == LAMBDA ) // Is it good to put it ?
{
// Hide NameTags ?
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
return 1;
}

