From d42b468d3acc4ccc0c42091d68b1a8ecbd5d07f7 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Mon, 23 Mar 2026 12:29:09 +0100 Subject: [PATCH] fix(logic): infection check --- addons/sourcemod/scripting/KnifeMode.sp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/KnifeMode.sp b/addons/sourcemod/scripting/KnifeMode.sp index f846f5d..cda2ffc 100644 --- a/addons/sourcemod/scripting/KnifeMode.sp +++ b/addons/sourcemod/scripting/KnifeMode.sp @@ -35,7 +35,7 @@ public Plugin myinfo = name = "[ZR] Knife Mode", author = "Franc1sco steam: franug, inGame, maxime1907, .Rushaway", description = "Kill zombies with knife", - version = "2.7.8", + version = "2.7.9", url = "" } @@ -177,7 +177,10 @@ void Event_PlayerHurt(Event event, const char[] name, bool dontBroadcast) public void ZR_OnClientInfected(int client, int attacker, bool motherInfect, bool respawnOverride, bool respawn) { - if (!g_bEnabled) + if (!g_bEnabled || motherInfect) + return; + + if (attacker < 1 || attacker > MaxClients) return; if (!g_ZombieExplode[attacker])