Quwer Posted June 9, 2010 Posted June 9, 2010 How to make a display of an image with the number of players such as HP: 200 hp the player has such a picture is going to die yet another goes to each player's amount of life thing ala the new hud?
dzek (varez) Posted June 9, 2010 Posted June 9, 2010 http://en.wikipedia.org/wiki/Punctuation or your native http://pl.wikipedia.org/wiki/Interpunkcja you are too lazy to use it, im too lazy to answer right now, maybe later ;p
dzek (varez) Posted June 10, 2010 Posted June 10, 2010 google translate uses punctation as well - if your ORIGINAL text is correctly written - your translated text will be more precise. explain your problem using different words btw: you know anything about LUA?
Quwer Posted June 11, 2010 Author Posted June 11, 2010 I'm weak in lua.Try my words: How do a simple script who create images on screen it was be changed with player health. -Player hp = 200 (standard max health) images 1 -Player hp = 170 images 2 -Player hp = 140 images 3 -Player hp = 120 images 4 -Player hp = 90.... When he die images 7 did you understoond ?
kevin11 Posted June 11, 2010 Posted June 11, 2010 maybe its better u take a screenshot and add the things u want with paint so we see what u mean
dzek (varez) Posted June 11, 2010 Posted June 11, 2010 i got his idea. addEventHandler("onClientPedDamage", getLocalPlayer(), function() local hp = getElementHealth(source) if (hp >= 170) then -- change to and create image 1 (full hp) elseif (hp < 170 and >= 140) then -- image 2 elseif (hp < 140 and >= 110) then -- image 3 elseif (hp < 110 and >= 80) then -- image 4 elseif (hp < 80 and >= 50) then -- image 5 elseif (hp < 50 and >= 20) then -- image 6 elseif (hp < 20) then -- almost dying player image end end) addEventHandler("onClientPlayerSpawn", getLocalPlayer(), function() -- change to full HP image end) addEventHandler("onClientPedWasted", getLocalPlayer(), function() -- change to dead player image end) for creating images use: my_image = guiCreateStaticImage(arguments,goes,here,...) for changing image use: guiStaticImageLoadImage(check_wiki,to_see_arguments_list)
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