SA-MP Forums Archive
Attaching a label to a bodypart? - 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: Attaching a label to a bodypart? (/showthread.php?tid=505823)



Attaching a label to a bodypart? - Dokins - 10.04.2014

Is it possible to do what title says?

Any kind of label?

I'm trying to do this when a player is hit on a specific body part.

If not, do you have any suggestions for an alternative?


Re: Attaching a label to a bodypart? - Niko_boy - 10.04.2014

Yes you can do it by creating like 5 3D textdraw or , by specifiying Coordinate / Offsets of body parts in array and changing them accordign to body hit ( idk if u can change directly through a native function ,but you can always do it by Delete and recreate )
then set text etc..
just a hint


Re: Attaching a label to a bodypart? - Dokins - 10.04.2014

What about allowing other people seeing the bodypart hit?


Re: Attaching a label to a bodypart? - Niko_boy - 10.04.2014

Quote:
Originally Posted by Dokins
Посмотреть сообщение
What about allowing other people seeing the bodypart hit?
Yep , when you attach 3D text other people will be able to see it , if done correctly.


Re: Attaching a label to a bodypart? - Dokins - 10.04.2014

How can I get the offset, is it skin specific or is every model the same offsets?


Re: Attaching a label to a bodypart? - Niko_boy - 10.04.2014

Quote:
Originally Posted by Dokins
Посмотреть сообщение
How can I get the offset, is it skin specific or is every model the same offsets?
Well for 3D text it isnt specfic. You have to move X Y Z from here:
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);

its pretty easy to do so tbh


Re: Attaching a label to a bodypart? - Dokins - 10.04.2014

Thank you.