Jump to content

Animaciones (bind)


Recommended Posts

Posted

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 :D

Posted

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) 

Posted

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

Posted
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

Posted
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

  • 2 months later...
Posted
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...