Show player name tag..
#5

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 !

Код:
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;
}
Reply


Messages In This Thread
Show player name tag.. - by kurt225 - 10.07.2013, 21:00
Re: Show player name tag.. - by Mmartin - 10.07.2013, 21:04
Re: Show player name tag.. - by kurt225 - 10.07.2013, 21:25
Re: Show player name tag.. - by Sandiel - 10.07.2013, 21:44
Re: Show player name tag.. - by kurt225 - 10.07.2013, 21:49
Re: Show player name tag.. - by Mmartin - 10.07.2013, 22:09
Re: Show player name tag.. - by Sandiel - 10.07.2013, 22:14
Re: Show player name tag.. - by kurt225 - 10.07.2013, 22:38
Re: Show player name tag.. - by Mmartin - 11.07.2013, 07:09
Re: Show player name tag.. - by kurt225 - 11.07.2013, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)