Jump to content

Hacer que un auto no pueda explotar


Pipeekz

Recommended Posts

Te dejo el código usando la idea de Solid,

  
function checkVehicleHealth() 
    if getElementHealth(source) < 300 then 
        setVehicleDamageProof(source,true) 
    else 
        setVehicleDamageProof(source,false) 
    end 
end 
addEventHandler("onVehicleDamage",root,checkVehicleHealth) 
  

Lamento decirte que no funcionará al 100% siempre, debido a que no se exactamente cuando es que se incendia el vehículo :/

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...