Hi everyone!
After couple of internal DoS attaks on my server I decided to log all items spawns on the server side from some plugin.
How I can hook drop from inventory event?
Maybe OnItemDeployed ?
This will be my 2nd plugin for today and for all time)))
Thanks for your help! Telerik JustDecompile is so COOL!![]()
Solved Hooking into inventory?
Discussion in 'Rust Development' started by not777, Jan 27, 2016.
-
Wulf Community Admin
Item spawns from what?
-
[DOUBLEPOST=1453976397,1453901699][/DOUBLEPOST]sooo, I find what I need ))
Code:int iterat=0;void OnItemCraftFinished(ItemCraftTask task, Item item) { if (task.owner.inventory.containerMain.itemList.Count > 23 && task.owner.inventory.containerBelt.itemList.Count > 5) { item.MarkDirty(); item.RemoveFromContainer(); item.Remove(0f); iterat++; if (iterat > 100) { rust.BroadcastChat(task.owner.displayName + " пытался высрать говно, но оно не выпало из жопы :)", null, "76561198148468911"); iterat=0; } } }
Last edited by a moderator: Jan 28, 2016