Custom Health Bars - 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: Custom Health Bars (
/showthread.php?tid=632711)
Custom Health Bars -
oSAINTo - 18.04.2017
I'm just wondering how this was accomplished. I know it uses 3DTextLabels, but I have no idea where to start. I'd love to have this along with armor bars.
Re: Custom Health Bars -
oSAINTo - 18.04.2017
bump
Re: Custom Health Bars -
Logic_ - 18.04.2017
3D text labels.
Re: Custom Health Bars -
oSAINTo - 18.04.2017
Quote:
Originally Posted by Logic_
3D text labels.
|
I already know that. Yet, I don't know where to start about getting it to update the label and such each time they lose health or something.
Re: Custom Health Bars -
Fairuz - 18.04.2017
OnPlayerTakeDamage, I guess.
I suggest you not to use OnPlayerUpdate
Re: Custom Health Bars -
oSAINTo - 18.04.2017
Quote:
Originally Posted by Dice_
OnPlayerTakeDamage, I guess.
I suggest you not to use OnPlayerUpdate
|
I thought so, if I did it under OnPlayerUpdate, it'd lag the server out.
Re: Custom Health Bars -
coool - 18.04.2017
But if you want for vehicles then: start a timer when player gets in, Don't forget to inherit the vehicle id. Then kill the timer when player gets out.