Random select team, all team die map changes and teams not able to hurt each other HELP!

Okay, i have a zombie gamemode,
Team 1 (Big mother zombie)
Team 2 (Humans)
Team 3 (Infected)

Firstly, when humans die they go to Infected, i want to make it so when all of team 2 die, that the map changes
Also, Team 1 and Team 3 can injure each other, and i want them to not be able to hurt each other
also, it would be nice to make it randomly select 1 person for Team 1 when the map loads

Thanks! :slight_smile:

This is a lua question, Iā€™d suggest heading over to the lua subsection and asking in one of the threads focused at minor questions rather than making a new thread there.

http://facepunch.com/forums/65