Brama = createObject (2933, -294.89, 1053.40, 20.29, 0, 0, 180)
function OpenGate(plr)
if not getPlayerAccount(plr) then return end
local accName = getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SAPD") ) then
moveObject ( Brama, 1000, -294.89, 1053.40, 16.79 )
end
end
addCommandHandler("otworzb", OpenGate)
function CloseGate(plr)
if not getPlayerAccount(plr) then return end
local accName = getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SAPD") ) then
moveObject ( Brama, 1000, -294.89, 1053.40, 20.29 )
end
end
addCommandHandler("zamknijb", CloseGate)