Mohammad Yousuf hit a century to lead Pakistan to 265-9 in the second day-night international against South Africa at the Gaddafi Stadium here.
The 33-year-old right-hander struck 117 and put on 107 for the fourth wicket with captain Shoaib Malik (56) to lift Pakistan to a respectable total after they won the toss and elected to bat.
Yousuf also added 60 for the third wicket with Younis Khan (32) to repair the early loss of Kamran Akmal (nought) and Imran Nazir (two).
Ironically Yousuf's determination to stay in and reach triple figures slowed the tempo as Pakistan managed just 41 runs in the 10 overs between 30 and 40, losing a chance to make more than 300 runs on a batting friendly pitch.
He hit paceman Jacques Kallis for his seventh boundary to complete his 13th one-day hundred off 129 balls.
Yousuf struck nine boundaries in all off 143 balls before he was bowled by Albie Morkel in the penultimate over.
Pakistan opened the innings with Kamran Akmal in an attempt to solve their top-order problems but the ploy failed as Shaun Pollock bowled Akmal off the fifth ball of the innings.
Nazir hooked Makhaya Ntini into the hands of the square-leg fielder in the sixth over to leave Pakistan struggling at 13-2.
Younis relieved the pressure for Pakistan by hitting three boundaries before he was run out, sent back by Yousuf while attempting a sharp single to short mid-wicket.
Malik looked in great touch as he hit off-spinner Johan Botha for three sixes and then lofted Kallis out of the ground before reaching his half-century off just 40 balls.
When it looked like Pakistan would post a big total, Malik pulled fast bowler Charl Langeveldt straight to long-on where Justin Kemp took a straight-forward catch.
Misbah-ul Haq (21) helped Yousuf add 41 for the fifth wicket. Shahid Afridi hit a six during his brief stay as Pakistan managed 78 runs in the last 10 overs.
Pakistan made one change to the side which lost the first match here by 45 runs, bringing in left-arm spinner Abdul Rehman in place of opener Mohammad Hafeez. South Africa remain unchanged from the first match.