Jump to content

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


Narutimmy

Recommended Posts

Posted

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) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

El codigo ese no funciona? deberia hacerlo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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