Your dog or other people's dogs? If your dog is eating plants it might have worms or its missing something from its diet, get it checked by the vet and ask if they can recommend a quality food. If it's other people's dogs look up leash laws for your state and town, my town requires all dogs to be leashed unless they are fenced in. Definitely don't shoot them, not their fault they have shitty owners.