From 1242ae575b28c7e3668e3f7fd2fafba90940a161 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 11 May 2020 14:34:01 +0200 Subject: [PATCH] WT kann nicht mehr verkauft werden --- ReallifeGamemode.Server/Managers/InteractionManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReallifeGamemode.Server/Managers/InteractionManager.cs b/ReallifeGamemode.Server/Managers/InteractionManager.cs index b316ab0d..08cd4e80 100644 --- a/ReallifeGamemode.Server/Managers/InteractionManager.cs +++ b/ReallifeGamemode.Server/Managers/InteractionManager.cs @@ -406,6 +406,12 @@ namespace ReallifeGamemode.Server.Managers return; } + if (factionVehicle.Model == VehicleHash.Policet || factionVehicle.Model == VehicleHash.Burrito3) + { + ChatService.ErrorMessage(player, "Der WT kann nicht verkauft werden"); + return; + } + var backPrice = factionVehicle.BuyPrice; user.Faction.BankAccount.Balance += backPrice;