JA
This commit is contained in:
@@ -43,6 +43,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
pVeh = player.Vehicle;
|
pVeh = player.Vehicle;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
player.SendChatMessage("else");
|
||||||
pVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault();
|
pVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,14 +53,9 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pVeh.GetServerVehicle() is ServerVehicle veh)
|
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);
|
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) + " | Farbe 1: " + pVeh.PrimaryColor + " | Farbe 2: " + pVeh.SecondaryColor + " | ID: " + pVeh.Handle.Value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user