The following will Re locate the player once respawned to the Group Leader
enter the following line into the "INIT.sqs"
[] exec "Respawn.sqs"
and then create the following "RESPAWN.sqs" script
#START
@!alive player
@ alive player
Player setpos (getpos (leader player))
goto "START"
The group leader is a different kettle of fish
To respawn the group leader to the battle, then the best thing to do is create various empty markers, and for different stages of the mission, make a boolean variable become true
like the following
When stage 1 of mission has been completed, then create a boolean as follows
Stageone = true
and the next stage
Stagetwo = true
For each stage place an empty marker, lets call these markers "StageA" and "StageB"
your respawn script would then look like this
#START
@!alive player
@ alive player
?(Stagetwo): goto "AtStageTwo"
?(Stageone): goto "AtStageOne"
Player setpos (getpos (leader player))
goto "START"
#ATSTAGETWO
Player setpos (getmarkerpos "StageB")
goto "START"
#ATSTAGEONE
Player setpos (getmarkerpos "StageA")
goto "START"
If youn wanted only the group leader to respawn here, then you would have problems everytime a player respawned and the leader was actually in respawn, so the best thing to do is have all players respawn at these markers (Or rather relocate to them after spawning)
If you still insisted on spawning them near the leader then you would have to use the setrelpos command to position them 50m away