Sandbox Custom Classes

I want to ask how i can make random Classes on my Sandbox server. With classes i mean when a Player types /sniper in chat He spawns with a Sniper Ghillie suit+ Pistol.

You could setup a command to change a players model and give them x weapon when using that command.