Name Tags.
#1

How come this is not removing the nametag for a player?

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    ShowPlayerNameTagForPlayer(playerid, i, false);
}
When I'm in the server, the nametags are constantly there. What's wrong?

Thanks.
Reply
#2

You read the sa-mp wiki ? I mean this ?

According to that:

Quote:

Important Note: ShowNameTags must be set to 1 to be able to show name tags with ShowPlayerNameTagForPlayer, that means that in order to be effective you need to ShowPlayerNameTagForPlayer(forplayerid, playerid, 0) ahead of time(OnPlayerStreamIn is a good spot).

And don't forget, you'll also need to hide player name tag for players who connects, under the OnPlayerConnect callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)