Jump to content

Zombie ExtraHealth Error


#Humber*

Recommended Posts

Hola a todos, tengo un error con este script, nada en debug

function extrah( source ) 
    if (source == "zombie") then 
    if getElementModel ( source ) == 162 then 
        exports.extrahealth:setElementExtraHealt(source, 500) 
    end 
    end 
end 
addEventHandler("onZombieSpawn", getRootElement(), extrah) 

Link to comment
  • 1 month later...
  
function extrah( source ) 
    if (source == "zombie") then 
    if getElementModel ( source ) == 162 then 
        exports.extrahealth:setElementExtraHealth(source, 500) 
    end 
    end 
end 
addEvent ( "onZombieSpawn", true ) 
addEventHandler("onZombieSpawn", getRootElement(), extrah) 
  

Link to comment
  
function extrah( source ) 
    if (source == "zombie") then 
    if getElementModel ( source ) == 162 then 
        exports.extrahealth:setElementExtraHealth(source, 500) 
    end 
    end 
end 
addEvent ( "onZombieSpawn", true ) 
addEventHandler("onZombieSpawn", getRootElement(), extrah) 
  

Link to comment
addEvent("onZombieSpawn", true) 
function extrah() 
     if getElementData(source, "zombie") then -- not necessary 
          if getElementModel(source) == 162 then 
               exports.extrahealth:setElementExtraHealth(source, 500) 
          end 
     end 
end 
addEventHandler("onZombieSpawn", root, extrah) 

Edited by Guest
Link to comment
addEvent("onZombieSpawn", true) 
function extrah() 
     if getElementData(source, "zombie") then -- not necessary 
          if getElementModel(source) == 162 then 
               exports.extrahealth:setElementExtraHealth(source, 500) 
          end 
     end 
end 
addEventHandler("onZombieSpawn", root, extrah) 

Edited by Guest
Link to comment
  • 5 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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