I've already tried to make something. Here's what i did but it didn't work as i expected.
L2PcInstance tmp = getClient().getActingChar();
if ((tmp != null) && (_activeChar.getFactionId() == tmp.getFactionId()))
{
writeD(_activeChar.getAppearance().getNameColor());
}
else
{
writeD(0xFF0000);
} anyway thanks for the replies guys! i really appreciate your help :) i'll try what xdem posted and i'll give you feedback. it works! thank you very much xdem :)