--This script was generously provided by Xian (Huge thanks btw!)

local timer = 18000
if mapheaderinfo[gamemap].lvlttl == "City Escape"
and leveltime == 0
and not gamecomplete and not multiplayer and not modeattacking then
  timer = 0
end
if timer < 16800 then
  timer = $ + 1
end
if mapheaderinfo[gamemap].lvlttl == "Final Rush"
and player.exiting
and timer < 16800 --8 minutes
and not gamecomplete and not multiplayer and not modeattacking then
  P_LinedefExecute(2)
end