From a76ac747fd28e1d5c4f3328729598ad04cbe9af4 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 15 Apr 2021 13:17:27 +0200 Subject: [PATCH] =?UTF-8?q?fix=20afk=20wt=20mitz=C3=A4hlen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs b/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs index 54830d89..560c4e4b 100644 --- a/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs +++ b/ReallifeGamemode.Server/WeaponDeal/WeaponDealManager.cs @@ -196,7 +196,7 @@ namespace ReallifeGamemode.Server.WeaponDeal fVeh.AddAttachment("weapondeal1", false); fVeh.AddAttachment("weapondeal2", false); InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh); - int oMembers = NAPI.Pools.GetAllPlayers().Where(p => p.IsLoggedIn() && p.GetUser(context).FactionId == user.FactionId).Count(); + int oMembers = NAPI.Pools.GetAllPlayers().Where(p => !p.IsAfk() && p.IsLoggedIn() && p.GetUser(context).FactionId == user.FactionId).Count(); if (factionVehicle.GetOwners().Contains(8) || factionVehicle.GetOwners().Contains(7)) {