SA-MP Forums Archive
Name Tags. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Name Tags. (/showthread.php?tid=406391)



Name Tags. - JoelR - 10.01.2013

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.


Re: Name Tags. - antonio112 - 10.01.2013

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.