Man, check the config first =)
"Hour of block after wipe": X, - this option automaticly sets the block to the wipe datetime + X Hours
If you want to adjust it manually - change this one:
"Block end time": "01.10.2017 04:29:17", - this is the time then the block would end.

Items Blocker
Prevents some items from being used for a limited period of time. With UI.
Total Downloads: 1,864 - First Release: Apr 11, 2017 - Last Update: Mar 12, 2018
- 5/5, 15 likes
-
block end time 01.01.2017....i just changed the date and oxide.reload ItemBlocker and voila
-
-
Code:
Failed to call hook 'OnReloadMagazine' on plugin 'ItemsBlocker v3.1.11' (ArgumentOutOfRangeException: Argument is out of range. Parameter name: index) at System.Collections.Generic.List`1[Item].get_Item (Int32 index) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ItemsBlocker.IsAmmoBlocked (.BasePlayer owner, .BaseProjectile proj) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ItemsBlocker.OnReloadMagazine (.BasePlayer player, .BaseProjectile projectile) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ItemsBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
I know about this error, but I was unable to reproduce it in any way. If you would be able to provide some more information I may be able to fix it.
Also - right now my PC is broken and I'm waiting for the motherboard to come(for almost a mounth already =_=), so I don't have access to the game, server or the IDE to see what the problem can be... =( -
How add new shotgun spas12? What is shotname?
-
For spas it would be "shotgun.spas12".
Full english name("Spas-12 Shotgun") should also work.
I'm planning to add the chat command to get the shortname of the item you are currently held in your hand btw. But no idea then it would be added ¯\_(ツ)_/¯ -
Спасибо )))
-
Vlad-00003 updated Items Blocker with a new update entry:
3.1.2
-
Hello,
How can I block item permanently so the player wont be enable to use them, also how do i remove the display listed down here with a screenshot
screenshot 1 : Screenshot
screenshot 2 : Screenshot
Json file down here => if you have some time apply these question the Json file
Thx!Attached Files:
-
-
Permametly? Do you still need over items to be timed blocked? If no - just set the "Block end time" to something rediculus. Like "01.10.2999 00:00:00" and that's it. the items in the list would be blocked forever. (well,untill the jan first of 2999, but nah)
If you still need over items to be blocked by time - you can crete a copy of this plugin, rename it (don't forget to also rename the class in cs file) and in the config of the copy - do the same as above.
About the gui - well.
The on screen panel can be turened off by changing "GUI Settings" -> "Use On Screen Panel" to false, and the main gui that comes in while player tries to use the item? Well... there is no easy way to diable it (also - why doing so? The player should know why he can't use an item.... ), but - you can set "Use chat insted of GUI" to true, in this case - this gui would be replaced with the chat message.
This message would use the same text, as GUI. You can change the text in the oxied\lang\en(ru)\ItemsBlocker.json -
after the rust update I get this:
Code:(14:47:43) | Failed to call hook 'OnReloadWeapon' on plugin 'ItemsBlocker v3.1.11' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index) at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <e1a80661d61443feb3dbdaac88eeb776>:0 at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0 at Oxide.Plugins.ItemsBlocker.IsAmmoBlocked (BasePlayer owner, BaseProjectile proj) [0x000fc] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.ItemsBlocker.OnReloadWeapon (BasePlayer player, BaseProjectile projectile) [0x00025] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.ItemsBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00471] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <17b9f46063fe4ac9ae4a1000712647ce>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0 (14:47:47) | Failed to call hook 'OnReloadMagazine' on plugin 'ItemsBlocker v3.1.11' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index) at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <e1a80661d61443feb3dbdaac88eeb776>:0 at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0 at Oxide.Plugins.ItemsBlocker.IsAmmoBlocked (BasePlayer owner, BaseProjectile proj) [0x000fc] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.ItemsBlocker.OnReloadMagazine (BasePlayer player, BaseProjectile projectile) [0x00031] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.ItemsBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004a7] in <dff6421cf7b94046b036468202f7b119>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <17b9f46063fe4ac9ae4a1000712647ce>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
-
I know about this bug, but I was unable to recreate it, thu I can't fix something I have no idea about.
So - if you want to help me fixing this you have to do this:
In the latest version there is
Code://#define CHECK using Oxide.Game.Rust.Cui; using System; using System.Collections.Generic; using System.Globalization; using UnityEngine; using System.Linq; using Oxide.Core.Plugins; using Newtonsoft.Json; using System.Collections; using Oxide.Core; using System.IO;namespace Oxide.Plugins { ...
Code:#define CHECK using Oxide.Game.Rust.Cui; using System; using System.Collections.Generic; using System.Globalization; using UnityEngine; using System.Linq; using Oxide.Core.Plugins; using Newtonsoft.Json; using System.Collections; using Oxide.Core; using System.IO;namespace Oxide.Plugins {
Thanks in advise! -
-
Parameter name: index)
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <e1a80661d61443feb3dbdaac88eeb776>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0
at Oxide.Plugins.ItemsBlocker.IsAmmoBlocked (BasePlayer owner, BaseProjectile proj) [0x000fc] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.ItemsBlocker.OnReloadWeapon (BasePlayer player, BaseProjectile projectile) [0x00025] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.ItemsBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00471] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09b255f9a88d4ffda4779759134e116d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
(17:41:40) | Failed to call hook 'OnReloadMagazine' on plugin 'ItemsBlocker v3.1.11' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <e1a80661d61443feb3dbdaac88eeb776>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0
at Oxide.Plugins.ItemsBlocker.IsAmmoBlocked (BasePlayer owner, BaseProjectile proj) [0x000fc] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.ItemsBlocker.OnReloadMagazine (BasePlayer player, BaseProjectile projectile) [0x00031] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.ItemsBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004a7] in <8e8bb26578e842ebb44797885d374a06>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09b255f9a88d4ffda4779759134e116d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
(17:41:45) | [14779/9390704] was killed by Plaf[85423/76561198185429497]
this came out with the change in the .cs -
How make different time for different items?