Complex sentence: The judge warns Cooper about taking the law into his own hands, and offers him a job as a marshal, which Cooper accepts.
Split into simpler sentences: The judge warns Cooper about taking the law into his own hands. He offers him a job as a marshal, which Cooper accepts.