SA-MP Forums Archive
Sky's Healthbar - 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: Sky's Healthbar (/showthread.php?tid=636952)



Sky's Healthbar - aoky - 06.07.2017

Is there anyway to remove the healthbar in Sky's plugin/weaponconfig.inc, not sure which it is - but I'm looking to add the default healthbar back.


Re: Sky's Healthbar - Meller - 06.07.2017

Probably wanna check the PAWN code for SetNameTagDistance etc? Shouldn't be too hard.


Re: Sky's Healthbar - aoky - 06.07.2017

Quote:
Originally Posted by Meller
Посмотреть сообщение
Probably wanna check the PAWN code for SetNameTagDistance etc? Shouldn't be too hard.
I'm talking about the healthbar in the top right corner, it's not the original.


Re: Sky's Healthbar - Meller - 06.07.2017

Yeah, it sounds a hundred percent to me that it's a normal Player Textdraws, have you got a link for me to check the include?


Re: Sky's Healthbar - aoky - 06.07.2017

https://github.com/oscar-broman/samp-weapon-config
or
https://github.com/oscar-broman/SKY

It's one of them bro, appreciate the help.


Re: Sky's Healthbar - Meller - 06.07.2017

I don't usually do something like this, but here's a quick fix:
Go to line 4068 and change TextDrawShowForPlayer to TextDrawHideForPlayer, and then make line 4085 a comment, (UpdateHealthBar(playerid, true)


Re: Sky's Healthbar - aoky - 06.07.2017

Thanks a lot, I really do appreciate what you have done.


Re: Sky's Healthbar - Meller - 06.07.2017

No worries mate, enjoy. :)


Re: Sky's Healthbar - Jefff - 06.07.2017

you cant remove that TD because its a trick with SetPlayerHealth and if you remove, you will see full health bar all the time ( see SetPlayerHealth(playerid, 8000000.0 + float(health)); part )


Re: Sky's Healthbar - Meller - 06.07.2017

Quote:
Originally Posted by Jefff
Посмотреть сообщение
you cant remove that TD because its a trick with SetPlayerHealth and if you remove, you will see full health bar all the time ( see SetPlayerHealth(playerid, 8000000.0 + float(health)); part )
Nah, that only happens under UpdateHealth or whatever the function was, which he commented away, making no use of it.