I haven't tested this so some things might not be true.
If you put a pet on your head, depending on the pet's size, your first person view would be blocked, therefore preventing you from shooting / attacking other players. From what I've seen, you are not able to kill the pets, so that means...