how to hide player names
#1

yes how can u hide them nd u se them only from a certain distance?


oplease help!!
Reply
#2

Here you go:
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
    ShowPlayerNameTagForPlayer(playerid, forplayerid, 1); // 1 means show, 0 hide name tag
    ShowPlayerNameTagForPlayer(forplayerid, playerid, 1);
    return 1;
}
Reply
#3

i dont get it i mean how to set the distence ??
Reply
#4

You could try using SetNameTagDrawDistance which unfortunately doesn't work for me then still follow the code I've posted above but change 1 to 0 for hiding the name tag.
Reply
#5

So you can simply use this function, SetNameTagDrawDistance. (he is fast ^)
Reply
#6

pls code for example pls!!
Reply
#7

Just put it under OnGameModeInit, something like this:
pawn Код:
public OnGameModeInit()
{
    SetNameTagDrawDistance(30.0);
    return 1;
}
Edit: My last post on your topic has a link on it, please read and you'll know more about it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)