spawnschutz eingefügt
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user