daniel735 Posted September 26, 2014 Share Posted September 26, 2014 help I need a scrip to doors only a member of a clan can use it and if you leave the clan no longer works for you Link to comment
ZeyadGTX Posted September 26, 2014 Share Posted September 26, 2014 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
daniel735 Posted September 26, 2014 Author Share Posted September 26, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now