Jump to content

[Ayuda] Cambiar Data de un Ped al Resibir Daño


Narutimmy

Recommended Posts

Hola como puedo hacer que cuando un slothbot Resiva daño con sierta arma cambie su data?

ejemplo spawnea y tiene

setElementData( gato, "vida", 300)  

y cuando reciba un golpe de katana su vida baje a 200?

addEventHandler("onClientPedDamage",root, 
function(attacker, weapon) 
     if weapon == 38 then 
          setElementData(source, "blood", getElementData(source, "blood") - 1000) 
     end 
end) 

Link to comment
  • Recently Browsing   0 members

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