@fysiks no only this code, this need some checks...
Still a bad ideea.
Since you are in scripting help forum, don't expect that you will receive already made code. You can send a trace and check it's results. If the trace don't hit a player from the enemy team, fade screen.