PhantomDamn Posted March 7, 2013 Share Posted March 7, 2013 creo que esto ya me volo el coco.... he intentado de todas las maneras que he aprendido o medio creo saber... hacer que las animaciones no sean por comando sino por medio de bind... function animationCommand ( source ) setPedAnimation ( source, "shop", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "* Kiss Anim By Zoom", source, 0, 0, 255 ) end addCommandHandler ( "kiss", animationCommand ) function animationCommand2 ( source ) setPedAnimation ( source ) end addCommandHandler ( "stopkiss", animationCommand2 ) Lo que yo creo que puede ser es hacer eso bindKey ( "1", animationCommand ) es un simple script quien me ayuda Link to comment
NodZen Posted March 7, 2013 Share Posted March 7, 2013 Probalo así function anim (source) setPedAnimation( source, "shop", "Grlfrd_Kiss_03", 5000, false) outputChatBox ( "* Kiss Anim By Zoom", source, 0, 0, 255 ) end bindKey("F1", "down", anim) Link to comment
PhantomDamn Posted March 8, 2013 Author Share Posted March 8, 2013 no me quiere servir ya intente eso en otro recurso y no me funciona function anim ( source ) setPedAnimation ( source, "dancing", "dnce_m_b", -1, true, false, false ) outputChatBox ( "* Type '/stop-anim' to stop dancing", source, 0, 0, 255 ) end bindKey("1", "down", anim) function anim2 ( source ) setPedAnimation ( source ) end bindKey("2", "down", anim) este es otro ejemplo Link to comment
Javier Posted March 8, 2013 Share Posted March 8, 2013 no me quiere servir ya intente eso en otro recurso y no me funciona function anim ( source ) setPedAnimation ( source, "dancing", "dnce_m_b", -1, true, false, false ) -- El tiempo es menos 1 milisegundo? outputChatBox ( "* Type '/stop-anim' to stop dancing", source, 0, 0, 255 ) end bindKey("1", "down", anim) function anim2 ( source ) setPedAnimation ( source ) -- Que anim establece? end bindKey("2", "down", anim) este es otro ejemplo Link to comment
AlvareZ_ Posted March 8, 2013 Share Posted March 8, 2013 bindKey("1", "down", function (source) setPedAnimation( source, "shop", "Grlfrd_Kiss_03", 5000, false) outputChatBox ( "* Kiss Anim By Zoom", source, 0, 0, 255 ) end ) ententa eso Link to comment
Arsilex Posted March 8, 2013 Share Posted March 8, 2013 asegúrate de poner el script en client-side. Link to comment
Castillo Posted March 8, 2013 Share Posted March 8, 2013 Si lo pone en el client side, entonces tiene que usar localPlayer, no source. Link to comment
Arsilex Posted March 8, 2013 Share Posted March 8, 2013 bindKey("1", "down", entonces eso ta mal si usa server side ya que no tiene definido a quien va asigado el bind que yo sepa. Link to comment
PhantomDamn Posted May 25, 2013 Author Share Posted May 25, 2013 Probalo así function anim (source) setPedAnimation( source, "shop", "Grlfrd_Kiss_03", 5000, false) outputChatBox ( "* Kiss Anim By Zoom", source, 0, 0, 255 ) end bindKey("F1", "down", anim) lo probe en client y server Link to comment
Recommended Posts