When using a sniper, tap the trigger instead of holding it down, this will make it more accurate.
A pistol can also be a very effective anti-sniper weapon. Simply fire at the sniper who has you locked in. This will make him lose sight of you. This only works at a reasonable distance. Repeating this action will result in one very frustrated sniper.