SA-MP Forums Archive
Name above player - 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 above player (/showthread.php?tid=377403)



Name above player - fanatycoland - 14.09.2012

Hi
What should I do see players' name from a distance of more than ?


Re: Name above player - _Khaled_ - 14.09.2012

not possible I think.


Re: Name above player - mamorunl - 14.09.2012

I believe they are the so-called 'nametags'. You cannot change the distance but you can imitate them.

If you remove the name tag with SetPlayerNameTagForPlayer(); and you create your own name tag with Create3DTextLabel() and set the draw distance of that really high, you'd have (about) the same effect.


Re: Name above player - fanatycoland - 14.09.2012

i mean this
http://imageshack.us/a/img856/6339/samp054ql.png


Re: Name above player - detter - 14.09.2012

use this
Код:
SetNameTagDrawDistance(distance);



Re: Name above player - mamorunl - 14.09.2012

Quote:
Originally Posted by detter
Посмотреть сообщение
use this
Код:
SetNameTagDrawDistance(distance);
There actually was a function like that? lol... Didn't know that xD


Re: Name above player - C00K13M0N$73R - 14.09.2012

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
There actually was a function like that? lol... Didn't know that xD
https://sampwiki.blast.hk/wiki/SetNameTagDrawDistance


Re: Name above player - mamorunl - 14.09.2012

Quote:
Originally Posted by C00K13M0N$73R
Посмотреть сообщение
Thank you, learned something by a question of someone else xD Always great


Re: Name above player - fanatycoland - 15.09.2012

I don't have such a thing in gamemod. I've added and may not have been solved nothing, we've put 70 instead of distance


Re: Name above player - detter - 15.09.2012

-,-
that is just for you to know what goes in there


Re: Name above player - mamorunl - 15.09.2012

Quote:
Originally Posted by fanatycoland
Посмотреть сообщение
I don't have such a thing in gamemod. I've added and may not have been solved nothing, we've put 70 instead of distance
The distance is 70 units by default. As cookiemonster has posted with his wiki link. If you had read that you wouldve known you should have put up a higher distance.

Then: The command goes in OnGameModeInit() if you didn't know.


Re: Name above player - fanatycoland - 16.09.2012

i put it like this OnGameModeInit(200) and didn`t work...


Re: Name above player - mamorunl - 16.09.2012

OnGamemodeinit is a callback.. you put the functio INSIDE the callback.