take a look into the console for errors, also do you have the Give plugin installed?

RGive
Allows you to randomly give out items to players
Total Downloads: 3,418 - First Release: Apr 10, 2015 - Last Update: Jun 2, 2018
- 4.6/5, 10 likes
-
[Oxide] 9:46 PM [Error] Failed to call hook 'cmdItem' on plugin 'Random Item Give'
File: rgive.lua Line: 104 attempt to index global 'playerlayer' (a nil value):
at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
this is the error i get -
LaserHydra updated RGive (Random Item Give) with a new update entry:
fixed error
-
Never mind, just don't add console command...
-
-
Not seeing many errors other then the "multiple players" when the name has more then one word in it, even when using quotes around it, but I also had this one where the command said it was to be a 'Rocket Launcher' and it actually gave a 'Rocket' , so the command didn't run correctly due to the item name having more than one work:
Code:(23:55:58) | [Oxide] 11:56 PM [Info] [Give] GIVE: CONSOLE used inv.giveplayer jacko Rocket Launcher (23:55:58) | [Oxide] 11:56 PM [Info] [Give] Gave Rocket x 1 to jacko (23:55:58) | [Oxide] 11:56 PM [Info] <color=orange>[rGIVE] </color>Rocket Launcher given to jacko (23:55:58) | [Oxide] 11:56 PM [Info] [Logger] Owen153 ran chat command: /ritem jacko
-
go into the config and replace Rocket launcher with
rocket_launcher -
Can you add a feature to give a random player a random item with a certain interval?
-
-
-
Console command pls!
-
I will rewrite this plugin in C# will maybe add console commands then.
-
C# rewrite is coming soon. Maybe even today. If not, then in the next days.
-
-
-
LaserHydra updated RGive (Random Item Give) with a new update entry:
2.0.0
-
Thx you! Now i can create Gaben-like cases on my server!
-
[11/3/2015 9:33:00 PM] [Oxide] 9:33 PM [Debug] at Oxide.Plugins.RGive.GiveRandomItem (.BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.RGive.GiveRandomItem (.BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.RGive.cmdRGive (.BasePlayer player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.RGive.ccmdRGive (.Arg arg) [0x00000] in <filename unknown>:0
at Oxide.Plugins.RGive.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
[DOUBLEPOST=1446568835][/DOUBLEPOST]plz add /rgive player <STEAM ID>Last edited by a moderator: Nov 3, 2015 -
-
Is there a permission needed for this because when I try to do it in chat it tells me I dont have permission to use the command