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



Sprites above player? - Greggu - 28.02.2016

Hi, i'm wondering if it's possible to put sprites above players like it's possible to attach 3D text labels to them, in a similar way the hourglass sprite appears above a player when they're paused.

For example, if a player aims at another player, the player being aimed at will have a red blip on his head.

Would such a thing be possible?


Re: Sprites above player? - Chilli9434 - 28.02.2016

I don't think this is possible, there may be an include or plugin in the depths of the forums that allows you to do something similar but I highly doubt it.

Sorry!


Re: Sprites above player? - FSAOskar - 28.02.2016

You could create a textdraw with the desired sprite and then calculate the 2D screen coordinates from the 3D world coordinates but that would be only a 2D solution.