haus id in textlabel

This commit is contained in:
hydrant
2020-05-05 21:08:13 +02:00
parent c4f697e0a3
commit 59f7c99c9f

View File

@@ -53,11 +53,11 @@ namespace ReallifeGamemode.Server.Core.Managers
playerInColShape[house.Id] = new List<IPlayer>(); playerInColShape[house.Id] = new List<IPlayer>();
houseMarkers[house.Id] = Api.Marker.CreateMarker(MarkerType.VerticalCylinder, housePos.Subtract(new Position(0, 0, 1.7)), new Position(), new Position(), 1.6f, Color.White); houseMarkers[house.Id] = Api.Marker.CreateMarker(MarkerType.VerticalCylinder, housePos.Subtract(new Position(0, 0, 1.7)), new Position(), new Position(), 1.6f, Color.White);
string text = $"~g~Zum Verkauf\n~s~{house.Type}\nPreis: ~y~{(house.Price == 0 ? "~r~Nicht verkäuflich" : house.Price.ToMoneyString())}"; string text = $"~g~Zum Verkauf~s~(ID: {house.Id})\n~s~{house.Type}\nPreis: ~y~{(house.Price == 0 ? "~r~Nicht verkäuflich" : house.Price.ToMoneyString())}";
if (house.OwnerId != null) if (house.OwnerId != null)
{ {
text = $"{house.Type}\n~s~Besitzer: ~y~{house.Owner.Name}"; text = $"{house.Type}~s~ (ID: {house.Id})\n~s~Besitzer: ~y~{house.Owner.Name}";
if (house.RentalFee != 0) if (house.RentalFee != 0)
{ {