Just so you know, it is possible to get that glitch by mistake, It happened to me when I switched teams once after I loaded the map to ballance them. The minimap was showing the wrong objectives (I switched to defense yet it still showed attack) and no enemies seemed to shoot me but I got TKd by a friendly player at which point it jumped me back to the other team again.
So it was like part of the game thought I switched team, but part of it didn't realise that I did, when I eventully got TKd everything automaticaly sorted itself though.
So unless this guy is intentionally abusing the glitch, just be aware that just out of random luck this bug can effect anyone, and you may not even realise you are bugged.