Jacobob14 Posted February 12, 2014 Share Posted February 12, 2014 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 ) Link to comment
Castillo Posted February 12, 2014 Share Posted February 12, 2014 You want the gates to don't open or close if they are already being opened/closed? Link to comment
Jacobob14 Posted February 12, 2014 Author Share Posted February 12, 2014 You want the gates to don't open or close if they are already being opened/closed? if the doors are in motion can not open or close until the end of move 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