My advice is to start out smaller, learn a bit more about memory hacking and look at some more videos and than start looking at source code. Start with making a program that tells whether a window is open or not. I would recommend this video to start off with:
Its not counter-strike but its the basics that you could definitely use to get yourself started.