Jump to content

ابي كود البيد


Recommended Posts

أستخدم ‘

- createPed 
- getPedAnimation 
- setPedAnimation 

وطبق ‘

function makePed() 
   ped1 = createPed(56, 1, 1, 4) 
   setPedRotation(ped1, 315) 
   setPedAnimation( ped1, "ped", "WOMAN_walknorm") 
end 
addCommandHandler("makemyped", makePed) 

WOMAN_walknorm = اسم الحركه صح؟

ذا الكود اركبه كذا في كلنت ويسير لي البيد ذا حركه الي انا محددها؟

Link to comment

, اقراء الويكي زين

, مكتوب الكود ذا ، لـ سيرفر ليس لـ كلنت

, كود كلنت

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

, كود السيرفر

function makePed() 
   ped1 = createPed(56, 1, 1, 4) 
   setPedRotation(ped1, 315) 
   setPedAnimation( ped1, "ped", "WOMAN_walknorm") 
end 
addCommandHandler("makemyped", makePed) 

Link to comment

, طبعاً ألي فوق كله من الويكي

, للحين ماراح يشتغل لازم تسوي انشاء بيد ثم تعطيه اوامر

, انا ماراح اعطيك الكود الي يشغله لازم تتعلم من الويكي ثم تطرح الي قدرت تسويه

, وإذا فيه اخطاء نصلحه

Link to comment

اخوي انصحك تعمله كذا

بعد ما يخلص الانترو يلي طلبته يعمل الحركه اعمل تايمر على حسب تايمر حق الانترو

ان شاء الله فهمت

ped1 = createPed (107, 264.46, 2875.05, 14.33, 140 ) 
  
   
addEventHandler("onClientResourceStart", resourceRoot, 
setTimer ( function() 
setPedAnimation( ped1, "ped", "Gun_stand") 
   setPedRotation(ped1, 315) 
end, 3000, 1 ) 
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...