This commit is contained in:
2020-08-04 18:07:41 +02:00
parent 65f66e672e
commit 6847c82da2

View File

@@ -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);
}
}
}