From a188392de3dbe57400e97ba02b952e3730e43d02 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 2 Sep 2019 21:14:55 +0200 Subject: [PATCH] Haus Blips nicht immer auf minimap --- ReallifeGamemode.Server/Managers/HouseManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Server/Managers/HouseManager.cs b/ReallifeGamemode.Server/Managers/HouseManager.cs index 279a43d5..e3838bcf 100644 --- a/ReallifeGamemode.Server/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server/Managers/HouseManager.cs @@ -104,17 +104,17 @@ namespace ReallifeGamemode.Server.Managers houseMarkers[house.Id] = NAPI.Marker.CreateMarker(MarkerType.VerticalCylinder, house.Position.Subtract(new Vector3(0, 0, 1.7)), new Vector3(), new Vector3(), 1.6f, new Color(255, 255, 255)); string text = $"~g~Zum Verkauf\n~s~{house.Type}\nPreis: ~y~{(house.Price == 0 ? "~r~Nicht verkäuflich" : house.Price.ToMoneyString())}"; - byte houseColor = 11; if (house.OwnerId != null) { text = $"{house.Type}\n~s~Besitzer: ~y~{house.Owner.Name}\n~s~Mietpreis: ~g~{house.RentalFee.ToMoneyString()}"; - houseColor = 4; + } + else + { + houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 1.0f, 11, "Haus", shortRange: true); } - houseBlips[house.Id] = NAPI.Blip.CreateBlip(40, house.Position, 1.0f, houseColor, "Haus"); houseLabels[house.Id] = NAPI.TextLabel.CreateTextLabel(text, house.Position, 10f, 1f, 0, new Color(255, 255, 255)); - if (house.Price != 0) { houseColShapes[house.Id] = NAPI.ColShape.CreateCylinderColShape(house.Position.Subtract(new Vector3(0, 0, 2)), 2.0f, 5f);