My city has some of what you're describing. There's a double set of train tracks parallel to the main highway. When a train passes and activates the crossing lights, a "no left turns" lighted sign activates as well. It's the black box on the centre pole, beside the bonus Dino: