#Humber* Posted February 10, 2016 Share Posted February 10, 2016 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
Anubhav Posted April 8, 2016 Share Posted April 8, 2016 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
Anubhav Posted April 8, 2016 Share Posted April 8, 2016 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
undefined Posted April 9, 2016 Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Guest Link to comment
undefined Posted April 9, 2016 Share Posted April 9, 2016 (edited) 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 April 9, 2016 by Guest Link to comment
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