riot logs
This commit is contained in:
@@ -826,6 +826,10 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id;
|
int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id;
|
||||||
int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1;
|
int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1;
|
||||||
|
|
||||||
|
IItem itemToGive = currentModel == 3 ? (IItem)cannabisItem : cannabisSeedsItem;
|
||||||
|
|
||||||
|
logger.LogInformation("Cop {0} put the item {1} ({2}, amount: {3}) in the riot", player.Name, itemToGive.Name, itemToGive.Id, amountToGive);
|
||||||
|
|
||||||
player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen");
|
player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen");
|
||||||
|
|
||||||
InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);
|
InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);
|
||||||
|
|||||||
Reference in New Issue
Block a user