Tor = createObject ( 980, 2289.8999023438, 2456.300003051758, 11, 0, 0, 0 )
TorStatus = "zu"
function mv_func ( player )
if is.:M.O.C:.(player) then
if ( TorStatus == "zu" ) then
moveObject ( Tor, 1000, 2289.8999023438, 2456.300003051758, 11 )
TorStatus = "auf"
setTimer ( TorTimer, 5000, 1 )
elseif ( TorStatus == "auf" ) then
outputChatBox ( "Das Tor schließt sich automatisch in 5 Sekunden!", player, 255, 255, 255 )
moveObject ( Tor, 1000, 2288.8999023438, 2456.900003051758, 11 )
TorStatus = "zu"
end
elseif not is.:M.O.C:.(player) then
outputChatBox ( "Du bist kein Mitglied der Angels of Death!", player, 125, 0, 0 )
end
end
addCommandHandler ( "mv", openTor, false, false )
function TorTimer ( )
if ( TorStatus == "auf" ) then
moveObject ( Tor, 1000, 2288.8999023438, 2456.900003051758, 11 )
TorStatus = "zu"
end
end