Pretty good script, easy to add on to. Missing the "fire" damage death which is a surprising one to miss, given you just have to stand in fire. I'd also like to see it index into the messages list directly instead of using a else-if chain, but all in all a good little script.
Another good addition would be to fall back to the default death message if you don't have any custom ones for that damage cause.