Jump to content

حمل اوبجكت


emad10

Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

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

حمل المود و ارفعه

اقرا ملف

readme

و اقرا ارقام الجسم

انت حط بمودك ذا

exports.bone_attach:attachElementToBone(player,object,12,0,0,0,0,-90,0) -- player = لاعب object  = اوبجيت 

بس غير رقم 12

الى رقم الجسم الي تلقاها في

readme

Link to comment
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
شلون اغير مكان الا يطلع فيه ابغي اخله على كتفه

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
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
احط الكود مع مود

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
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
[2012-11-08 15:10:30] ERROR: exports: Call to non-running server resource (bone_attach) [string "?"]
احط الكود مع مود

bone_attach ?

لا

بس لازم يكون المود مركب بالسيرفر و شغال

Link to comment
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 by Guest
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...