emad10 Posted November 7, 2012 Share Posted November 7, 2012 السلام عليكم.... شلون اخلي اللاعب يحمل اوبجكت مثلا امبي يحمل كيس مال وسخ في يده شلون؟ بالكوماند b Link to comment
./BlackBird# Posted November 7, 2012 Share Posted November 7, 2012 https://wiki.multitheftauto.com/wiki/AttachElementsأو أستعمل المود ذا https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 ما عرفت الى المود Link to comment
Mr.T9 Posted November 8, 2012 Share Posted November 8, 2012 اجل استخدم https://wiki.multitheftauto.com/wiki/AttachElements Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createobject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 حمل المود و ارفعه اقرا ملف readme و اقرا ارقام الجسم انت حط بمودك ذا exports.bone_attach:attachElementToBone(player,object,12,0,0,0,0,-90,0) -- player = لاعب object = اوبجيت بس غير رقم 12 الى رقم الجسم الي تلقاها في readme Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 ما حصلت + ما فهمت Link to comment
TAPL Posted November 8, 2012 Share Posted November 8, 2012 function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createobject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createObject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 شلون اغير مكان الا يطلع فيه ابغي اخله على كتفه Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 اقرا ملف readME و تعرف الاماكن كلها Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 ما حصلت ملف اسمة readme Link to comment
TAPL Posted November 8, 2012 Share Posted November 8, 2012 شلون اغير مكان الا يطلع فيه ابغي اخله على كتفه bone_attach أستخدم مود Bone IDs: 1: head 2: neck 3: spine 4: pelvis 5: left clavicle 6: right clavicle 7: left shoulder 8: right shoulder 9: left elbow 10: right elbow 11: left hand 12: right hand 13: left hip 14: right hip 15: left knee 16: right knee 17: left ankle 18: right ankle 19: left foot 20: right foot Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 احط الكود مع مود bone_attach ? Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createobject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createObject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) اي رقم ابدل؟ Link to comment
TAPL Posted November 8, 2012 Share Posted November 8, 2012 احط الكود مع مود bone_attach ? لا بس لازم يكون المود مركب بالسيرفر و شغال addCommandHandler("obj", function(source) local x, y, z = getElementPosition(source) local object = createObject(7910, x, y, z) exports.bone_attach:attachElementToBone(object, source, id, 0, 0, 0, 0, 0, 0) -- id لا تنسى تغير end) الآيد تجيبه من هنا Bone IDs: 1: head 2: neck 3: spine 4: pelvis 5: left clavicle 6: right clavicle 7: left shoulder 8: right shoulder 9: left elbow 10: right elbow 11: left hand 12: right hand 13: left hip 14: right hip 15: left knee 16: right knee 17: left ankle 18: right ankle 19: left foot 20: right foot Link to comment
iPrestege Posted November 8, 2012 Share Posted November 8, 2012 function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createobject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) function handobject ( source, commandName ) local x, y, z = getElementPosition ( source ) local object = createObject ( 7910, x, y, z -5 ) attachElements ( object, source, 0, 0, 5 ) end addCommandHandler ( "obj", handobject ) اي رقم ابدل؟ تابل حط لك الايدي لآزم تغيرة + الاوبجيكت اظن واضح ؟ 7910 Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 [2012-11-08 15:10:30] ERROR: exports: Call to non-running server resource (bone_attach) [string "?"] Link to comment
TAPL Posted November 8, 2012 Share Posted November 8, 2012 [2012-11-08 15:10:30] ERROR: exports: Call to non-running server resource (bone_attach) [string "?"] احط الكود مع مود bone_attach ? لا بس لازم يكون المود مركب بالسيرفر و شغال Link to comment
TAPL Posted November 8, 2012 Share Posted November 8, 2012 مركب بس لازم يكون المود مركب بالسيرفر و شغال Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 شغله و لا تغير اسمه Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 تم الحين شلون اخليه اذا رد كتب obj يجي الشي على الارض Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 اطرح كودك + (يرجى تجنب وضع المشاركات المزدوجة (أكثر من مشاركة ورا بعض. Link to comment
emad10 Posted November 8, 2012 Author Share Posted November 8, 2012 addCommandHandler("obj", function(source) local x, y, z = getElementPosition(source) local object = createObject(1327, x, y, z) exports.bone_attach:attachElementToBone(object, source, 8, 0, 0, 0, 0, 0, 0) end) Link to comment
./BlackBird# Posted November 8, 2012 Share Posted November 8, 2012 (edited) addEventHandler("onPlayerJoin",root,function()setElementData(source,'Attach',false) end) addCommandHandler("obj", function(source) if(getElementData(source,'Attach')==true)then x,y,z = getElementPosition(source) destroyElement(Object) Object = createObject( id,x +2,y,z)--بدلها برقم الاوبجيكت setElementData(source,'Attach',false) elseif(getElementData(source,'Attach')==false)then exports.bone_attach:attachElementToBone(object, source, 8, 0, 0, 0, 0, 0, 0) setElementData(source,'Attach',true) end end) Edited November 12, 2012 by Guest 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