Disabling the kill icon system

What would i do to disable it? Also how would i message the killer that he killed someone? This is what i have so far.

[lua]function playerDies( victim, weapon, killer )

killer:PrintMessage(HUD_PRINTTALK, “You killed” … victim:GetName() … n\ )

end[/lua]

For testing it i kill a bot in a local multiplayer server.

Overwrite GM.PlayerDeath to make it do what you want.

[lua]
function GM:PlayerDeath( … )

print( ... )

end
[/lua]

http://luabin.foszor.com/code/gamemodes/base/gamemode/player.lua#273

[lua]hook.Add(“PlayerDeath”,“PrintKiller”,function(pl,inf,killer)
killer:ChatPrint(“You killed “…pl:Name()…”.”)
end)[/lua]

Second thing you wanted.



--remove death notices
function GM:DrawDeathNotice( x, y )
	return false
end


Ill try both of your methods of removing death notices, and thanks entoros :slight_smile: