Name above player
#1

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

not possible I think.
Reply
#3

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.
Reply
#4

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

use this
Код:
SetNameTagDrawDistance(distance);
Reply
#6

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

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

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

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
Reply
#10

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

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.
Reply
#12

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)