From b11fb85f99bb8a3d11fadfc9a0c0402dd9e2fe95 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 3 Sep 2023 20:47:04 +0500 Subject: [PATCH] don't go to negatives --- beatrun/gamemodes/beatrun/gamemode/sh/Deathmatch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Deathmatch.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Deathmatch.lua index a2bb3fd..474f71e 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Deathmatch.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Deathmatch.lua @@ -50,7 +50,7 @@ if SERVER then if GetGlobalBool("GM_DEATHMATCH") then local plyKills = ply:GetNW2Int("DeathmatchKills", 0) - if ply == attacker then + if ply == attacker and plyKills ~= 0 then ply:SetNW2Int("DeathmatchKills", plyKills - 1) elseif IsValid(attacker) and attacker ~= ply then local kills = attacker:GetNW2Int("DeathmatchKills", 0)