fix servercrash taxifahrer

This commit is contained in:
Michael
2020-07-01 22:23:32 +02:00
parent 3c5cf9cd95
commit cef952487e
4 changed files with 20 additions and 5 deletions

View File

@@ -274,7 +274,9 @@ namespace ReallifeGamemode.Server.Managers
{
if (player.GetUser().JobId == 1)//Taxifahrer
{
//VehicleManager.DeleteVehicle(v);
player.TriggerEvent("CLIENT:stopFare");
player.Position = new Vector3(-628.598388671875, -2107.609130859375, 6.072586536407471);
player.Heading = (-171.50303649902344f);
}
if (player.GetUser().JobId == 2)//Müllmann
{
@@ -327,11 +329,12 @@ namespace ReallifeGamemode.Server.Managers
}
job.StopJob(player);
/*if (player.GetUser().JobId == 1)//Taxifahrer
if (player.GetUser().JobId == 1)//Taxifahrer
{
player.Position = new Vector3(-628.598388671875, -2107.609130859375, 6.072586536407471);
player.Heading = (-171.50303649902344f);
}*/
}
if (player.GetUser().JobId == 2)//Müllmann
{
player.Position = new Vector3(485.4114685058594, -2173.25, 5.918273448944092);