From 6c5a73c3f7224e0c93661674f25f70ea3a28ef24 Mon Sep 17 00:00:00 2001 From: balbo <34-nahkampfaffe@users.noreply.development.life-of-german.org> Date: Wed, 21 Apr 2021 22:49:26 +0200 Subject: [PATCH] Revert "nodmzone, COMMIT NUR ZUM TESTEN" This reverts commit 6e1aed192662c64c54cf51caed8861b34792d330 --- ReallifeGamemode.Client/Player/position.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/Player/position.ts b/ReallifeGamemode.Client/Player/position.ts index 850b4d99..f6830796 100644 --- a/ReallifeGamemode.Client/Player/position.ts +++ b/ReallifeGamemode.Client/Player/position.ts @@ -1,8 +1,7 @@  export function isPlayerInNoDMZone(pos) { if (pos.x >= -540 && pos.x <= -531 - && pos.y >= -2151 && pos.y <= -2139 - && pos.z >= 0 && pos.z <= 30) { + && pos.y >= -2151 && pos.y <= -2139) { return true; } return false; @@ -11,6 +10,7 @@ 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!"); }