• Disabling the kill icon system
    4 replies, posted
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] [url]http://luabin.foszor.com/code/gamemodes/base/gamemode/player.lua#273[/url]
[lua]hook.Add("PlayerDeath","PrintKiller",function(pl,inf,killer) killer:ChatPrint("You killed "..pl:Name()..".") end)[/lua] Second thing you wanted.
[code] --remove death notices function GM:DrawDeathNotice( x, y ) return false end [/code]
Ill try both of your methods of removing death notices, and thanks entoros :)
Sorry, you need to Log In to post a reply to this thread.