//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 >= 14330*FRACUNIT and p.mo.x <= 19200*FRACUNIT and p.mo.y >= 4600*FRACUNIT and p.mo.y <= 13825*FRACUNIT and p.pflags & PF_NOCLIP
          p.pflags = $1 & ~PF_NOCLIP
          CONS_Printf(p, "Noclip isnt allowed here")
        end
      end
    end
  end
end)