From 5d7b7ac5388e6b4ad4529e12924f1ca5167827fa Mon Sep 17 00:00:00 2001 From: treywisp Date: Mon, 10 Nov 2025 19:02:28 +0100 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hotfix 1.1 --- killsay.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/killsay.lua b/killsay.lua index b8afcd1..80746ad 100644 --- a/killsay.lua +++ b/killsay.lua @@ -626,6 +626,8 @@ function main() end function sampev.onShowTextDraw(id, data) + if not imgui_buffers.script_state[0] then return end + if id == 2050 and data.text:find(".- %- .- %- KILL") then local current_time = os.clock() recent_textdraws[data.text] = current_time @@ -650,6 +652,8 @@ function sampev.onShowTextDraw(id, data) end function sampev.onPlayerDeathNotification(killer_id, victim_id) + if not imgui_buffers.script_state[0] then return end + if sampIsPlayerConnected(victim_id) then local nick = sampGetPlayerNickname(victim_id) if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then @@ -664,6 +668,8 @@ end function sampev.onSendGiveDamage(id, damage) + if not imgui_buffers.script_state[0] then return end + if sampIsPlayerConnected(id) then local nick = sampGetPlayerNickname(id) if id == 65535 or killed_players[nick] then return end