edit EnterVehicleAttempt

This commit is contained in:
xSprite
2018-10-17 16:36:18 +02:00
parent a85e0b96d6
commit 8ad58346e2
2 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,6 @@ namespace reallife_gamemode.Server.Commands
ChatService.NotAuthorized(player);
return;
}
if (player.IsInVehicle && player.VehicleSeat == -1) player.Vehicle.Position = new Vector3(x, y, z);
else player.Position = new Vector3(x, y, z);
}

View File

@@ -18,8 +18,9 @@ namespace reallife_gamemode.Server.Events
if((vehicle.GetData("factionId") != player.GetUser().FactionId) && seat == 0)
{
//TODO REWORK
player.SetIntoVehicle(vehicle, 1);
player.WarpOutOfVehicle();
//player.SetIntoVehicle(vehicle, 1);
//player.WarpOutOfVehicle();
player.Position = new Vector3(player.Position.X, player.Position.Y, player.Position.Z);
player.SendChatMessage("Du hast kein Recht in dieses Fahrzeug als Fahrer einzusteigen.");
return;
}