diverse fixes und improvments

This commit is contained in:
hydrant
2021-05-27 21:41:24 +02:00
parent 5884ee50d9
commit 1dea6bc28d
4 changed files with 29 additions and 28 deletions

View File

@@ -588,8 +588,8 @@ namespace ReallifeGamemode.Server.Events
dbcontext.SaveChanges();
}
//Rentcar Points
if (nearestRentcarPoint != null)
//Rentcar Points
if (nearestRentcarPoint != null)
{
if (player.IsInVehicle)
{
@@ -861,6 +861,8 @@ namespace ReallifeGamemode.Server.Events
int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id;
int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1;
player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen");
InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);
}
}