--by exechack.cc Toxicbadkazuin local count = 0 gameevent.Listen( "entity_killed" ) hook.Add( "entity_killed", "entity_killed_example", function( data ) local inflictor_index = data.entindex_inflictor // Same as Weapon:EntIndex() / weapon used to kill victim local attacker_index = data.entindex_attacker // Same as Player/Entity:EntIndex() / person or entity who did the damage local damagebits = data.damagebits // DAMAGE_TYPE - use BIT operations to decipher damage types... local victim_index = data.entindex_killed // Same as Victim:EntIndex() / the entity / player victim if victim_index == LocalPlayer():EntIndex()then return end if attacker_index == LocalPlayer():EntIndex()then count = count + 1 end end ) local mat = Material( "effects/mh_blood1" ) local size = 90 hook.Add( "HUDPaint", "0", function() surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetMaterial( mat ) surface.DrawTexturedRect( 0, 0, size, size ) local text = tostring( count ) or "0" surface.SetFont( "HudNumbers" ) surface.SetTextColor( 255, 255, 255 ) local text_size_x, text_size_y = surface.GetTextSize( text ) surface.SetTextPos(size*0.5 - text_size_x*0.65, size*0.5 - text_size_y*0.7) surface.DrawText( text ) end)