WT: PoliceT hinzugefügt und keine Route wenn beladen
This commit is contained in:
@@ -23,7 +23,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (vehicle.GetServerVehicle() is FactionVehicle veh)
|
||||
{
|
||||
User u = client.GetUser();
|
||||
if (u.FactionId != null && veh.GetOwners().Contains(u.FactionId.Value) && (veh.Model == VehicleHash.Burrito3) && vehicle.HasData("weaponDeal") && vehicle.GetData<bool>("weaponDeal") == true)
|
||||
if (u.FactionId != null
|
||||
&& veh.GetOwners().Contains(u.FactionId.Value)
|
||||
&& (veh.Model == VehicleHash.Burrito3 || veh.Model == VehicleHash.Policet)
|
||||
&& vehicle.HasData("weaponDeal")
|
||||
&& vehicle.GetData<bool>("weaponDeal") == true
|
||||
&& (!vehicle.HasData("WeaponDealLoad") || vehicle.GetData<bool>("WeaponDealLoad") == false))
|
||||
{
|
||||
List<Vector3> dealPoint = new List<Vector3>();
|
||||
dealPoint.Add(vehicle.GetData<Vector3>("weaponDealPoint"));
|
||||
|
||||
Reference in New Issue
Block a user