There is only one thai consulate in Myanmar and that's in Yangon.
At this time South Africa is NOT on the list of countries that cannot use the consulate there meaning you can certainly go there. (y)
Make sure you meet the requirements listed on the website for the specific visa(s) you are applying for OR you won't get a visa there.
*********************************************