yes, there is something that stops you from killing them. if you shoot a few pedestrians, a 'posse' comes to kill you. the posse is basically a small-large (depending on how many times you have caused one to come) group of well-trained gunslingers that try to kill you.
tree man will turbanate you...