Ok guys this problem is now fixed.

The bots now join on a team and select class correct. But sinse I'm very new in to the work directly with the game data in to the game dll source, I want to ask what function must I use to get the teams IDs because now the bots are shooting their teammates.