Mine get the one, two, three strikes your out.
1) warning that if it doesn't stop we will be making a trip to the nearest bathroom for a spanking( the phrase " do we need to make a trip to the bathroom?" pretty much stops the behavior immediately)
2) the trip to the restroom and them being told we will leave(I've had to use this twice...once for Josh when he was little and once for Jake about 2 years ago....my kids know this is NOT an idle threat....Jess must have picked up on their "fear" of that one cause I haven't had to use it yet on him....

)
3) we leave (Used once with Josh in a restaurant during his ODD days....DH hauled him kicking and screaming while I paid for the drinks and changed the order to carry out.....good thing DH took him to the car cause I probably would have beat him to an inch of his life....that was the first time I had been out for a LOOOONNNNGGG time and I really wanted a nice dinner)