Nicolas ECM Posted November 13, 2013 Share 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) Link to comment
Castillo Posted November 13, 2013 Share 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 ) Link to comment
Recommended Posts