Hi im looking for some advice/guidance on creating teams for a goldsrc mod.

I know how to do this within a map by using game_team_master and having the master attribute of info_player_deathmatch set to "teamname".

However i would like to create a mod similar to dod in the sense that you join a server -> select team -> select a class with different weapons/items.

If anyone could point me in the right direction or what files to look at within the source code i would be very appreciative.

Thanks.