Ah, gotcha! And right, but how do I get the players rust client to send my server a command when they click an item on the item list?
RemoveAAA [Unmaintained]
Discussion in 'Plugin Support' started by Tuntenfisch, Jan 23, 2016.
-
Wulf Community Admin
-
So I have to modify the oxide code base? Because I use your logger plugin, which logs on almost every Oxide call, and I see nothing in the console when I click an item. Even though my player has the "IsAdmin" Flag.
-
Wulf Community Admin
-
Okay, so sorry, but I am a little lost here again. If you say the command is always sent, but I cant see it with Oxide, then how do I make the Item List work again for players who are programatically assigned the IsAdmin Flag / Fake Admin?
I am missing some specifics here -- what Oxide hook are you suggesting I can use, or what method -- can you please give me more specifics? -
Wulf Community Admin
-
So the only way to get it to work again would be modifying Assembly-CSharp, correct? Cheers
-
Wulf Community Admin
-
to what? they need to be triggered by the Item List....I am not understanding something here.
-
Wulf Community Admin
Code:[ConsoleCommand("inventory.giveid")] void GiveIdCommand(ConsoleSystem.Arg arg) { // Do stuff }
Code:[Command("inventory.giveid")] void GiveIdCommand(Player player, string command, string[] args) { // Do stuff }
-
Thank you thank you thank you! I have it working now! Here's the weird part though. It's been broken for a full week or two. Last night, I copied the exact following empty method into a plugin :
Code:[ConsoleCommand("inventory.giveid")] void GiveIdCommand(ConsoleSystem.Arg arg) { }
-
Wulf Community Admin
-
Ive Added My Self Multiple Times And It Says Permission Not Available blah blah blah Anyway I Can Fix This I Granted My Self Multiple Times In The Group
Ive Been Doing User grant "SteamID Number" Removeaaa.give but its not working i have left the game and come back still doesnt work any way to get this working?Last edited by a moderator: Mar 5, 2017 -
It Says
Command 'user grant rummzyy removeaaa.give' not found -
Wulf Community Admin
-
-
I know this already has been posted by @NOP (Thanks!) but to make it more clear, please read.
To allow NON-ADMIN players the ability to use the f1 item list copy and paste this empty method in the plugin:
Code:[ConsoleCommand("inventory.giveid")] void GiveIdCommand(ConsoleSystem.Arg arg) { }
Code:[ConsoleCommand("inventory.givearm")] void GiveArmCommand(ConsoleSystem.Arg arg) { }
-
Where at do we put paste this in the plugin? Does it go into a specific spot?
-
Code:
///</summary>
Code:void OnServerInitialized()
-
Thanks, it works like a charm!