again fix
This commit is contained in:
@@ -706,7 +706,15 @@ namespace reallife_gamemode.Server.Commands
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z + value);
|
||||
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z + value);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.Position = new Vector3(player.Position.X, player.Position.Y, player.Position.Z + value);
|
||||
}
|
||||
}
|
||||
|
||||
[Command("dn", "~m~Benutzung: ~s~/dn [Wert]")]
|
||||
@@ -717,7 +725,14 @@ namespace reallife_gamemode.Server.Commands
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z - value);
|
||||
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z - value);
|
||||
} else
|
||||
{
|
||||
player.Position = new Vector3(player.Position.X, player.Position.Y, player.Position.Z - value);
|
||||
}
|
||||
}
|
||||
|
||||
[Command("rt", "~m~Benutzung: ~s~/rt [Wert]")]
|
||||
|
||||
Reference in New Issue
Block a user