Questions on making a qc file for compiling.

I am currently working on a silenced Uzi and I want to compile it to test it in-game. However, I have never wrote a qc file nor do I have any idea how to write one. So I would like to know what how the structure of my qc file should be, with muzzle flash and smoke trails like the gun in this video http://www.youtube.com/watch?v=lKL4r8L6s5o&list=FLSWPqX74aFQcKoQOc3S3ePA&index=2 and shell ejections. I would also like to know if full and empty reloads is possible too, meaning that I have two different reload animations for a half empty magazine and a completely empty magazine. I am also ensure how to include my sounds into it too so I would like to know how.
Sorry if these are nooby questions but I have searched the SourceSDK wiki and I am having problems trying to interpret it onto my silenced uzi.