Waqar Younis has resigned as Pakistan bowling coach in protest at only being asked on the South Africa tour for the Tests and not the one-dayers.
Paceman Waqar (right) played 87 Tests for Pakistan
Waqar, 35, announced his decision hours before he was due to leave for South Africa, where Pakistan are set to play three Tests and five one-dayers.
"I am disappointed that they wanted me for only the Test series on the South Africa tour," said Younis.
"I have conveyed my decision of leaving the post to the PCB chairman."
Younis, who played 87 Tests and 262 one-day matches for Pakistan until 2004, was appointed bowling coach in 2006 for a one-year contract, which was to expire in April this year.
He added: "Respect is something that the PCB [Pakistan Cricket Board] needs to learn. I am a bowling coach and not a clerk.
"The improvement in Pakistan bowlers is there to be seen. I took time out from my family commitments to help youngsters, but it is better to quit when you don't get the respect."
Younis, who is now based in Australia, took 373 Test and 416 one-day wickets. He is also tipped to take over as New South Wales coach.
The PCB said the decision to send Younis for the Tests only and not for the one-day series was taken by the team management.
A statement said: "The management feels that Waqar has (had) very little contribution in the past as far as the shorter version of the game is concerned.
"The PCB respects all its employees, players and consultants but would not tolerate indiscipline and arrogance."
Younis' resignation is the latest controversy to hit Pakistan cricket, which was plagued by a series of scandals last year.
Pakistan forfeited a Test against England at The Oval - the first in Test cricket's history - on charges of ball tampering.
They were later cleared by an ICC appeals committee. PCB chairman Shariah Khan resigned from his post after Younis Khan refused to captain the team, while two Pakistani pacemen - Shoaib Akhtar and Mohamad Asif - tested positive for banned steroids.