Miese Corona Zeiten push für Lenhardt
This commit is contained in:
@@ -151,6 +151,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
#endregion ElevetaorPoints
|
||||
|
||||
#region JobPoints
|
||||
|
||||
JobPoint jobPointRefuseCollector = new JobPoint()
|
||||
{
|
||||
Position = new Vector3(-429.237, -1727.9839, 19.73836),
|
||||
@@ -159,15 +161,18 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
jobPoints.Add(jobPointRefuseCollector);
|
||||
|
||||
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);
|
||||
NAPI.Blip.CreateBlip(318, p.Position, 1f, 0, "Müllmann", 255, 0, true);
|
||||
}
|
||||
|
||||
|
||||
#endregion JobPoints
|
||||
|
||||
#region Shops
|
||||
|
||||
foreach (var shop in ShopManager.clotheStores)
|
||||
{
|
||||
shop.LoadClothes();
|
||||
@@ -186,7 +191,6 @@ namespace ReallifeGamemode.Server.Managers
|
||||
NAPI.TextLabel.CreateTextLabel("Kleiderladen - Dr\u00fccke ~y~E", s.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
|
||||
|
||||
foreach (var shop in ShopManager.itemShops)
|
||||
{
|
||||
shop.LoadItems();
|
||||
@@ -216,12 +220,70 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
}
|
||||
|
||||
public static class MarkerBehinVehicle
|
||||
{
|
||||
public static List<BehindVehiclePoint> behindVehiclePoints = new List<BehindVehiclePoint>();
|
||||
|
||||
public static bool HasMarkerBehind(this Vehicle vehicle)
|
||||
{
|
||||
BehindVehiclePoint point = behindVehiclePoints.Find(v => v.vehicle == vehicle);
|
||||
if (point != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void RemoveMarkerBehind(this Vehicle vehicle)
|
||||
{
|
||||
BehindVehiclePoint point = behindVehiclePoints.Find(v => v.vehicle == vehicle);
|
||||
point.marker.Delete();
|
||||
point.textLabel.Delete();
|
||||
behindVehiclePoints.Remove(point);
|
||||
}
|
||||
|
||||
public static void AddMarkerBehind(this Vehicle vehicle, Vector3 vector3)
|
||||
{
|
||||
Marker marker = NAPI.Marker.CreateMarker(1, vector3, new Vector3(), new Vector3(), 2, new Color(255, 255, 255, 70));
|
||||
TextLabel textLabel = NAPI.TextLabel.CreateTextLabel("Dr\u00fccke ~y~E~s~ um zu benutzen", new Vector3(vector3.X, vector3.Y, vector3.Z + 1.4), 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
BehindVehiclePoint behindVehiclePoint = new BehindVehiclePoint(vehicle, marker, textLabel);
|
||||
behindVehiclePoints.Add(behindVehiclePoint);
|
||||
}
|
||||
}
|
||||
|
||||
public class DutyPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public int FactionId { get; set; }
|
||||
}
|
||||
|
||||
public class BehindVehiclePoint
|
||||
{
|
||||
public Vehicle vehicle { get; set; }
|
||||
public Marker marker { get; set; }
|
||||
public TextLabel textLabel { get; set; }
|
||||
|
||||
public BehindVehiclePoint(Vehicle vehicle, Marker marker, TextLabel textLabel)
|
||||
{
|
||||
this.vehicle = vehicle;
|
||||
this.marker = marker;
|
||||
this.textLabel = textLabel;
|
||||
}
|
||||
|
||||
public void usePoint(Player player)
|
||||
{
|
||||
if (vehicle.HasData("WeaponDealLoad") && vehicle.GetData<bool>("WeaponDealLoad") == true)
|
||||
{
|
||||
if (!player.HasAttachment("ammobox"))
|
||||
{
|
||||
player.PlayAnimation("anim@heists@box_carry@", "idle", 49);
|
||||
player.AddAttachment("ammobox", false);
|
||||
NAPI.Player.SetPlayerCurrentWeapon(player, WeaponHash.Unarmed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class WeaponPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
@@ -237,21 +299,18 @@ public class ClotheshopPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public ClotheShop clotheShop { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ItemshopPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public ItemShop itemShop { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class JobPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public int jobId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ElevatorPoint
|
||||
@@ -260,4 +319,3 @@ public class ElevatorPoint
|
||||
public int FactionId { get; set; }
|
||||
public string Stage { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user