Looks like you got yourself into an intense firefight, my tip: check your surroundings, find useful cover even if no-one is engaging you, that sniper was probably on the hills with his ghillie suit plus it was just about night time so it would of been harder to locate him. Your friends could of been more experienced and made good decisions as a team, but oh well.