Narutimmy Posted September 8, 2013 Posted September 8, 2013 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 Ts3: thezombiworld.com:7777
Castillo Posted September 8, 2013 Posted September 8, 2013 El codigo ese no funciona? deberia hacerlo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Narutimmy Posted September 8, 2013 Author Posted September 8, 2013 El codigo ese no funciona? deberia hacerlo. Ya funciono jejegracias mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Recommended Posts