SA-MP Forums Archive
Players name - 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: Players name (/showthread.php?tid=395780)



Players name - UnknownGamer - 27.11.2012

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

dont know how to do it...


Re: Players name - Bicentric - 27.11.2012

Look at this function here.

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer


Re: Players name - Djole1337 - 27.11.2012

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble


Re: Players name - UnknownGamer - 27.11.2012

How do I ckeep the chat bubble without it disapearing?


Re: Players name - Bicentric - 27.11.2012

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.


Re: Players name - UnknownGamer - 27.11.2012

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?


Re: Players name - Bicentric - 27.11.2012

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.


Re: Players name - UnknownGamer - 27.11.2012

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


Re: Players name - Bicentric - 27.11.2012

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.


Re: Players name - Scenario - 27.11.2012

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