Black Knight's Botmanager 1.0

0. Preface
Why should I use Bots? For newbies it is surely useful, but it is no fun on long terms. But would not it be nice to have them on a dedicated server, if nobody is playing, and being removed step by step when real players connect? In contrast to the silly Fakefull the players will find at least bots playing for the time waiting for other other human players.
I always had the idea to make such a plugin, especially when I first saw CS 1.6 beta. As the bots were later on removed, I dropped the idea.
Furthermore, bots can cause troubles. At first you have to remind yourself that bots cause a high cpu load and secondly most bots are not available as metamod plugins. This makes the use of bots on rented servers totally impossible. But since metamod 1.17 one can include even non-metamod plugins (config.ini). Remember that usually you do not use the server alone. In this case you definitely should not use bots.
Therefore, bots should only be used on servers, which exclusively belong to you (e.g. root servers, servers on a LAN, exclusive servers by gameserver hosters). Otherwise you could get into troubles! You were warned!!
Since the traffic prices dropped a lot, more and more people are able to rent such servers and there were already queries for such a plugin. So I decided to pick up the concept again.

1. Features
- Bot settings can be set independendly from rcon access.
- Bots can be added to teams and also removed from them.
- Compatible to most of the bots (commands can be set by the user)
- Automatically fills the server up to a specific amount of player and removes them step by step, when human players join.
- Compatible to most mods (Plugin was developed for Counter-Strike, but should work on every other mod.)

2. Requirements
- An exklusive server
- Admin Mod 2.50.58 or later version
- A working bot
- Access level 512 set for bot admins

3. Installation
a. Compile the plugin
b. Installation of the plugin (incl. entry in the plugin.ini)
c. Mapchange
d. Configure plugin for use with your bot (see Commands)

4. Commands
admin_bot_set <option> <value>
With this command one configures the plugin and adapts it to the bot. If no option is given, an overview of the possible options and their actual values are presented in the console. The following options can be set:

prefix (Here resides the prefixed command for the bot handling, for RealBot e.g. rbds. For other bots please consult the bot's manual.)
addct (Add the command for adding a bot to the ct team here (without prefix of course).
addt (Add the command for adding a bot to the terrorist team here (without prefix of course).
kickct (Add the command for removing a bot from the ct team here (without prefix of course).
kickt (Add the command for removing a bot from the terrorist team here (without prefix of course).
bots (Set the number of players and bots here, which should be on the server at least. If the value falls below, the server would be filled up stepwise with bots and the bots would be removed step by step if the value is exceeded. Bots will be always remowed from the biggest team or added to the smallest one. If set to 0, this function would be disabled (default).

Examples:
admin_bot_set prefix rbds (Configures the plugin for use with RealBot)
admin_bot_set addct addbot_2 (Defines the command for adding a CT bot with RealBot)
admin_bot_set bots 4 (There would be up to 4 bots added, if less than 4 human players are online. A quite useful value.)

admin_bot_addct
Adds a bot manually to the ct team.

admin_bot_addt
Adds a bot manually to the terrorist team.

admin_bot_kickct oder admin_bot_removect
Removes a bot manually from the ct team.

admin_bot_kickt oder admin_bot_removet
Removes a bot manually from the terrorist team.

admin_bot_command <bot option>
You can issue every bot command here. Please read your bot's manual. The prefix is automatically added.

5. ToDo:
Menu

6. Important
- This plugin is NO BOT!
- I am not responsible for the bot software. I will not give any assistance in bot installation or configuration.
- If you like to let your bot decide, to which team the bot should be added or from which it should be removed, just insert the same line for addct and addt (or kickct and kickt).
- I am not responsible for any trouble you might get into with your hoster. Your were warned multiple times.
- Useful values for the bots variable are 4, maybe 6 or 0 (if you don't want the function).
- The useage of the automatic adding and removing and the manual adding and removing of course neither does work together nor does it make sense.