aufzug XD
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using GTANetworkAPI;
|
using GTANetworkAPI;
|
||||||
using ReallifeGamemode.Server.Shop.Clothing;
|
using ReallifeGamemode.Server.Shop.Clothing;
|
||||||
using ReallifeGamemode.Server.Shop.SevenEleven;
|
using ReallifeGamemode.Server.Shop.SevenEleven;
|
||||||
@@ -160,7 +161,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
clotheshopPoints.Add(shopPoint);
|
clotheshopPoints.Add(shopPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(ClotheshopPoint s in clotheshopPoints)
|
foreach (ClotheshopPoint s in clotheshopPoints)
|
||||||
{
|
{
|
||||||
NAPI.Marker.CreateMarker(1, new Vector3(s.Position.X, s.Position.Y, s.Position.Z - 2), new Vector3(s.Position.X, s.Position.Y, s.Position.Z + 1),
|
NAPI.Marker.CreateMarker(1, new Vector3(s.Position.X, s.Position.Y, s.Position.Z - 2), new Vector3(s.Position.X, s.Position.Y, s.Position.Z + 1),
|
||||||
new Vector3(0, 0, 0), 2, new Color(255, 255, 255, 50), false, 0);
|
new Vector3(0, 0, 0), 2, new Color(255, 255, 255, 50), false, 0);
|
||||||
@@ -168,7 +169,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach(var shop in ShopManager.itemShops)
|
foreach (var shop in ShopManager.itemShops)
|
||||||
{
|
{
|
||||||
shop.LoadItems();
|
shop.LoadItems();
|
||||||
ItemshopPoint shopPoint = new ItemshopPoint()
|
ItemshopPoint shopPoint = new ItemshopPoint()
|
||||||
@@ -179,7 +180,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
itemshopPoints.Add(shopPoint);
|
itemshopPoints.Add(shopPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(ItemshopPoint s in itemshopPoints)
|
foreach (ItemshopPoint s in itemshopPoints)
|
||||||
{
|
{
|
||||||
NAPI.Marker.CreateMarker(1, new Vector3(s.Position.X, s.Position.Y, s.Position.Z - 2), new Vector3(s.Position.X, s.Position.Y, s.Position.Z + 1),
|
NAPI.Marker.CreateMarker(1, new Vector3(s.Position.X, s.Position.Y, s.Position.Z - 2), new Vector3(s.Position.X, s.Position.Y, s.Position.Z + 1),
|
||||||
new Vector3(0, 0, 0), 2, new Color(255, 255, 255, 50), false, 0);
|
new Vector3(0, 0, 0), 2, new Color(255, 255, 255, 50), false, 0);
|
||||||
@@ -189,7 +190,11 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
#endregion Shops
|
#endregion Shops
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[RemoteEvent("sendClientToStage")]
|
||||||
|
public void ElevatorSendToStage(Player player, string level)
|
||||||
|
{
|
||||||
|
player.Position = ElevatorPoints.Where(e => e.Stage == level).First().Position;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,4 +235,4 @@ public class ElevatorPoint
|
|||||||
public int FactionId { get; set; }
|
public int FactionId { get; set; }
|
||||||
public string Stage { get; set; }
|
public string Stage { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user