Jump to content

Ayuda - Anim ped


Matty

Recommended Posts

Ayuda, por favor; No me devuelve el anim ._.

Code:

function myped (source) 
    
faBlockz = getElementData (root,"blockz") 
faAnimz = getElementData (root,"animz") 
       if faBlockz == "SMOKING" and faAnimz == "F_smklean_loop" then 
             setPedAnimation (source,false) 
       else 
             setPedAnimation (source, "SMOKING", "F_smklean_loop", 300, true, false, false, true ) 
  
    end 
  
end 
addCommandHandler ( "smoke", myped ) 

Link to comment
function myped ( thePlayer ) 
    setElementData ( thePlayer, "smoking", not getElementData ( thePlayer, "smoking" ) ) 
    if ( getElementData ( thePlayer, "smoking" ) ) then 
        setPedAnimation ( thePlayer ) 
    else 
        setPedAnimation ( thePlayer, "SMOKING", "F_smklean_loop" ) 
    end 
end 
addCommandHandler ( "smoke2", myped ) 

Probalo.

Link to comment
  • Recently Browsing   0 members

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