Busfahrer und PilotenSystem überarbeitet, LoginAmbiente eingefügt, Überarbeitung der Türen
This commit is contained in:
@@ -20,7 +20,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
public static List<ItemshopPoint> itemshopPoints = new List<ItemshopPoint>();
|
||||
|
||||
public static List<JobPoint> jobPoints = new List<JobPoint>();
|
||||
public static List<JobPoint> JobPoints = new List<JobPoint>();
|
||||
|
||||
[ServerEvent(Event.ResourceStart)]
|
||||
public void OnResourceStart()
|
||||
@@ -117,7 +117,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
#endregion JailReleasePoints
|
||||
|
||||
#region ElevetaorPoints
|
||||
#region ElevatorPoints
|
||||
|
||||
ElevatorPoint FibElevatorPointEG = new ElevatorPoint()
|
||||
{
|
||||
@@ -149,24 +149,69 @@ namespace ReallifeGamemode.Server.Managers
|
||||
NAPI.TextLabel.CreateTextLabel("Aufzug - Dr\u00fccke ~y~E", j.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
|
||||
#endregion ElevetaorPoints
|
||||
#endregion ElevatorPoints
|
||||
|
||||
#region JobPoints
|
||||
|
||||
JobPoint jobPointRefuseCollector = new JobPoint()
|
||||
{
|
||||
Position = new Vector3(-429.237, -1727.9839, 19.73836),
|
||||
jobId = 2
|
||||
jobId = 2,
|
||||
Skill = 0
|
||||
};
|
||||
JobPoint jobPointPilot = new JobPoint()
|
||||
{
|
||||
Position = new Vector3(1707.2711181640625, 3276.216064453125, 41.155494689941406),
|
||||
jobId = 3,
|
||||
Skill = 0
|
||||
};
|
||||
JobPoint jobPointPilot2 = new JobPoint()
|
||||
{
|
||||
Position = new Vector3(-1622.48, -3151.58, 13),
|
||||
jobId = 3,
|
||||
Skill = 300
|
||||
};
|
||||
JobPoint jobPointBusDriver = new JobPoint()
|
||||
{
|
||||
Position = new Vector3(-535.46, -2144.97, 5.95),
|
||||
jobId = 4,
|
||||
Skill = 0
|
||||
};
|
||||
|
||||
jobPoints.Add(jobPointRefuseCollector);
|
||||
JobPoints.Add(jobPointRefuseCollector);
|
||||
JobPoints.Add(jobPointPilot);
|
||||
JobPoints.Add(jobPointBusDriver);
|
||||
|
||||
foreach(JobPoint p in jobPoints)
|
||||
foreach (JobPoint p in JobPoints)
|
||||
{
|
||||
NAPI.Marker.CreateMarker(1, new Vector3(p.Position.X, p.Position.Y, p.Position.Z - 2), new Vector3(p.Position.X, p.Position.Y, p.Position.Z + 1),
|
||||
new Vector3(0, 0, 0), 1.5f, new Color(255, 255, 255, 50), false, 0);
|
||||
NAPI.TextLabel.CreateTextLabel("M\u00fcllmann - Dr\u00fccke ~y~J~s~ um Job zu starten", p.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
NAPI.Blip.CreateBlip(318, p.Position, 1f, 0, "Müllmann", 255, 0,true);
|
||||
if (p.jobId == 2)
|
||||
{
|
||||
NAPI.TextLabel.CreateTextLabel("M\u00fcllmann - Dr\u00fccke ~y~E~s~ um Job zu starten", p.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
NAPI.Blip.CreateBlip(318, p.Position, 1f, 16, "Müllmann", 255, 0, true);
|
||||
}
|
||||
if (p.jobId == 3)
|
||||
{
|
||||
if (p.Skill < 2)
|
||||
{
|
||||
NAPI.TextLabel.CreateTextLabel("Pilot Anf\u00E4nger - Dr\u00fccke ~y~E~s~ um Job zu starten", p.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
NAPI.Blip.CreateBlip(251, p.Position, 1f, 16, "Pilot Anfänger", 255, 0, true);
|
||||
}
|
||||
if (p.Skill >= 2)
|
||||
{
|
||||
NAPI.TextLabel.CreateTextLabel("Pilot Fortgeschritten - Dr\u00fccke ~y~E~s~ um Job zu starten", p.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
NAPI.Blip.CreateBlip(251, p.Position, 1f, 16, "Pilot Fortgeschritten", 255, 0, true);
|
||||
}
|
||||
}
|
||||
if (p.jobId == 4)
|
||||
{
|
||||
NAPI.TextLabel.CreateTextLabel("Busfahrer - Dr\u00fccke ~y~E~s~ um Job zu starten", p.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
NAPI.Blip.CreateBlip(513, p.Position, 1f, 16, "Busfahrer", 255, 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion JobPoints
|
||||
|
||||
#region Shops
|
||||
foreach (var shop in ShopManager.clotheStores)
|
||||
{
|
||||
@@ -251,6 +296,7 @@ public class JobPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public int jobId { get; set; }
|
||||
public int Skill { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user