This commit is contained in:
2021-04-28 00:39:55 +02:00
parent c26d477557
commit 4403f0c238
5 changed files with 52 additions and 19 deletions

View File

@@ -21,10 +21,10 @@ namespace ReallifeGamemode.Server.Wanted
using var dbContext = new DatabaseContext();
User user = player.GetUser(dbContext);
if (user.Wanteds <= 0)
if (user.Wanteds <= 0)
return;
player.SendChatMessage("~y~Du hast erfolgreich einen Wanted abgetaucht.");
player.TriggerEvent("BN_ShowWithPicture", "Abgetaucht", "Lester", "Du hast erfolgreich ein Wanted ~y~abgetaucht", "CHAR_LESTER", 1, true);
user.Wanteds -= 1;
if (user.Wanteds == 0)
{