From 739faa92854caf7b38bb7a9fdcc51f946786b800 Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 8 Apr 2021 20:25:09 +0200 Subject: [PATCH] hqmessage wenn wanteds komplett abgetaucht --- ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs b/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs index a9640a8b..ab02d365 100644 --- a/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs +++ b/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs @@ -9,6 +9,7 @@ using GTANetworkAPI; using ReallifeGamemode.Database.Entities; using ReallifeGamemode.Database.Models; using ReallifeGamemode.Server.Extensions; +using ReallifeGamemode.Server.Services; namespace ReallifeGamemode.Server.Wanted { @@ -68,10 +69,11 @@ namespace ReallifeGamemode.Server.Wanted if (waTimer[user.Id] <= 0) { ResetWantedTimeToElapse(player); - player.SendChatMessage("~y~Du hast erfolgtreich einen Wanted abgetaucht."); + player.SendChatMessage("~y~Du hast erfolgreich einen Wanted abgetaucht."); user.Wanteds -= 1; if (user.Wanteds == 0) { + ChatService.HQMessage(player.Name + " konnte solange abtauchen, sodass er nicht mehr gesucht wird."); user.SetBlipAndNametagColor(); dbContext.SaveChanges(); }