edit EnterVehicleAttempt
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user