No NPC Death Messages

I’m making a new fretta gamemode. I would like to hide Death Messages where the attackers are NPCs.

I’ve got no idea on how to do this. So any help will be awesome!


  • FraggingAcid!

[lua]function undrawHud(nick)
for k, v in pairs{“CHudDeathNotice”} do
if nick == v then return false end

hook.Add(“HUDShouldDraw”, “undrawHud”, undrawHud)[/lua]

Place client side.

Why on earth are you looping through a table with only one index?

[lua]hook.Add(“HUDShouldDraw”, “undrawhud”, function(name)
if name == “CHudDeathNotice” then
return false

God knows, I’ve been learning LUA for a week or so and a tutorial showed me to do that, I didn’t know there was another way of doing it.

Thanks will try now :slight_smile:

[editline]3rd January 2011[/editline]

No such luck its still showing them using both sets of codes. looks like fretta’s bypassing this. :o

I know that its possible… because TTT does it.

Could you do it using this?

If he isnt putting this code in a gamemode it wont work.

That is wrong sir.