index.js vom polygon hinzugefügt

This commit is contained in:
Fabian
2021-04-22 17:24:22 +02:00
parent ce7791a693
commit 17c2392a64
4 changed files with 53 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { isPlayerInNoDMZone } from "../Player/position";
import { isPlayerInNoDMZone } from "../Player/nodm";
export default function weapondamageUtil() {
let blockInput = false;
@@ -11,7 +11,6 @@ export default function weapondamageUtil() {
mp.events.add('outgoingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
if (isPlayerInNoDMZone(targetEntity.position) || isPlayerInNoDMZone(sourceEntity.position)) {
mp.gui.chat.push("Kein DM in NODM!");
return true;
}
});