Jump to content

كيف اخلي الاوبجيكت تتحرك بالماب


Recommended Posts

    a1 = createObject (2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) 
     
    Cola1 = createColCircle(907.19921875, 1848, 10) 
  
    function Open(pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 907.19921875, 1841.5, 19.699998855591) 
              end 
         end 
    end   
    addEventHandler("onColShapeHit", Cola1, Open) 
      
    function Close (pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 907.19921875, 1841.5, 15.699999809265) 
              end 
         end 
    end   
    addEventHandler("onColShapeLeave", Cola1, Close) 

      a1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 30.10000038147, 0, 0, 10) 
     
    Cola1 = createColCircle(890, 1762.1999511719, 30.799999237061) 
  
    function Open(pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 891, 1764.1999511719, 31.799999237061) 
              end 
         end 
    end   
    addEventHandler("onColShapeHit", Cola1, Open) 
      
    function Close (pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 892, 1764.1999511719, 31.799999237061) 
              end 
         end 
    end   
    addEventHandler("onColShapeLeave", Cola1, Close) 

      a1 = createObject (3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) 
     
    Cola1 = createColCircle(861.5389256602219921875, 1722.4000244141, 27.10000038147) 
  
    function Open(pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 873.19921875, 1728.5, 30.100000038147) 
              end 
         end 
    end   
    addEventHandler("onColShapeHit", Cola1, Open) 
      
    function Close (pla) 
         if getElementType(pla) == "player" then 
              if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
                   moveObject (a1, 550, 868.29998779297, 1728.40002441417998046875, 30.10000038147) 
              end 
         end 
    end   
    addEventHandler("onColShapeLeave", Cola1, Close) 

Link to comment
  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

a1 = createObject(2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) 
Cola1 = createColCircle(907.19921875, 1848, 10) 
  
a2 = createObject(2959, 892, 1764.1999511719, 31.799999237061, 30.10000038147, 0, 0) 
Cola2 = createColCircle(890, 1762.1999511719, 30.799999237061) 
  
a3 = createObject(3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) 
Cola3 = createColCircle(861.5389256602219921875, 1722.4000244141, 27.10000038147) 
  
function Open(pla) 
     if getElementType(pla) == "player" then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
               if source == Cola1 then 
                    moveObject (a1, 550, 907.19921875, 1841.5, 19.699998855591) 
               elseif source == Cola2 then 
                    moveObject (a2, 550, 891, 1764.1999511719, 31.799999237061) 
               elseif source == Cola3 then 
                    moveObject (a3, 550, 873.19921875, 1728.5, 30.100000038147) 
               end 
          end 
     end 
end   
addEventHandler("onColShapeHit", root, Open) 
  
function Close(pla) 
     if getElementType(pla) == "player" then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then 
               if source == Cola1 then 
                    moveObject (a1, 550, 907.19921875, 1841.5, 15.699999809265) 
               elseif source == Cola2 then 
                    moveObject (a2, 550, 892, 1764.1999511719, 31.799999237061) 
               elseif source == Cola3 then 
                    moveObject (a3, 550, 868.29998779297, 1728.40002441417998046875, 30.10000038147) 
               end 
          end 
     end 
end   
addEventHandler("onColShapeLeave", root, Close) 

Link to comment
مشكور بس الباب الثالث فيه مشكلة

eZM3a.png?1?2585

مع اني متأكد من الاحداثيات

a2 شف أحداثيات البوابة

a2 = createObject(2959, 892, 1764.1999511719, 31.799999237061, 30.10000038147, 0, 0) 

ولاحظ أنك تحركها رقم واحد فقط

moveObject (a2, 550, 891, 1764.1999511719, 31.799999237061) 

ضبط أحداثياتك -_-

Link to comment
ما صار شي بس صار الباب الثاني ينفتح شوي مو كله

مو أنت صاحب الاحداثيات .. انت المسؤل عنها بعد

يمديك تعدل عليها من

map editor

او تشغل

editor

في لوحة الادمنية

وتعدل على الباب

وتاخذ احداثياته وتحطها بكودك , وخلصنا ...

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...