Jump to content

acl doors help


Jacobob14

Recommended Posts

Posted

as I can make the doors can not be opened or closed if they are moving :(

local objeto1 = createObject ( 980, 1460.6999511719, 802.70001220703, 15.199999809265, 0, 0, 0) 
local state = false 
local objeto11 = createObject ( 980, 1441.4000244141, 802.70001220703, 15.199999809265, 0, 0, 0) 
local state = false 
  
function Funcion ( thePlayer ) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "|LTN|" ) ) then 
        if ( not state ) then 
            moveObject ( objeto1, 2000, 1460.6999511719, 802.70001220703, 22, 0, 0, 0) 
                        state = true 
            moveObject ( objeto11, 2000, 1441.4000244141, 802.70001220703, 22, 0, 0, 0) 
                        state = true 
            outputChatBox ( "#00bbff[base LTN] => #0000ffAbriendo #00ff00Entry", thePlayer, 255, 255, 255, true ) 
            else 
            moveObject ( objeto1, 2000, 1460.6999511719, 802.70001220703, 15.199999809265, 0, 0, 0) 
             state = false 
            moveObject ( objeto11, 2000, 1441.4000244141, 802.70001220703, 15.199999809265, 0, 0, 0) 
             state = false 
            outputChatBox ( "#00bbff[base LTN] => #0000ffCerrando #00ff00 Entry", thePlayer, 255, 255, 255, true ) 
        end 
    end 
end  
addCommandHandler ( "ltnentry", Funcion ) 
  

Posted

You want the gates to don't open or close if they are already being opened/closed?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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