#RooTs Posted September 26, 2014 Author Posted September 26, 2014 @Hex547, como add health 200% ?? Example: local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end else local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health2/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end Look file name ( health and health2 ). note (else in script) as an example
#RooTs Posted September 26, 2014 Author Posted September 26, 2014 getPedStat or getPedMaxHealth this does not help me
xeon17 Posted September 26, 2014 Posted September 26, 2014 getPedStat or getPedMaxHealth this does not help me Eh? He given you what you need, this isn't a request forum. Go learn scripting
UnG//Macaus Posted September 26, 2014 Posted September 26, 2014 this does not help me We are here to help solve your mistakes, and not to do everything for you show what you have tried and we will help you solve your errors
#Samy Posted September 27, 2014 Posted September 27, 2014 I and lekroots not managed solve, someone help? I'll send examples Bugs in Health 100%~~200% bugs in count Health 5 and 5 for 1 and 1 bugs in count Armor 5 and 5 for 1 and 1 the script is: --Bugs in Health 100%~~200% --bugs in count Health 5 and 5 for 1 and 1 local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end -- account 5 and 5 for 1 and 1 local armor = math.ceil(getPedArmor(localPlayer)) if health > 0 and armor > 0 then dxDrawImage(x*Alargura, y*Aaltura, largura, altura, "armor/"..(math.ceil(getPedArmor(localPlayer)/5)*5)..".png" ) end Look the script viewtopic.php?f=108&t=81134
DNL291 Posted September 27, 2014 Posted September 27, 2014 Use this function: https://wiki.multitheftauto.com/wiki/GetPedMaxHealth If you have any problem with it just post here.
#RooTs Posted September 27, 2014 Author Posted September 27, 2014 Use this function: https://wiki.multitheftauto.com/wiki/GetPedMaxHealthIf you have any problem with it just post here. account 5 and 5 for 1 and 1 ??
#Samy Posted September 27, 2014 Posted September 27, 2014 calm down buddy, every developer is even ignorant, they do not have the patience for beginners original command ..(math.ceil(getElementHealth(localPlayer)/5)*5).. try this I think is this, a simple math to account 1 of 1 in Health local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/1)*1)..".png" ) end now adds to Health 200% I do not already know, sorry
xeon17 Posted September 27, 2014 Posted September 27, 2014 calm down buddy, every developer is even ignorant, they do not have the patience for beginners As far i remember he is a scripter more than two years, and check his resources on community. Begginers doing stuff like creating a gate,bases etc etc not creating huds/shaders. Begginer nah? Noob? yes
#RooTs Posted September 27, 2014 Author Posted September 27, 2014 @#Samy, account 1 and 1 not work ..(math.ceil(getElementHealth(localPlayer)/1)*1).. the script is local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end does anyone know the formula for this? I'll leave it as is
King12 Posted September 27, 2014 Posted September 27, 2014 @#Samy, account 1 and 1 not work ..(math.ceil(getElementHealth(localPlayer)/1)*1).. the script is local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end does anyone know the formula for this? I'll leave it as is not sure but maybe this? local health = math.ceil(getElementHealth(localPlayer)) if health > 100 then return elseif health < 100 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now