Raised This Month: $51 Target: $400
 12% 

Hud Health Bar


Post New Thread Reply   
 
Thread Tools Display Modes
Ryokin
Senior Member
Join Date: Jan 2010
Old 04-10-2010 , 23:42   Re: Hud Health Bar
Reply With Quote #31

Can you fix bug ? Somtimes player respawned , they dont see the hud , what's wrong?
Ryokin is offline
eskimoz
Junior Member
Join Date: Jan 2011
Location: Kiev|UA
Old 02-02-2011 , 06:27   Re: Hud Health Bar
Reply With Quote #32

Quote:
Originally Posted by sila View Post
Your plugin is like green line, can u make to be like red line at this screenshot .

http://i39.tinypic.com/2hcjihv.jpg


Also if i use amx_tsay or amx_csay hud health bar disappears until i lose some hp or new round start.
Code:
new gbr[101]
new health_percent
new gBar[ ] = "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII";

#define BAR_SIZE 2
#define BARFORMAT1	0, 	255,  0, 	0.04, 	0.20, 	0, 6.0, 999.9, 0.0, 0.0, 2
#define BARFORMAT2	0, 	255,  0, 	0.0402, 0.20, 	0, 6.0, 999.9, 0.0, 0.0, 2


new gSyncMessageBAR1
new gSyncMessageBAR2


public plugin_init( ) 
{
	gSyncMessageBAR1 = CreateHudSyncObj()
	gSyncMessageBAR2 = CreateHudSyncObj()
}
your function should look like this:
Code:
health_percent = get_user_health(id)
formatex(gbr, 101, "%s",gBar[ min( 100, 100 - health_percent / BAR_SIZE ) ]) 

set_hudmessage(BARFORMAT1)
ShowSyncHudMsg(id,gSyncMessageBAR1,gbr)
set_hudmessage(BARFORMAT2)
ShowSyncHudMsg(id,gSyncMessageBAR2,gbr)
eskimoz is offline
Send a message via ICQ to eskimoz
Old 07-22-2013, 01:26
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Marinovv327
Member
Join Date: Jan 2018
Old 05-24-2021 , 02:09   Re: Hud Health Bar
Reply With Quote #33

I'm not sure this plugin is suitable for any type of server. The size of the HUD health is too large, even unbearable.
Marinovv327 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode