PhantomDamn Posted March 7, 2013 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 |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
NodZen Posted March 7, 2013 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) ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
PhantomDamn Posted March 8, 2013 Author 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 |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
Javier Posted March 8, 2013 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
AlvareZ_ Posted March 8, 2013 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
Castillo Posted March 8, 2013 Posted March 8, 2013 Si lo pone en el client side, entonces tiene que usar localPlayer, no source. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Arsilex Posted March 8, 2013 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.
PhantomDamn Posted May 25, 2013 Author 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 |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
Recommended Posts