I am getting it working so you should too
Rust Giveaways
Discussion in 'Plugin Requests' started by ThePhoenix, Dec 5, 2016.
-
It won't accept the value
[DOUBLEPOST=1480963601][/DOUBLEPOST] -
-
[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' -
Well try with installing give for rust and use the console command of this plugin
-
[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 -
Make sure plugin is loaded correctly
-
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
-
-
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
-
arg are splited
-
[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. -
If you want to give something with "timer"
why you dont make a Kit with properly cooldown? -
-
-
-
-
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 -
b
-
Code:
void Init() { timer.Repeat(600.0f, 0, () => { rust.RunServerCommand("inventory.giveall \"wood\" \"1000\""); }); }
Last edited by a moderator: Dec 6, 2016