There is a bug if you use AMX and any bot. After some connects and disconnects AMX fails to initialize the players data structures! Therefore AMX reports wrong player numbers which confuses any AMX plugins which depend on them (PTB, WC3...).
The only way to get arount this problem is to do the playercount on your own. This is quite easy all you need is do add two log events: "entered game" and "disconnected". For an example have a look at my
joebot_control AMX plugin.
I hadn't time yet to port the plugin back to realbot but it's not that hard to do...