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
  1. take a look into the console for errors, also do you have the Give plugin installed?
     
  2. <color=orange>[rGIVE] </color>shotgun_pump given to [God] Snazzy
    [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
     
  3. Never mind, just don't add console command...
     
  4. Why? I was just planning on adding on adding it in the next hours...
     
  5. 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
     
  6. ill need to Use the item shortname then
    go into the config and replace Rocket launcher with
    rocket_launcher
     
  7. Can you add a feature to give a random player a random item with a certain interval?
     
  8. Random Giveaway like?
     
  9. like any ingame item "name": + "amount": of choice
     
  10. Console command pls!
     
  11. I will rewrite this plugin in C# will maybe add console commands then.
     
  12. C# rewrite is coming soon. Maybe even today. If not, then in the next days.
     
  13. Good luck, bro! Add console commands man!
     
  14. Done :)
     
  15. LaserHydra updated RGive (Random Item Give) with a new update entry:

    2.0.0

     
  16. Thx you! Now i can create Gaben-like cases on my server! :D
     
  17. [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
  18. when did the error happen?
     
  19. 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