Jump to content

طلب كود بوابه


baba

Recommended Posts

سلام عليكم شباب

انا ابي كود بوابه تفتح بكلمه اكتبها

مثلن اذا كتبت في

F8

baba

البوابه تفتح

واذا كتبتها مره ثانيه البوابه ترجع مكانها الاول

ارجو التوضيح

Link to comment
local object = createObject( id, x, y, z, rotationX, rotationY, rotationZ ) -- ضع الاحداثيات لانشاء اوبجكت ورقم البوابة 
  
function move (  player, cmd  ) 
      if cmd and getElementData(player, "isMove") == false then 
            setElementData( player, "isMove", true ) 
            moveObject( object, time, x, y, z ) -- x = بعد التحريك  x احداثيات  
            -- y = بعد التحريك y احداثيات 
            -- z = بعد التحريك z احداثيات 
            -- time = سرعة التحريك 
      else return setElementData( player, "isMove", false ) 
      end 
end 
addCommandHandler("baba", move) 
  

جرب سيرفر ..

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