spawnschutz eingefügt

This commit is contained in:
Fabian
2021-04-22 21:03:13 +02:00
parent 798a84813c
commit 9e6df00f24
5 changed files with 36 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { isInAnyNoDMPolygon, listNoDMZones } from "../Player/nodm";
import polygons from "../polygons";
import { getWantedCount } from "../Gui/wanteds";
import { spawnschutzEnabled } from "../Player/spawnschutz";
function isTargetInPolygon(pos): boolean {
@@ -30,6 +31,10 @@ export default function weapondamageUtil() {
if ((isTargetInPolygon(sourceEntity.position) || isInAnyNoDMPolygon) && getWantedCount() === 0) {
return true;
}
if (spawnschutzEnabled) {
return true;
}
});
mp.events.add("render", () => {