Type /c hostile all
It is your responsibility to be hostile to anyone you are attacking.
If you don't want to automatically hostile your friends type /c setally X ( I think that is the command) In advance and it will not hostile those you have set. Use the same command again to take them off of your ally list.
Thanks