JOHANNESBURG (AP) — Captain AB de Villiers and Hashim Amla smashed 238 runs Sunday to set a world-record stand for the third wicket as South Africa plundered 343-5 against Pakistan in the third one-day international.

The pair needed only 182 balls to better the mark of 237 set by India's Rahul Dravid and Sachin Tendulkar against Kenya at Bristol during the 1999 World Cup.

De Villiers scored 128 off 108 balls with 12 fours and three sixes, while Amla hit 122 off 113 balls with nine fours and a six.

Amla successfully used the television review to overturn an lbw decision before South Africa had scored, and he was dropped on 36 by Mohammad Hafeez at point.

Mohammad Irfan took 2-34, while left-arm seamer Wahab Riaz, playing his first ODI in a year, was hammered for 93 runs for the wickets of Amla and Faf du Plessis.

Pakistan leveled the five-match series at Centurion on Friday with a six-wicket win after South Africa won the first ODI by 125 runs a week ago.

Pakistan captain Misbah-ul-Haq's decision to field first looked on track when 2.16 meter (7-foot-1) Irfan removed Graeme Smith (3) and Colin Ingram (17) as South Africa struggeld to 42-2 in the 14th over.

But once the spinners came on, along with Riaz, Amla and de Villiers scored at will.

Amla scored his 11th ODI century and second against Pakistan off 99 balls with a single to midwicket off Hafeez in the 39th over. De Villiers completed his 14th hundred off 87 balls in more attractive fashion, cutting Shahid Afridi to the point boundary.

Afridi has so far had a very disappointing series. The allrounder, primarily recalled for his legspinners, has taken no wicket in the three ODIs.

Amla was out soon after breaking the world record in the 45th over, caught by Misbah to give some relief to Riaz. De Villiers was caught in the deep by Shoaib Malik in the 47th over off Saeed Ajmal, who took 1-62.

Pakistan badly missed Irfan in the later stages with the lanky fast bowler falling ill and having to leave the field after bowling only seven overs in two spells.

Faf du Plessis rubbed more salt into the wounds of Pakistan by hitting an entertaining knock of 45 off 19 balls with four boundaries and three sixes, including two fours and two sixes in one of Riaz's overs.

South Africa's team is wearing a unique pink uniform in support of breast cancer awareness, while Pakistan's players also wore pink ribbons on their chest.