Question how to set people to random class/job

So me and my friend are making a Tdm type server that have a theme of starwars battlefront (The new one). So we have been thinking about making hero classes, we didn’t want it to be a pickup where you could find it randomly around that map. But have it where the server would choose a random person on the team, and force set them to the job. Also have it where It would have a cooldown, and make sure not to have two people as a hero on a team, at the same time. I just want to be pointed in the right direction, or even if it is showed on the Garry’s Mod wiki or Darkrp wiki. Thanks for the help :slight_smile:

Why’d you edit darkrp to make a team deathmatch, isn’t it a lot more convenient to make a seperate gamemode, so you don’t have a lot of wasted code?

Because there are elements in darkrp that I would like, the server it’s truly a team deathmatch it just as certain aspects from it.