Matty Posted September 13, 2012 Posted September 13, 2012 Ayuda, por favor; No me devuelve el anim ._. Code: function myped (source) faBlockz = getElementData (root,"blockz") faAnimz = getElementData (root,"animz") if faBlockz == "SMOKING" and faAnimz == "F_smklean_loop" then setPedAnimation (source,false) else setPedAnimation (source, "SMOKING", "F_smklean_loop", 300, true, false, false, true ) end end addCommandHandler ( "smoke", myped ) ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Castillo Posted September 13, 2012 Posted September 13, 2012 Estas intentando hacer que si esta haciendo la animacion, la deje de hacer, y si no, la empieze a hacer? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Matty Posted September 13, 2012 Author Posted September 13, 2012 Estas intentando hacer que si esta haciendo la animacion, la deje de hacer, y si no, la empieze a hacer? Exactamente exacto (: ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Castillo Posted September 13, 2012 Posted September 13, 2012 function myped ( thePlayer ) setElementData ( thePlayer, "smoking", not getElementData ( thePlayer, "smoking" ) ) if ( getElementData ( thePlayer, "smoking" ) ) then setPedAnimation ( thePlayer ) else setPedAnimation ( thePlayer, "SMOKING", "F_smklean_loop" ) end end addCommandHandler ( "smoke2", myped ) Probalo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Matty Posted September 13, 2012 Author Posted September 13, 2012 No funcionó. ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Castillo Posted September 13, 2012 Posted September 13, 2012 Lo pusiste como server side, no? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Matty Posted September 13, 2012 Author Posted September 13, 2012 Si, server side, y en el debug no hay errores. ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Castillo Posted September 13, 2012 Posted September 13, 2012 Ok, copialo de nuevo, lo probe y funciona. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Matty Posted September 13, 2012 Author Posted September 13, 2012 Bien, Gracias Solid, ahora te pregunto, en la linea 6, se le puede agregar los argumentos opcionales? porque se va para todos lados el ped . ...Learning Scripting... State: Rookie, Noob [AP3]=Matty!= My Skype: mattias.netz
Castillo Posted September 13, 2012 Posted September 13, 2012 Solo los necesarios, porque esa era la cause de no poder parar la animacion. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts