"Blocked Items": {},
please write an example of filling in items
"Blocked Items": {},Suggestion
hi, sure
"Blocked Items": {
"explosive.timed": "You cannot teleport with C4!",
"gunpowder": "You cannot teleport with gun powder!",
"explosives": "You cannot teleport with explosives!"
}, thanks
Merged post
New
if you put an item forbidden to teleport into a standard rust backpack, then teleportation will still happen
ok thanks, fixed in next update
private string CheckItems(BasePlayer player)
{
var backpack = player.inventory.GetBackpackWithInventory();
foreach (var blockedItem in ReverseBlockedItems)
{
if (player.inventory.FindItemByItemID(blockedItem.Key) != null)
{
return blockedItem.Value;
}
if (backpack != null && backpack.contents.FindItemByItemID(blockedItem.Key) != null)
{
return blockedItem.Value;
}
}
return null;
}