Different classes to spawn with

How do I make it so when a team spawns they get to choose what type of class they want?

For an example, They will pick one team and then another menu will pop up, asking them what type of class they want, there will be like and assault class, medic class

etc etc. (any type of post will help a lot to me)

You use a hook to prompt them with a menu that calls a command when they hit a button, then on the server set their class.

You should probably post this in the request section.

-derped up the question-