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

@@ -426,6 +426,9 @@ namespace ReallifeGamemode.Server.Commands
deadPlayer.SetData("isDead", false);
deadPlayer.SetData("reviveSperre", 5);
deadPlayer.TriggerEvent("toggleSpawnschutz", true);
deadPlayer.TriggerEvent("triggerSpawnschutzTimer");
dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 2).First().BankAccount.Balance += Medic.ReviveIncome;
User u;