frak braucht mindestens 6 autos
This commit is contained in:
@@ -398,6 +398,12 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
}
|
}
|
||||||
else if (selection == "Verkaufen")
|
else if (selection == "Verkaufen")
|
||||||
{
|
{
|
||||||
|
if (dbContext.FactionVehicles.ToList().Where(f => f.GetOwners().Contains(user.FactionId.Value)).Count() <= 6)
|
||||||
|
{
|
||||||
|
ChatService.ErrorMessage(player, "Die Fraktion muss mindestens 6 Fahrzeuge besitzen");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var backPrice = factionVehicle.BuyPrice;
|
var backPrice = factionVehicle.BuyPrice;
|
||||||
|
|
||||||
user.Faction.BankAccount.Balance += backPrice;
|
user.Faction.BankAccount.Balance += backPrice;
|
||||||
|
|||||||
Reference in New Issue
Block a user