From 6847c82da2af01b7241ce38ddfd790863b9c4ace Mon Sep 17 00:00:00 2001 From: balbo Date: Tue, 4 Aug 2020 18:07:41 +0200 Subject: [PATCH] JA --- ReallifeGamemode.Server/Commands/UserCommands.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/UserCommands.cs b/ReallifeGamemode.Server/Commands/UserCommands.cs index 43671881..e09c7cc1 100644 --- a/ReallifeGamemode.Server/Commands/UserCommands.cs +++ b/ReallifeGamemode.Server/Commands/UserCommands.cs @@ -43,6 +43,7 @@ namespace ReallifeGamemode.Server.Commands pVeh = player.Vehicle; } else { + player.SendChatMessage("else"); pVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault(); } @@ -53,13 +54,8 @@ namespace ReallifeGamemode.Server.Commands if (pVeh.GetServerVehicle() is ServerVehicle veh) { - if (player.GetUser().IsAdmin(AdminLevel.SUPPORTER)) - { - ChatService.SendMessage(player, "~m~" + ((VehicleHash)pVeh.Model) + " | " + veh.ToString() + " | Farbe 1: " + pVeh.PrimaryColor + " | Farbe 2: " + pVeh.SecondaryColor + " | ID: " + pVeh.Handle.Value); - return; - } + ChatService.SendMessage(player, "~m~" + ((VehicleHash)pVeh.Model) + " | " + veh.ToString() + " | Farbe 1: " + pVeh.PrimaryColor + " | Farbe 2: " + pVeh.SecondaryColor + " | ID: " + pVeh.Handle.Value); } - ChatService.SendMessage(player, "~m~" + ((VehicleHash)pVeh.Model) + " | Farbe 1: " + pVeh.PrimaryColor + " | Farbe 2: " + pVeh.SecondaryColor + " | ID: " + pVeh.Handle.Value); } } }