Revert "nodmzone, COMMIT NUR ZUM TESTEN"

This reverts commit 3edd6b5560
This commit is contained in:
hydrant
2021-04-21 23:14:14 +02:00
parent 556f270b06
commit 9459cd9ed3
7 changed files with 1 additions and 59 deletions

View File

@@ -1,22 +0,0 @@

export function isPlayerInNoDMZone(pos) {
if (pos.x >= -540 && pos.x <= -531
&& pos.y >= -2151 && pos.y <= -2139) {
return true;
}
return false;
}
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!");
}
});
setInterval(() => {
mp.events.call('toggleNoDmZone', isPlayerInNoDMZone(mp.players.local.position));
}, 200);
}