South Africa have qualified for the final of the All Africa Games men's football tournament in Maputo after defeating Senegal 6-5 on post-match penalties.
But South Africa's women could not make it a double celebration as they lost their semi-final 2-0 to Cameroon.
The men's semi had ended 0-0 after normal time at the Maxaquene Stadium.
Goalkeeper Brilliant Khuzwayo them made a superb save in the shoot-out to thwart Ba Ibahima Yigo and win the tie.
The South Africans will face either Ghana or defending champions Cameroon, who meet on Wednesday, in the final on Saturday.
South Africa dominated the first 45 minutes but squandered numerous opportunities, with coach Ephraim 'Shakes' Mashaba praising his players' resilience following the misses.
"I think the boys showed some mettle," he said.
Senegal won more possession in the second half and almost snatched a winner in stoppage time but Niasse Baye Oumar failed to convert from close range.
Extra-time took its toll on exhausted footballers in 34-degree centigrade heat and the standard of play slipped despite the encouragement of spectators.
Senegal goalkeeper Malick Traore was twice unlucky in the shoot-out, touching the ball without being able to prevent it entering the net.
He also had a save disallowed as the referee ruled that he moved forward off his line before Sibusiso Mxoyana kicked the ball.
Cameroon's women won their semi-final thanks to two spectacular strikes from Gabrielle Aboudi and Gaelle Enganamouit, either side of half-time.
The South Africans were fielding a young team as their senior players had played Ethiopia on Sunday in an Olympic qualifier which they won 4-1 on aggregate to qualify for London.
The Cameroonians will discover their opponents on Wednesday after Ghana play Algeria.