That just sets their guild to the team they're on. You could then add whatever you want to do stuff based on their team like:
NPC Code:
function changeclothes() {
for (i = 0; i < playerscount; i++) { with(players[i]) {
if (strequals(#g,Red Team)) setplayerprop #C2, red;
else setplayerprop #C2 blue;
} }
}
I'm not sure if #C2 is coat, but it's not that hard to do once you have their guild set. You just set everything based on their team...maybe give them special weapons and stuff, then finally, you warp them in.
-Kyle