Sky's Healthbar
#1

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.
Reply
#2

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

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.
Reply
#4

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?
Reply
#5

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

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

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)
Reply
#7

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

No worries mate, enjoy. :)
Reply
#9

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 )
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)