improve wt check
This commit is contained in:
@@ -129,7 +129,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
||||||
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
|
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
|
||||||
|
|
||||||
if (fac.Id == 1 | fac.Id == 3)
|
if (WEAPON_DEAL_STAATSFRAK_IDS.Contains(fac.Id))
|
||||||
{
|
{
|
||||||
fac.WeaponDealTime = 180;
|
fac.WeaponDealTime = 180;
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
|
|||||||
Reference in New Issue
Block a user