diff --git a/ReallifeGamemode.Client/Player/position.ts b/ReallifeGamemode.Client/Player/position.ts index f6830796..850b4d99 100644 --- a/ReallifeGamemode.Client/Player/position.ts +++ b/ReallifeGamemode.Client/Player/position.ts @@ -1,7 +1,8 @@  export function isPlayerInNoDMZone(pos) { if (pos.x >= -540 && pos.x <= -531 - && pos.y >= -2151 && pos.y <= -2139) { + && pos.y >= -2151 && pos.y <= -2139 + && pos.z >= 0 && pos.z <= 30) { return true; } return false; @@ -10,7 +11,6 @@ export function isPlayerInNoDMZone(pos) { export default function positionHandler() { mp.events.add("checkPosition", (targetEntity) => { - if (isPlayerInNoDMZone(mp.players.local.position) || isPlayerInNoDMZone(targetEntity.position)) { mp.gui.chat.push("Kein DM in NODM!"); }