Revert "nodmzone, COMMIT NUR ZUM TESTEN"

This reverts commit 6e1aed1926
This commit is contained in:
balbo
2021-04-21 22:49:26 +02:00
parent 6e1aed1926
commit 6c5a73c3f7

View File

@@ -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!");
}