Jump to content

ayuda necesito un scrip para puertas


daniel735

Recommended Posts

como hago para que este scrip me funcione con el grupo del acl porque cree un grupo y puse el nombre en el scrip del grupo y no me funciona

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
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...