What is the right way to do shooting with Server Authority?

Options

Currently, players send the bool "IsShooting" on photon stream (which is just the Input.Getkey bool). on the MasterClient, I create a ray cast for the players with a true IsShooting and damage if hit. The problem i'm having is that, on the masterClient's ray, I can't specify (IsLocal or IsRemote) layers, so sometimes the shooting player ray ends up hitting it self... so which way I should do this? the ray begin point is the transform.position/rotation of the camera behind players (which is also sent on stream)