When people say that the Mi-24 was armored, they weren't lying, but that's a far cry from the entire aircraft being armored like a tank. The crew compartment was protected from the front, and like all Russian military helicopters of the day, was grossly overbuilt. But, it was not covered in armor -- it wouldn't get off the ground if it were.
The helicopter couldn't hover when carrying a full combat load. It had many tweaks to make it fast: tilted rotor system, stub wings, and a tilted tail rotor all of which are cool innovations for making it fast. However, like mentioned before, it couldn't always hover because of the weight and the compromises to make it faster. It was deployed much like an airplane because of these limitations and it's pig-like maneuverability (when compared to other attack helicopters). It is a flying tank, from that perspective.
So, your .50 caliber sniper rifle can do plenty of damage to the engines. If your bullet does knock off some compressor blades, the engine will shred itself because of either the imbalance or because of the debris flying through the engines. These things turn at ungodly RPMs so any slight balance problem cause much bigger problems.
The rotor system was a typical aluminum honeycomb and a bullet will go right through them. This is really hard to do since a bullet flies a lot faster than a rotor blade and will pass right through the gaps unless your sniper has magic powers and can see and hit a spinning blade. Same for the tail rotor. But, a hole in the main rotor blade will not force the helicopter down unless the pilot decided to do so for safety.
Shooting the fuel tank is pointless. All modern tanks are self-sealing and won't leak. You might get really lucky and hit a high pressure fuel line and that will cause problems -- and the possibility for a fire if it's near the hot parts of the engine.
Your best bet to bring it down without killing everybody would be to hit one or both of the engines. The helicopter can autorotate down and if the pilot is skilled and the conditions are correct, the helicopter can be landed without significant damage. The engines would have to be replaced.
You can shoot out control linkages and other rotor components if you're lucky, but this would most likely lead to an uncontrolled crash where survivability is questionable.
Technical stuff on the construction:
STRUCTURE :
Five-blade constant-chord main rotor; forged and machined steel head, with conventional flapping, drag and pitch change articulation; each blade has aluminium alloy spar, skin and honeycomb core; spars nitrogen pressurised for crack detection; hydraulic lead/lag dampers; balance tab on each blade; aluminium alloy three-blade tail rotor; main rotor brake; all-metal semi-monocoque fuselage pod and boom; 5 mm hardened steel integral side armour on front fuselage; all-metal shoulder wings with no movable surfaces; swept fin/tail rotor mounting; variable incidence horizontal stabiliser.