JA
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user