Jump to content

help I need a scrip to doors only a member of a clan can u


daniel735

Recommended Posts

  
local gate3 = createObject(2951, 233.5, 1822.3000488281, 6.4000000953674, 0, 0, 270  ) 
  
open = false  
function OpenObjectt ( thePlayer ) 
    if ( getTeamName(getPlayerTeam(thePlayer)) == "Burning Crusaders" ) then 
            if not Open then 
                moveObject(gate3, 4000, 233.5, 1818.8000488281, 6.4000000953674 , 0, 0, 0 ) 
            else 
                moveObject(gate3, 4000, 233.5, 1822.3000488281, 6.4000000953674, 0, 0, 0 ) 
            end 
            Open = not Open 
        end 
    end 
addCommandHandler("warroom", OpenObjectt ) 
  

Link to comment

This scrip worked but now I need to add that when someone joins the clan to automatically group acl

local gate3 = createObject(2951, 233.5, 1822.3000488281, 6.4000000953674, 0, 0, 270  ) 
  
open = false 
function OpenObjectt ( thePlayer ) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Burning Crusaders" ) ) then 
            if not open then 
                moveObject(gate3, 4000, 233.5, 1818.8000488281, 6.4000000953674 , 0, 0, 0 ) 
                open = true 
            elseif open then 
                moveObject(gate3, 4000, 233.5, 1822.3000488281, 6.4000000953674, 0, 0, 0 ) 
                open = false 
            end 
        end 
    end 
addCommandHandler("warroom", OpenObjectt ) 

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