How to make something like if i press button “medic” the game will spawn medic playable character, but if i press “soldier” player with start with soldier playable character?
Simply don’t spawn player prefab on ready (either clear player prefab field or untick autospawn), and then use Commands or NetworkMessages to let clients send their choice to the host. Then the host could Spawn it depending on the choice that player send and use AddPlayerForConnection or ReplacePlayerForConnection.
Ofc this is simplified, but you should then see what else might be needed in your implementation.