Zum testen: rentcar system
This commit is contained in:
@@ -32,6 +32,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
public static List<AmmunationPoint> AmmunationPoints = new List<AmmunationPoint>();
|
||||
|
||||
public static List<RentcarPoint> rentcarPoints = new List<RentcarPoint>();
|
||||
|
||||
public static Vector3 eventportPosition;
|
||||
public static bool eventportActive = false;
|
||||
|
||||
@@ -307,6 +309,35 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
|
||||
#endregion Shops
|
||||
|
||||
#region RentCar
|
||||
|
||||
RentcarPoint rentCarNoobSpawn = new RentcarPoint()
|
||||
{
|
||||
Position = Rentcar.noobSpawnBlipPosition
|
||||
};
|
||||
RentcarPoint rentCarStadthalle = new RentcarPoint()
|
||||
{
|
||||
Position = Rentcar.stadthalleBlipPosition
|
||||
};
|
||||
RentcarPoint rentCarKnast = new RentcarPoint()
|
||||
{
|
||||
Position = Rentcar.knastBlipPosition
|
||||
};
|
||||
|
||||
rentcarPoints.Add(rentCarNoobSpawn);
|
||||
rentcarPoints.Add(rentCarStadthalle);
|
||||
rentcarPoints.Add(rentCarKnast);
|
||||
|
||||
foreach (RentcarPoint j in rentcarPoints)
|
||||
{
|
||||
NAPI.Marker.CreateMarker(1, new Vector3(j.Position.X, j.Position.Y, j.Position.Z - 2), new Vector3(j.Position.X, j.Position.Y, j.Position.Z + 1),
|
||||
new Vector3(0, 0, 0), 1.5f, new Color(255, 255, 255, 50), false, 0);
|
||||
NAPI.TextLabel.CreateTextLabel("~y~Fahrzeugverleih\n~w~Drücke ~b~E~w~ um ein Fahrzeug zu mieten", j.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
|
||||
|
||||
#endregion RentCar
|
||||
}
|
||||
|
||||
[RemoteEvent("sendClientToStage")]
|
||||
@@ -439,3 +470,9 @@ public class AmmunationPoint
|
||||
public Vector3 Position { get; set; }
|
||||
public Ammunation Ammunation { get; set; }
|
||||
}
|
||||
|
||||
public class RentcarPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user