baba Posted April 7, 2015 Share Posted April 7, 2015 سلام عليكم شباب ابي كود حركه لي البيد ارجو التوضيح Link to comment
i S6O Posted April 7, 2015 Share Posted April 7, 2015 أستخدم ‘ - createPed - getPedAnimation - setPedAnimation وطبق ‘ Link to comment
baba Posted April 7, 2015 Author Share Posted April 7, 2015 أستخدم ‘ - 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
i S6O Posted April 7, 2015 Share Posted April 7, 2015 , اقراء الويكي زين , مكتوب الكود ذا ، لـ سيرفر ليس لـ كلنت , كود كلنت 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
i S6O Posted April 7, 2015 Share Posted April 7, 2015 , طبعاً ألي فوق كله من الويكي , للحين ماراح يشتغل لازم تسوي انشاء بيد ثم تعطيه اوامر , انا ماراح اعطيك الكود الي يشغله لازم تتعلم من الويكي ثم تطرح الي قدرت تسويه , وإذا فيه اخطاء نصلحه Link to comment
yazan Posted April 7, 2015 Share Posted April 7, 2015 اخوي انصحك تعمله كذا بعد ما يخلص الانترو يلي طلبته يعمل الحركه اعمل تايمر على حسب تايمر حق الانترو ان شاء الله فهمت 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now