How do you make a barrier deactivate or some teams and activate for 1?

Does anyone know how to fix that?