[*] Fix Autojail on death.

+ Added HQ message for wanteds
This commit is contained in:
Lukas Moungos
2019-07-19 21:23:58 +02:00
parent 80a04a2ee4
commit 409a8bc52a
4 changed files with 30 additions and 13 deletions

View File

@@ -76,8 +76,6 @@ namespace ReallifeGamemode.Server.Events
}
}
//JailTime.cs
Jail.Check_PutBehindBars(player);
//MEDIC AUFTRAG
@@ -95,7 +93,7 @@ namespace ReallifeGamemode.Server.Events
Medic.AddTaskToList(reviveTask);
//TODO PICTURE NOTIFICATION + SOUND für Medics
using (var userDeath = new DatabaseContext())
{
var dead = new Entities.Logs.Death
@@ -115,6 +113,9 @@ namespace ReallifeGamemode.Server.Events
userDeath.DeathLogs.Add(dead);
userDeath.SaveChanges();
}
//JailTime.cs
Jail.Check_PutBehindBars(player);
}
[RemoteEvent("RespawnPlayerAtHospital")]
public void RespawnPlayerAtHospital(Client player)