RENTCAR FIX DANKE BALBO
This commit is contained in:
@@ -355,41 +355,6 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
user.SetBlipAndNametagColor();
|
user.SetBlipAndNametagColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Rentcar Points
|
|
||||||
if (nearestRentcarPoint != null)
|
|
||||||
{
|
|
||||||
if (player.IsInVehicle)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Noobspawn
|
|
||||||
if (player.Position.DistanceTo(PositionManager.rentcarPoints[0].Position) <= 1.5)
|
|
||||||
{
|
|
||||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.noobspawnVehicleProperties), "noobspawn");
|
|
||||||
}
|
|
||||||
//Stadthalle
|
|
||||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[1].Position) <= 1.5)
|
|
||||||
{
|
|
||||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.stadthalleVehicleProperties), "lamesa");
|
|
||||||
}
|
|
||||||
//Knast
|
|
||||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[2].Position) <= 1.5)
|
|
||||||
{
|
|
||||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.knastVehicleProperties), "stadthalle");
|
|
||||||
}
|
|
||||||
//Paleto
|
|
||||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[3].Position) <= 1.5)
|
|
||||||
{
|
|
||||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "knast");
|
|
||||||
}
|
|
||||||
//Lamesa
|
|
||||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[4].Position) <= 1.5)
|
|
||||||
{
|
|
||||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "paleto");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nearestWeapon != null) // Weapon Point
|
if (nearestWeapon != null) // Weapon Point
|
||||||
{
|
{
|
||||||
List<string> primarys = new List<string>();
|
List<string> primarys = new List<string>();
|
||||||
@@ -528,6 +493,42 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
player.CuffPlayer(nearestCuffPlayer);
|
player.CuffPlayer(nearestCuffPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Rentcar Points
|
||||||
|
if (nearestRentcarPoint != null)
|
||||||
|
{
|
||||||
|
if (player.IsInVehicle)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Noobspawn
|
||||||
|
if (player.Position.DistanceTo(PositionManager.rentcarPoints[0].Position) <= 1.5)
|
||||||
|
{
|
||||||
|
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.noobspawnVehicleProperties), "noobspawn");
|
||||||
|
}
|
||||||
|
//Stadthalle
|
||||||
|
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[1].Position) <= 1.5)
|
||||||
|
{
|
||||||
|
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.stadthalleVehicleProperties), "lamesa");
|
||||||
|
}
|
||||||
|
//Knast
|
||||||
|
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[2].Position) <= 1.5)
|
||||||
|
{
|
||||||
|
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.knastVehicleProperties), "stadthalle");
|
||||||
|
}
|
||||||
|
//Paleto
|
||||||
|
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[3].Position) <= 1.5)
|
||||||
|
{
|
||||||
|
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "knast");
|
||||||
|
}
|
||||||
|
//Lamesa
|
||||||
|
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[4].Position) <= 1.5)
|
||||||
|
{
|
||||||
|
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "paleto");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (nearestElevatorPoint != null)
|
if (nearestElevatorPoint != null)
|
||||||
{
|
{
|
||||||
List<string> stages = new List<string>();
|
List<string> stages = new List<string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user