Rust Giveaways

Discussion in 'Plugin Requests' started by ThePhoenix, Dec 5, 2016.

  1. I am getting it working so you should too
     
  2. It won't accept the value
    [DOUBLEPOST=1480963601][/DOUBLEPOST]
    sever.giveall command isn't working
     
  3. Server not sever
     
  4. I know but its still an invalid command. the command is just giveall
    [DOUBLEPOST=1480963852][/DOUBLEPOST][12/05/2016 12:55:07] Command not found
    [12/05/2016 12:55:07] [Oxide] 12:55 [Info] [Timed Execute] ran CMD: server.giveall || ARGS: 'Wood 1000'
    [12/05/2016 12:55:07] Command not found
    [12/05/2016 12:55:07] [Oxide] 12:55 [Info] [Timed Execute] ran CMD: server.giveall || ARGS: 'Wood 1000'
    [DOUBLEPOST=1480964043][/DOUBLEPOST][12/05/2016 12:58:15] Invalid Item!
    [12/05/2016 12:58:15] [Oxide] 12:58 [Info] [Timed Execute] ran CMD: giveall || ARGS: 'wood 1000'
     
  5. Well try with installing give for rust and use the console command of this plugin
     
  6. [12/05/2016 13:29:11] Command not found
    [12/05/2016 13:29:11] [Oxide] 13:29 [Info] [Timed Execute] ran CMD: inv.giveall || ARGS: 'wood 1000'
    [DOUBLEPOST=1480965906][/DOUBLEPOST][12/05/2016 13:27:25] Command not found
    [12/05/2016 13:27:25] [Oxide] 13:27 [Info] [Timed Execute] ran CMD: server.giveall || ARGS: 'wood 1000'
    [DOUBLEPOST=1480966335][/DOUBLEPOST]and I have the give plugin installed. even in console inv.giveall is an unknown command
     
  7. Make sure plugin is loaded correctly
     
  8. Code:
    [12/05/2016 13:48:56] [Oxide] 13:48 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:48:56] [Oxide] 13:48 [Info] [Give] Gave wood 1000 x 1 to 0 inventories
    [12/05/2016 13:48:56] [Oxide] 13:48 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:49:11] 47.186.115.151:50230/76561197989213091/ThePhoenix has auth level 2
    [12/05/2016 13:49:26] [Oxide] 13:49 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:49:26] [Oxide] 13:49 [Info] [Give] Gave wood 1000 x 1 to 0 inventories
    [12/05/2016 13:49:26] [Oxide] 13:49 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:49:54] Saved 22,482 ents, serialization(0.00), write(0.00), disk(0.00) totalstall(0.11).
    [12/05/2016 13:49:54] Saving complete
    [12/05/2016 13:49:56] [Oxide] 13:49 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:49:56] [Oxide] 13:49 [Info] [Give] Gave wood 1000 x 1 to 0 inventories
    [12/05/2016 13:49:56] [Oxide] 13:49 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:50:09] 47.186.115.151:50230/76561197989213091/ThePhoenix joined [osx/76561197989213091]
    [12/05/2016 13:50:26] [Oxide] 13:50 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:50:26] [Oxide] 13:50 [Info] [Give] This item doesn't exist:  wood 1000
    [12/05/2016 13:50:26] [Oxide] 13:50 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:50:29] 187.189.10.184:54627/76561198253054630/Enkeli161 joined [osx/76561198253054630]
    [12/05/2016 13:50:54] Saved 22,545 ents, serialization(0.00), write(0.00), disk(0.00) totalstall(0.03).
    [12/05/2016 13:50:54] Saving complete
    [12/05/2016 13:50:56] [Oxide] 13:50 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:50:56] [Oxide] 13:50 [Info] [Give] This item doesn't exist:  wood 1000
    [12/05/2016 13:50:56] [Oxide] 13:50 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:51:26] [Oxide] 13:51 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:51:26] [Oxide] 13:51 [Info] [Give] This item doesn't exist:  wood 1000
    [12/05/2016 13:51:26] [Oxide] 13:51 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:51:54] Saved 23,183 ents, serialization(0.00), write(0.00), disk(0.00) totalstall(0.01).
    [12/05/2016 13:51:54] Saving complete
    [12/05/2016 13:51:56] [Oxide] 13:51 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:51:56] [Oxide] 13:51 [Info] [Give] This item doesn't exist:  wood 1000
    [12/05/2016 13:51:56] [Oxide] 13:51 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:52:26] [Oxide] 13:52 [Info] [Give] GIVE: CONSOLE used inv.givetoall "wood 1000"
    [12/05/2016 13:52:26] [Oxide] 13:52 [Info] [Give] This item doesn't exist:  wood 1000
    [12/05/2016 13:52:26] [Oxide] 13:52 [Info] [Timed Execute] ran CMD: inv.givetoall || ARGS: wood 1000
    [12/05/2016 13:52:26] Invalidate Network Cache took 0.00 seconds
     
  9. It worked until I joined
     
  10. Ok I re-read it.. Again its the quantity thats the problem. The coding in the .cs file isn't meant to take a command + value because theres more than one argument. So Something has to be done to the .cs file
     
  11. arg are splited
     
  12. So how do I fix this?
    [DOUBLEPOST=1480972989][/DOUBLEPOST]when I put ammo.rifle or just wood without a number it works. once I add a quantity to it the code thinks that the items quantity is apart of the item's name and says the item is invalid.
     
  13. If you want to give something with "timer"
    why you dont make a Kit with properly cooldown?
     
  14. There isn't a giveallkit command yet....
     
  15. Best thing you can do is get a custom plugin made for you
     
  16. I honestly think a small change to the plugin time executed command can make it work. I just don't have the knowledge base to know how.
     
  17. Well as sami has already got his to work then you are doing something wrong in your config
     
  18. Well it seem it's a problem with parsing the command, i mean when you put "wood 1000" it concider it as string and not string and int.

    So, i modified it for you, i'll give you it in pm
    The problem is not from timedexecute but from Give, it don't recognize number as number, that why it won't work, there is a problem while spliting args
     
  19. b
    Ok thanks
     
  20. Code:
            void Init()
            {
                timer.Repeat(600.0f, 0, () =>
                {
                    rust.RunServerCommand("inventory.giveall \"wood\" \"1000\"");
                });
            }
    
    This would work :p let me know if you want me to do you up a proper plugin w/ config etc
     
    Last edited by a moderator: Dec 6, 2016