Castillo Posted February 4, 2012 Share Posted February 4, 2012 function setOnFire(attacker, attackerweapon, bodypart, loss) if (attackerweapon == 6) and (loss > 1) then setPedOnFire(source, true) end end addEventHandler ("onClientPlayerDamage", getRootElement(), setOnFire) This is client side only. Link to comment
zombienation Posted February 4, 2012 Author Share Posted February 4, 2012 cool it works thanks man Link to comment
zombienation Posted February 6, 2012 Author Share Posted February 6, 2012 is there a possibility to use the fire effect on zombies? Link to comment
Castillo Posted February 6, 2012 Share Posted February 6, 2012 function setOnFire(attacker, attackerweapon, bodypart, loss) if (getElementData(source,"zombie") and attackerweapon == 6) and (loss > 1) then setPedOnFire(source, true) end end addEventHandler ("onClientPedDamage", getRootElement(), setOnFire) 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