SA-MP Forums Archive
how to hide player names - 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: how to hide player names (/showthread.php?tid=460999)



how to hide player names - recor - 31.08.2013

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


oplease help!!


Re: how to hide player names - Skribblez - 31.08.2013

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;
}



Respuesta: how to hide player names - recor - 31.08.2013

i dont get it i mean how to set the distence ??


Re: how to hide player names - Skribblez - 31.08.2013

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.


Re : how to hide player names - Matnix - 31.08.2013

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


Respuesta: how to hide player names - recor - 31.08.2013

pls code for example pls!!


Re: how to hide player names - Skribblez - 31.08.2013

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.