SA-MP Forums Archive
health bar - 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: health bar (/showthread.php?tid=633347)



health bar - crukk11 - 29.04.2017

i download this filterscript

https://sampforum.blast.hk/showthread.php?tid=156328

it work this filterscript but it cannot work when i have this include when i add on my gamemode

https://sampforum.blast.hk/showthread.php?tid=563387

how to fix this


Re: health bar - Wolfe - 29.04.2017

It's because Slices include uses a textdraw for the health bar and so does the other one. You can re-script the code in slices include to have colors if you wanted, but it'd make the other include useless.


Re: health bar - JessThompson - 29.04.2017

If you want to just change the solid color, because within slices the textdraw stays one solid color you would need to find this line in slices include

Код:
TextDrawBoxColor  (s_HealthBarBackground, 0x5A0C10FF);
and change the hex.

If you wanted it to change color depending on the players health you would need to recode slices code