index.js vom polygon hinzugefügt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user