If the enemy object’s script has a function called ApplyDamage( int damageInput ) , then you can subtract from the health of the enemy depending on its type, armor etc. You can replace SendMessage with a more efficient event handling system using events and delagates
Please bear in mind that this is only partial and untested code.
In the gun script that makes the raycast you can get the object which it hit and test if that is the zombie and then deduct health of the zombie, by accessing the component on the zombie that contains the health variable.
So basically it becomes the gun that access the health variable on the zombie script.
The outbound reference parameter is documented in the bottom of this page.