20.11.2016, 15:11
(
Последний раз редактировалось Jelly23; 27.05.2017 в 18:35.
)
Weapon Crates
This is a dynamic system, you can create crates and put weapons inside of them, aswell as pick them up and take them with you, it uses MySQL ofc. Rcon admins can create/destroy/teleport to/reset crates. Players can buy crates for a cost defined by you.
Configuration
- #define MAX_CRATES - The maximum amount of crates, by default its 500.
- #define CRATE_COST - The cost of each crate for players, by default its $10,000.
- MySQL information can be changed at lines: 20, 21, 22 and 23.
- http://imgur.com/a/BKJ2R
- http://imgur.com/a/K9ezk
- http://imgur.com/a/5k43x
- http://imgur.com/a/N7nEy
- http://imgur.com/a/cCFNF
Player Commands:
- /crate - Will show you the crate dialog. By selecting a row with a weapon in it, it will be given to you.
- /buycrate - Will spawn a crate at your position for a cost.
- You must press Y to drop a crate, if you have one in hands.
- If you Spawn/Die/Disconnect while having a crate in hands, it will automatically be dropped at your current position.
- /cmenu - Will show you the rcon dialog.
- /ctest - Will give you a desert eagle, the purpose of this command was test the system.
Table:
- crates.sql - Mediafire