%player.hidenode(getword($accentsAllowed[$hat[%client.hat]],%client.accent));
This will hide only the accent it needs to: the one the player has enabled.
And an example in case you aren't already doing it this way for the other body parts...
%player.hidenode($hat[%client.hat]);