Looks like its been requested a few times before, but I can't find a plugin for AMX or SOURCEMOD that will do this. It seems like it would be simple. I would even try to code it myself if someone can give me a pseudo code.
Basically, it allows anyone on a team (Red) to talk to all other people on that team regardless of being alive or dead, but Blu would not be able to hear Red.