Create a boolean variable (called "clicked" or something, use arrays if there are multiple players).
Create a trigger with the event "a unit is clicked" (or a specific unit event, your choice).
If clicked == false, then set clicked = true
If clicked == true, then create hero for player.
If a player switches from hero (in the selection screen), set clicked to false.