spawnschutz bei login, revive und spawn nach kh

This commit is contained in:
Fabian
2021-04-22 21:35:26 +02:00
parent 253d982883
commit 2b46b940cc
5 changed files with 21 additions and 6 deletions

View File

@@ -32,7 +32,13 @@ export default function weapondamageUtil() {
return true;
}
if (spawnschutzEnabled) {
if (spawnschutzEnabled && getWantedCount() === 0) {
return true;
}
});
mp.events.add('outgoingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
if (spawnschutzEnabled && getWantedCount() === 0) {
return true;
}
});