Players name
#1

Is there any way to put a message above someones player name?

dont know how to do it...
Reply
#2

Look at this function here.

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#4

How do I ckeep the chat bubble without it disapearing?
Reply
#5

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
How do I ckeep the chat bubble without it disapearing?
It's not meant for that use, you should use Attach3DTextLabelToPlayer like I suggested.

Quote:
Originally Posted by ******
Посмотреть сообщение
Put a longer time on it - you can go up to about 23 days IIRC.
Yes you could do that, but I would still use Attach3DTextLabelToPlayer.
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
Put a longer time on it - you can go up to about 23 days IIRC.
100.0, 10000 (is the 10000) the timer? or the 100.0?
Reply
#7

EDIT

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
Worked it out.... Then when I want it to expire? Is there a way to do that, if I use it on a command, then how would i remove it?
I think you just use 'SetPlayerChatBubble' again and it will update it.
Reply
#8

Quote:
Originally Posted by Bicentric
Посмотреть сообщение
The 100.0 is a float number, the integer is the timer. So yes 10000 is.

You can see it here.

pawn Код:
(playerid, text[], color, Float:drawdistance, expiretime)
How do I then delete it after they run /aduty, to take it off?

I have it done for when they go on, but how to take it off? once they go off aduty
Reply
#9

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
How do I then delete it after they run /aduty, to take it off?

I have it done for when they go on, but how to take it off? once they go off aduty
I updated my previous post, if you don't want there to be anything, just enter a null text into the 'text[]' parameter I believe.
Reply
#10

If you want to have a constant message above their head, use a 3D text in combination with https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)