Just follow through these three videos, and you will have a mod that you are able to add custom code into. Since I was tired of looking for video tut's for coding in source engine when I started coding, I now decided to make tut's for new people to modding in source :3
Posted by Stektpotet on Nov 25th, 2011
Basic Starting a mod.
Hope you enjoy :D