If you want to have a friend protect you as a sniper then it must be made clear that you have friends in the area when someone is attempting to rob you. This is so that there is then no confusion when a sniper begins to fire from range at the player. You essentially are counter-initiating to allow your sniper(s) to shoot. However if you are to shoot the person robbing you after he has threatened your life then that is completely fine.