//So you can't cheat others in the arena
//Thanks to Spectrum for this small script

addHook("ThinkFrame", do
  if gamemap == 377 then
    for p in players.iterate
      if p.mo and p.mo.valid 
        if p.mo.x >= -13060*FRACUNIT and p.mo.x <= -8956*FRACUNIT and p.mo.y >= 11004*FRACUNIT and p.mo.y <= 15108*FRACUNIT and p.pflags & PF_GODMODE
          p.pflags = $1 & ~PF_GODMODE
          CONS_Printf(p, "God Mode is disabled in the arena.")
        elseif p.mo.x >= 13888*FRACUNIT and p.mo.x <= 15904*FRACUNIT and p.mo.y >= 15584*FRACUNIT and p.mo.y <= 17184*FRACUNIT and p.pflags & PF_GODMODE
          p.pflags = $1 & ~PF_GODMODE
          CONS_Printf(p, "A higher power disabled God Mode.")
        end
      end
    end
  end
end)