test nodm zone kein schaden
This commit is contained in:
@@ -8,14 +8,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!");
|
||||
}
|
||||
});
|
||||
|
||||
setInterval(() => {
|
||||
mp.events.call('toggleNoDmZone', isPlayerInNoDMZone(mp.players.local.position));
|
||||
}, 200);
|
||||
|
||||
Reference in New Issue
Block a user