The first thing to learn is to search. You'll find the hundreds of posts that ask about learning how to write plugins.
If Counter-Strike already has a shotgun, it won't be extremely hard to add extra damage (there are already plugins how there that do similar things). If it doesn't exist then it will be much much much harder.