WT: Chatmeldung, wenn kein richtiges Fahrzeug vorhanden
This commit is contained in:
@@ -27,6 +27,14 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
using (var context = new DatabaseContext())
|
||||
{
|
||||
FactionVehicle factionVehicle = context.FactionVehicles.ToList().Where(f => f.GetOwners().Contains(user.FactionId ?? 0) && f.Model == VehicleHash.Burrito3).FirstOrDefault();
|
||||
|
||||
if (factionVehicle == null)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Deine Fraktion hat kein geeignetes Fahrzeug für einen Waffentransport");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Vehicle fVeh = VehicleManager.GetVehicleFromServerVehicle(factionVehicle);
|
||||
|
||||
if (fVeh.Position.DistanceTo(client.Position) > 50)
|
||||
|
||||
Reference in New Issue
Block a user