Jump to content

Could someone pleas help out?


DonPro

Recommended Posts

Hi i need help, i dont find the problems, im pretty new and im realy trying but it all just stop'ed up for me right now i dont know what to do.

-- Creating Of The Parts 
local object1 = createObject (10794, -1514.599609375, 242, 7, 0, 0, 0) -- Main Deck 
local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) -- Containers On The Deck 
local object3 = createObject(9584, -1465.400390625, 242, 26.200000762939, 0, 0) -- Containers On The Under Deck 
local object4 = createObject(9698, -1453.91015625, 240.826171875, 29.079999923706, 0, 0, 0) -- Under Deck 
  
-- Attachments Of The Parts 
attachElements(object1, hull, -2.28, 0, 10.1) 
attachElements(object2, hull, 6.35, 0, 1.-- s8) -->
attachElements(object3, hull, 8, 0, 16.6) 
attachElements(object4, hull, 5.7, 0, 0.6) 
  
function move1( commandName, object ) 
        for e=1, 4 do 
        for _,object in ipairs(getElementsByType("object")) do 
                if (getElementData(object,"name") == a[e]) then 
                        local x,y,z = getElementPosition(object) 
                        moveObject(object,2000, -1289.1999511719, 293.20001220703, 7, 0, 0, 46) ------------- speed and local xyz axsis 
                end 
                addCommandHandler ( "start", moveObject ) 
        end 
        end 
end 
  
function isAdminAccount(account) 
  local nick = "" 
  local group = aclGetGroup("Admin") 
  if (account and group) then 
    nick = string.lower(getAccountName(account) or "") 
    for _, object in ipairs(aclGroupListObjects(group) or {}) do 
      if (gettok(object, 1, string.byte('.')) == "user") then 
        if (nick == string.lower(gettok(object, 2, string.byte('.')))) then 
          return true 
        end 
      end 
    end 
  end 
  return false 
end   

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