From 95aef8ef292d3cd7e150cd1474d44224d3e39dbf Mon Sep 17 00:00:00 2001 From: balbo Date: Tue, 4 Aug 2020 19:17:50 +0200 Subject: [PATCH] siga kann nicht programmieren --- ReallifeGamemode.Server/Wanted/Jail.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ReallifeGamemode.Server/Wanted/Jail.cs b/ReallifeGamemode.Server/Wanted/Jail.cs index 3f4ec861..b200d213 100644 --- a/ReallifeGamemode.Server/Wanted/Jail.cs +++ b/ReallifeGamemode.Server/Wanted/Jail.cs @@ -101,11 +101,6 @@ namespace ReallifeGamemode.Server.Wanted client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes)); ChatService.SendMessage(client, "!{#FF614A}* Du bist nun im Gefängnis für " + timeMinutes + " Minute/n."); - if (announceHq) - { - ChatService.BroadcastFaction("!{#8181E9}HQ: " + user.Name + " wurde ins Gefängnis geliefert.", new List() { 1, 3 }); - } - switch (user.FactionId) { case null: @@ -120,12 +115,19 @@ namespace ReallifeGamemode.Server.Wanted case 4: client.SetSharedData("blipColor", 5); break; - } + + if (announceHq) + { + ChatService.BroadcastFaction("!{#8181E9}HQ: " + user.Name + " wurde ins Gefängnis geliefert.", new List() { 1, 3 }); + break; + } + } else { ChatService.BroadcastFaction("!{#8181E9}HQ: Der Verdächtigte " + user.Name + " wurde soeben ins Krankenhaus eingeliefert.", new System.Collections.Generic.List() { 1, 3 }); + break; } } }