Jump to content

طلب


AL-SAYED

Recommended Posts

server side

function DAM_JUMP (source) 
    daBlockz = getElementData(root,"blockz") 
    daAnimz = getElementData(root,"animz") 
        if daBlockz == "DAM_JUMP" and daAnimz == "DAM_Dive_Loop" then 
            setPedAnimation(source,false) 
        else 
            setPedAnimation ( source, "DAM_JUMP", "DAM_Dive_Loop") 
        end 
end 
addCommandHandler("d",DAM_JUMP) 

cilent side

addEventHandler("onClientPreRender",root, 
  function () 
    daBlock, daAnim = getPedAnimation(getLocalPlayer()) 
    setElementData(root,"blockz",daBlock) 
    setElementData(root,"animz",daAnim) 
  end ) 

اذا اسوي الكوماند يصير لكن اذا اضغطه مرة ثانية ما يوقف يطل على ايده واقف

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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