Many major governments are operating a budget deficit.
They've been running a very large surplus for many years which I believe now means cash in the bank. Obviously it relies heavily on the price of oil being above the breakeven point. Which seems to be around $74 for them.
Not just SA in the middle of many wars, but it does seem very involved in a lot of conflict at the moment.