Fretta teams and classes

I would like to have 3 different teams.

  1. Spectate - permanent observer
  2. Observer - observer until round starts
  3. Playing - currently in the round.

How would i set it up where you can either join team spectate or observer along with when your observer on round start change you over to playing? The fretta base functions are some what overwhelming and I’m not sure how to make some one spawn on a given team and how to make that team act the same as spectate. any help is much appreciated.

Ok i have the team switching working. The only issue rigt now is making it so the players are in a spectate like mode while on team waiting.

[lua]ply:Spectate( <insertnumber between 1 and 5> )[/lua]

check the wiki for what each number does