The problem is to show that if $z_1,\dots,z_n$ are complex numbers then $$|z_1+\cdots+z_n|=\sum |z_i|$$ if and only if $$\mbox{arg}(z_i)\equiv \mbox{arg}(z_j)\mod 2\pi$$ for all $i,j$.
I can establish the case $n=2$. I thought of using induction to prove the general case but didn't get anywhere. Following the hint in this question I tried proceeding as follows:
Assume $|z_1+\cdots+z_n|=\sum |z_i|$. Squaring both sides yields $\sum_{i\ne j}z_i\overline{z_j}=\sum_{i\ne j}|z_i||z_j|$. Since all $z_i\ne 0$ for otherwise we may use induction so we have $$\frac{\sum_{i\ne j}z_i\overline{z_j}}{\sum_{i\ne j}{|z_i||z_j|}}=1.$$
At this point I cannot think of anything else to do.