This is what I've did but, it doesn't warn (e.g. make hurt sound effect) the player who is carrying the shield that he is being hurt. So that he can hear it. I've thought of slap but that would just spam the chat area.
1
2
3
4
5
6
2
3
4
5
6
addhook("shieldhit","flamethrowerDamage") function flamethrowerDamage(id,source,weapon,attackdirection,attackerobjectid) 	if weapon==46 then 		parse("sethealth "..id.." "..player(id,"health")-10) 	end end