--pavetr.top/ds if not MENU_DLL then return end if exec_cfg_GetValue("Mayakovsky") == nil then exec_cfg_SetValue("Mayakovsky", true) end if exec_cfg_GetValue("Esenin") == nil then exec_cfg_SetValue("Esenin", true) end if exec_cfg_GetValue("Romanov") == nil then exec_cfg_SetValue("Romanov", true) end if exec_cfg_GetValue("Eltsin") == nil then exec_cfg_SetValue("Eltsin", true) end exec_menuaddtab("Friend damage", function() exec_menuaddlabel('Notify when', 15, 10, 20, 200, 20) exec_menuaddcheckbox("Steam friend getting damage", 15, 45, "Mayakovsky", "Notify when steam friend get damage") exec_menuaddcheckbox("Exechack friend getting damage", 15, 75, "Esenin", "Notify when exechack friend get damage") exec_menuaddcheckbox("Steam friend die", 15, 120, "Romanov", "Notify when steam friend die") exec_menuaddcheckbox("Exechack friend die", 15, 150, "Eltsin", "Notify when exechack friend die") end) local gay = [[ local function notify(victim, attacker, remain) if IsValid(attacker) then exechack_api.Notification('Friend "'..victim:Name()..'" damaged by "'..attacker:Name()..'" and has '..remain..' HP left') else exechack_api.Notification('Friend "'..victim:Name()..'" damaged and has '..remain..' HP left') end end local function sdoh(victim, attacker, remain) if IsValid(attacker) then exechack_api.Notification('Friend "'..victim:Name()..'" killed by "'..attacker:Name()..'"') else exechack_api.Notification('Friend "'..victim:Name()..'" died') end end hook.Add( "player_hurt", "frienddamagemonitor", function( data ) local victim = Player(data.userid) local attacker = Player(data.attacker) local remain = data.health if victim ~= LocalPlayer() then if remain > 0 then if exechack_api.cfg_GetValue("Mayakovsky") and victim:GetFriendStatus() == 'friend' then notify(victim, attacker, remain) end if exechack_api.cfg_GetValue("Esenin") and exechack_api.IsFriend(victim) then notify(victim, attacker, remain) end else if exechack_api.cfg_GetValue("Romanov") and victim:GetFriendStatus() == 'friend' then sdoh(victim, attacker, remain) end if exechack_api.cfg_GetValue("Eltsin") and exechack_api.IsFriend(victim) then sdoh(victim, attacker, remain) end end end end ) ]] exec_addclientcodetoautorun("frienddamage", gay) if IsInGame() then exec_runtoclientside(gay) end