Where I learned to code was from the Half-life SDK. Half-life, for the uninitiated, is a FPS by Valve Software. If you have it, (the game) the SDK can be downloaded at
www.valve-erc.com. Just mess around with that, like adding fun stuff to the weapons. That's how I learned. There are plenty of forums and other resources available to help you to. Good luck.