Narutimmy Posted March 7, 2013 Posted March 7, 2013 Bueno ya lo mofique y pues al llegar a 0 vidas si kickea... pero no borra la cuenta que ago? local sourceAccount = getPlayerAccount ( Source ) local g_root = getRootElement() addEventHandler( "onPlayerWasted", root, function(ammo, attacker, weapon, bodypart) if attacker then setElementData(source, "Vidas", getElementData(source, "Vidas")-1) setElementData(attacker, "Vidas", getElementData(attacker, "Vidas")+1) else setElementData(source, "Vidas", getElementData(source, "Vidas")-2) end Vida = getElementData(source, "Vidas") if Vida <= 0 then kickPlayer ( source, "Te quedastes sin vidas tu cuenta a sido Eliminada" ) removeAccount ( sourceAccount ) end end ) mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Castillo Posted March 7, 2013 Posted March 7, 2013 Sera porque pusiste getPlayerAccount fuera de la funcion y "source" esta con "S" mayuscula? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Narutimmy Posted March 7, 2013 Author Posted March 7, 2013 Sera porque pusiste getPlayerAccount fuera de la funcion y "source" esta con "S" mayuscula? >.< gracias, no sabia que iva dentro... y de la s.... estoy acostumbrado a escribir la primer letra mayuscula, gracias mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Castillo Posted March 7, 2013 Posted March 7, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts