I can help if it's a CoD1 bot. hahaha... cause I made a custem for my CoD1clan called feveRBot im good at programming for CoD1 bacause i spent about 1 year learning C++ for it cause i wanted to show a rival clan up.
But you probly mean BF2 or what not.
This is ganna be boring but read this, all of it... take notes if it helps you concentrate.
C++ Language Tutorial
those are all the basics, I read that before I even attempted a bot... or anything C++ wise.
Once you have read the basics there is an advance section. but try to write a few basic programs befor reading the ADV.
Once again i've never coded for any other game but CoD1 but im planning on starting coding for CS:S this summer and other steam games such as TF2.
Last word of advice is the anti cheat system your coding around VAC may be a tad easier then PB but learn both of them how they work and what they do.
Good luck
~MuzzyxXx