More fixes

This commit is contained in:
Lukas Moungos
2019-07-20 13:27:03 +02:00
parent 2cfff8579a
commit 3b2918ecc2
4 changed files with 15 additions and 26 deletions

View File

@@ -74,14 +74,8 @@ namespace ReallifeGamemode.Server.Wanted
Medic.RemoveTaskFromList(task);
client.Health = 100;
foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
{
User copUser = copPlayer.GetUser();
if ((copUser.FactionId == 1 || copUser.FactionId == 3))
{
ChatService.SendMessage(copPlayer, "~r~HQ: " + user.Name + " wurde im Gefängnis zugewiesen.");
}
}
ChatService.BroadcastFaction("~r~HQ: " + user.Name + " wurde im Gefängnis zugewiesen.", new List<int>() {1,3});
ChatService.SendMessage(client, "Du bist im Gefängnis für " + user.JailTime + " Sekunden.");