col = createColTube (2287.1000976563, 605.70001220703, 12.39999961853, 0, 0) --
root = getRootElement ()
othergate1 = createObject ( 980, 2287.1000976563, 605.70001220703, 12.60000038147, 0, 0, 0)
function Open (thePlayer)
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then
moveObject (othergate1, 2500, 2287.1000976563, 605.70001220703, 6.9000000953674)
end
end
end
addEventHandler ( "onColShapeHit", col, Open)
function Close (thePlayer)
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then
moveObject (othergate1, 2500,2287.1000976563, 605.70001220703, 12.60000038147)
end
end
end
addEventHandler ( "onColShapeLeave", col, Close )
the Gates don't move why??"i am in team Army btw"