My school even had a gazebo on the school yard so smokers didn't have to stand in the rain. They literally spent money to accommodate smokers.
Of course by the time I was there smoking on school grounds was prohibited, so smokers had to go just beyond the gate. Which students were not allowed to, but few teachers were willing to enforce that
In the classroom not, but during my youth in Germany, the smokers had their own smoker's corner with an ashtray until smoking age was raised from 16 to 18 and the smokers had to go out of the schoolyard (i.e. they had to walk 5 meters more, lol).