Spawn on player/hill (forge)

Sorry if this has already been asked. If need be shame me with a, let me Google that for you.

Anyways is there any way to get players to spawn on there team members or with in a stronghold “hill” that there team has captured? Basically I am building a tower of power map for teams of 2. I would like teams to always spawn at there designated spawn points outside of the hill. But if a team member is still alive and there fellow member is respawning I would like them to spawn on there team member. Same goes for the hill. If a team owns the hill I would like them to be respawned within the hill.

Thanks!