You dont need any as you have auth level 2
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
[DOUBLEPOST=1489281248][/DOUBLEPOST]
You should /kit edit kitname .. . . . .. /kit max YOURNEWVALUE
If you would rather do it via the json.. you first need to unload the plugin. Then make changes. Then load the plugin.[/QUOTE]
Sorry, I wasn't asking how to edit the max value of a kit, I was asking how to increase a specific users max kits.
Say my starter kit has a max of 2, but I wan't to add functionality to my server were if a user joins our discord we get an additional charge of this kit making it 3 for that specific user. I know the location of these values but I can't make changes to these values without restarting the server. Reloading the plugin just reverts the values before edited. -
Hi,
sorry if its not a good thread, I need to ask, what doing wrong? Code is compiled ok, rewardtext sended ok, but kit not.
kit with name rewardkit exist, not hiden & free to give (no perm. or cooldown).
I need if Reward is true give to specific player kit rewardkit and send him a message
Thanks for help or tips...
Code:string kitt = "rewardkit"; BasePlayer player = BasePlayer.FindByID(userid); if (Reward) { Kits?.Call("GiveKit", new object[] {player, kitt}); SendReply(player, $"<color="red"> {msg("rewardText")} </color>"); }
-
i took a little time figuring most of this stuff out without asking any questions and min amount of understanding and coding so i thought i would help people new to this and explain it more clearly because it's kinda hard to understand without already knowing how to do it.
so you want to add kits to the server
1. understanding and setting up kits.cs
- after you download the plugin you put the plugin in your plugins folder located in (EXAMPLE) server/servername/oxide/plugins
simple right it does everything for you once you put it in most people dont have a problem going this far
- after you install the plugin its going to make files in your /config and /data folder we will go back to that later don't mess with anything right now
- go into your server and make sure you are admin or mod how to do this you say? i am assuming you have rusty rcon if not google it.
once you are in rcon and to make yourself admin heres what you type (example) "ownerid (steamID64)" simple right? how do you get your steam id 64? google steam id and steamid.io will give it to you. also pro tip to remove owner id or mod id from rcon you type this to remove it "removeowner (steamID64)" it will not take instant action everytime you remove it or add it you will have to rejoin the server.
- now you are in the server with admin powers and ready to set up the kits plugin. im going to explain this without using a vip system and then with a vip system
2. setting up kits from in game as admin.
- now are you ready to dip your toes in this one dont worry i am here to explain it very simple and easy step by step to help you understand how the process works, lets start out with something real simple to help you started
/kit food - give players food
to set this food kit up heres what you do
/kit add food
at this point you have made the kit and are editing it make sure you have nothing on you and you are naked from hotbar to what you are wearing
so you are editing the kit right and you want it to work
you type
/kit items this will make the kits the items that are present in your inventory but theres more
/kit items max 1 this will make the kit with the items in your inventory and make the max usage of the kit to 1 time use.
lets not get confused here you dont have to re-enter items or max after you have already set it you just telling the plugin what the setting are
so lets give an example
/kit add food - after entering this it will say added and you are now editing it
now type
/kit items cooldown 120 description "some food"
again make sure the items are in your inventory when you do /kit items
now that you have made that kit with those settings it will be a kit that has no limit on redeeming and the cooldown will be every 2 mins and it will say some food to let your players know what it is.
PRESS f1 and type kill after you have completed what you wanted to do with the kit
now you want to add that to the gui right make it look professonnial unlike my spelling.
after you kill yourself type /kit and it will bring up the gui
bottom left there will be a button that says add kit, click it. and click the one that comes up.
now you have made the kit show up on the gui.
heres a trick if you get stuck at like 4 kits showing up on the gui and it says you have added all possible kits this and that you have to go edit the code
here is where we go back to the /config folder kits.json not the /data folder
when you open it up in word or whatever you use you will have to remove 2 lines of code
here is what it looks like
"description": "<color=green>your baddass server</color>",
"kits": [
"kit1",
"kit3"
"builder",
"food"
it will looks something like this anyways all you do is remove the kit ones that are there
"description": "<color=green>your baddass server</color>",
"kits": [
"builder",
"food"
and BAM now you can add more than 4 from the gui
now save it and override the one of your server and reload the plugin ( to reload the plugin you remove the kits.cs from the plugins folder and then simply put it back in the plugins folder and it reload it simple) i recommend you have rusty rcon tools running so you can look at the console and watch it unload and load because you might have messed up the code like saving it like this and trying to use it
"description": "<color=green>your baddass server</color>",
"kits": [
"builder",
"food", (no , at the last line incase you didnt know that most common mess up. )
so hopefully now you understand better how this plugin works but wait you want to know how to setup VIP right
look for my next post to see how to setup VIP
this is just an attempt to help people understand the kits.cs plugin better the author made a great plugin but its hard to understand for us plebs
thank you for a great plugin.
[DOUBLEPOST=1489427015][/DOUBLEPOST]setting up VIP to kits how to
here we go seems kinda hard but its kinda simple first you will need to know how to use oxide groups that differ from the plugins group
Type these in the console/RCon to activate / add the settings.
How to add groups to a server:
- group add <groupname>
- How to add player to group:
- usergroup add <name> <groupname>
- usergroup remove <name> <groupname>
- group remove <groupname>
IE. group parent admin mods
- group parent <parentname> <childName>
IE. grant user <username> add.perms
- grant [user/group] <username> <permissions>
- revoke user/group <username> <permissionnode>
show <group / user> name
ok cool now you have something to show you how permissions work in oxide that are DIFFERENT from kit.cs
so lets go back in game with ingame admin right
you want to edit lets say /kit food to be a VIP kit
heres what you do
step 1.
type /kit edit food
you are now editing the food kit
/kit permissions VIP
you have now set up the permission for the kit to vip only
when you do this it will give you a code?
kits.vip
ok now that is the permission for kits plugin so you have to add that permission with oxide permissions vip
oxide.group add VIP this will add the group to oxide you can enter this in rusty rcon
grant group VIP kits.vip THIS will grant the use of said group VIP to use kits.cs VIP permission
to add a user to oxide group
oxide.grant user nameofplayer VIP
and you are done, now players that are set to oxide vip group are able to redeem the vip kits in kits.cs
REMEMBER after you are done in rusty rcon to type "server.writecfg" to save all of it.
anything i left out let me know. ps this is not an in depth tut this is to help you get started and understand it more. -
Thanks for your reply, but i want automatic reward kit redeemer.
1. player make action (success)
2. plugin give him a kit (fail)
3. plugin wrote reward text message (success)
I know set up kits and make permission, etc...
Maybe is bad syntaxe of Kits?.Call("GiveKit" command or BasePlayer player definition -
who toremove GUI ?
-
If I wipe server, and delete Kits_Data.json ... that will keep my kits and wipe the cooldowns right?
I want to offer a weekly kit and reset with wipes -
-
how can i open the noraml kits gui and the vip kits gui seperatly? i can either open normal kits or i have to reload plugin and only vip kits
-
I have some players reporting they can spam kits that have a timer on them..... anyone else see this behavior??
-
Then see if they are lying -
Hey i need help for kits who to remove GUI?
-
-
[DOUBLEPOST=1489636254][/DOUBLEPOST]
Here is how I use it regularly...
Code:object isKit = Kits?.Call("isKit", new object[] { Kit }); if (isKit is bool) if ((bool)isKit) { Kits?.Call("GiveKit", player, Kit); }
Last edited by a moderator: Mar 16, 2017 -
hey, i deleted the data file after wipe, even reloaded plugin and deleted again and people still have 0 kits left on some kits.. what am i doing wrong?
-
-
I'm using sdonate i was woundering if anyone has any idea how to grant a user the privalage to a kit ? or if anyone uses sdonate? as i would usually have to put the players steam id or name ? is there anyway i could do it so when the user purchased it from sdonate it would grant the user the permission?
-
Kits | Page 264 | Oxide -
solved