Nicolas ECM Posted November 13, 2013 Posted November 13, 2013 Hola tengo un resource en el que con un comando ejecuta una animacion, cuando acaba la animacion no me puedo mover , ya lo e intentado de varias formas pero no se como porfavor ayuda function createVcle(sourcePlayer, commandName, destroy) local x,y,z = getElementPosition(sourcePlayer) setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) objeto = createObject( 897, x, y - 7, z + 0.3, 0, 90, 90) setTimer(destroyElement, 6000, 1, objeto) outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0) end addCommandHandler("doton",createVcle ) function stopanimacion (sourcePlayer) setPedAnimation (sourceplayer) end executeCommandHandler ( doton, sourcePlayer)
Castillo Posted November 13, 2013 Posted November 13, 2013 function createVcle ( sourcePlayer ) local x, y, z = getElementPosition ( sourcePlayer ) setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false ) objeto = createObject ( 897, x, y - 7, z + 0.3, 0, 90, 90 ) setTimer ( function ( ) destroyElement ( objeto ) objecto = nil setPedAnimation ( sourcePlayer ) end ,6000, 1 ) outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0 ) end addCommandHandler ( "doton", createVcle ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts