really fix engine

This commit is contained in:
hydrant
2020-03-14 00:23:07 +01:00
parent 3057036620
commit bea0f5f653
2 changed files with 17 additions and 0 deletions

View File

@@ -475,6 +475,22 @@ namespace ReallifeGamemode.Server.Events
return; return;
} }
} }
else if (sV is UserVehicle uV)
{
if (uV.UserId != u.Id)
{
player.SendNotification("~r~Du hast keinen Schlüssel.");
return;
}
}
else if (sV is JobVehicle)
{
return;
}
else if (sV is SchoolVehicle)
{
return;
}
} }
VehicleStreaming.SetEngineState(v, !state); VehicleStreaming.SetEngineState(v, !state);
} }

View File

@@ -103,6 +103,7 @@ namespace ReallifeGamemode.Server.Events
{ {
if (uV.UserId != u.Id) if (uV.UserId != u.Id)
{ {
player.SendNotification("~r~Du hast keinen Schlüssel.");
return; return;
} }
} }