There are a couple different ways. "No!" Han said. "She can't!" Luke yelled at the same moment. Or: Han said "No!" at the same time Luke yelled, "She can't!" And I'm sure there are more; those are just a couple examples.