nodmzone, COMMIT NUR ZUM TESTEN
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user