Hey, I'm new here.. Hopefully this somewhat creative plug-in will be appreciated
Version 1.0b Added functionallity:
"ws_ban name" - Ban someone from using the storage crate.
"ws_unban name" - Unban soneone so he can once again use the storage crate.
"ws_random 0/1" - Defines whether or not the user gets a random weapon when he withdraws, or if he gets to choose from a list. (defaults to 0)
"ws_limituse 0 to 999" Limits the number of weapons a user can withdraw per round. 0 means infinite uses. (defaults to 0)
about:
Ever threw away an awp because you wanted to by an m4a1?
Ever found an AK47 as a CT, and wanted to give it to someone else, or just didn't wanna keep it?
Now you can share all your unwanted - or extra - weapons, with your teammates!
Using a storage crate in each team's spawn area, you can store and withdraw weapons, instead of having them
dissapear as the round changes.
Simply press "E" near the storage crate and you'll be greeted with a few simple options - deposit your current weapon, or withdraw a weapon from the storage crate.
Admins can limit each team's storage capacity by using the "ws_maxitems #" cvar. (default is 10)
Admins can also choose whether or not the storage crates are team specific, or can be used by both sides by using the "ws_teamlimited 0/1" cvar. (default is 1 - team limited.)
On custom maps, the storage crates' coordinates may not be available ahead, so the admin must use the "ws_admin" once command to set the coordinates for each teams' storage crate. (can also be used to change the default coordinates on default maps)
The coordinates will then be saved forever for that custom map.
Weapons are saved on map changes, and on round ends.
If you do not wish for the weapons to be saved on round ends and map changes, which is not recommended, you can use the "ws_save 0/1" cvar. (default is obviously 1).
To display this help screen ingame as an admin, type "ws_help" in the console.
And obviously, there's the "ws_on 0/1" cvar. (defaulted to 1..)
The first time you run this mod, please use the admin panel (ws_admin) and choose option 4: "Reset to defaults", to reset the storage crates' coordinates for all basic maps.
This only needs to be done once.
Pictures:
Credits:
- Me; oRNY (code) and Whenn (models)
Any further requests or advice on how to improve this mod will be greatly appreciated, seeing as this is my first mod.
The source code is full of comments in-case anyone is interested in reading it.