Warning shots work very well. Two Warning shots to center mass of the first perp gives warning to the rest (in both the form of audio and visual events, loud gunshots and their buddy dropping to the ground with a mortal chest wound) of the perps they are doing it wrong and should seek entertainment elsewhere.
Zactly...