riot nicht abschließen

This commit is contained in:
hydrant
2021-06-01 23:02:30 +02:00
parent 2d9d5aa0b2
commit 0077cabced
3 changed files with 2249 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ namespace ReallifeGamemode.Server.Events
}
else if (sV is FactionVehicle fV)
{
if (!fV.GetOwners().Contains(u.FactionId ?? 0))
if (!fV.GetOwners().Contains(u.FactionId ?? 0) || sV.Model == VehicleHash.Riot)
{
return;
}
@@ -181,7 +181,7 @@ namespace ReallifeGamemode.Server.Events
}
else if (sV is FactionVehicle fV)
{
if (!fV.GetOwners().Contains(u.FactionId ?? 0))
if (!fV.GetOwners().Contains(u.FactionId ?? 0) || sV.Model == VehicleHash.Riot)
{
return;
}