Jump to content

makkocska

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Gang
    night

makkocska's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. I mean if its already drawed on players screen than dont draw again.
  2. else -> do nothing . is that possible ?
  3. Hi guys ! I wrote one program in lua, and i'm very interested in what event or something else if its exists who check its already drawed in HUD. I mean . : local screenX,screenY = guiGetScreenSize() function pic() guiCreateStaticImage( screenX - 377, 38, 232/2, 232/2, "pic/pic.ong") end what event or something else check is already drawed, and if its already drawed not draw again.
  4. doesnt work with dxDrawImage
  5. okay its work, thank you but actually, now if the player health is >=80 debugscript 3 spam me : bad element pointer @ 'destroyElement' how can i fix it ? I mean .. if >=80 and once restarted dont restart again only if lower than 80 . !
  6. Hi guys! I'am a begginer lua scripter,so please "look away from my mistakes" ... So there is a function -- > delete images, but i cant fix it because its only run once..when i start it. How can i do that: check every seconds and if player health more than 80 - > do the destroy.. function imagedown() local HP = getElementHealth ( getLocalPlayer() ) if(HP >= 80) then destroyElement(pic1) destroyElement(pic2) destroyElement(pic3) destroyElement(pic4) destroyElement(pic5) end end addEventHandler('onClientResourceStart', resourceRoot, imagedown) Thank you!
×
×
  • Create New...