ReviveSperre

This commit is contained in:
VegaZ
2021-04-05 17:44:56 +02:00
parent 7472243c5c
commit 01541557b2
3 changed files with 20 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ namespace ReallifeGamemode.Server.Commands
deadPlayer.SendNotification($"Du wurdest von ~y~{player.Name}~s~ für ~g~{100.ToMoneyString()} ~s~wiederbelebt.");
player.SendNotification($"Du hast ~y~{deadPlayer.Name}~s~ wiederbelebt und ~g~{Medic.ReviveIncome}$ ~s~für die Fraktion verdient.");
deadPlayer.SetData("isDead", false);
deadPlayer.SetData("reviveSperre", 5);
dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 2).First().BankAccount.Balance += Medic.ReviveIncome;