"It is not allowed to smoke in that room" would mean that some entity referred to as "it" is not allowed to smoke. It is a strange thing to say because the only entities that smoke are people, and people are not normally referred to as "it".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.