This commit is contained in:
edshot99 2024-12-21 13:33:50 -06:00
parent 0664695fc0
commit c3260efacb

View File

@ -16,8 +16,10 @@ hook.Add("PlayerDeath", "edshot_player_stats_killstreak", function(victim, infli
if deaths > attacker.CDeaths then
attacker.Killstreak = 0
attacker.CDeaths = deaths
attacker:SetNWInt("playerStreak", attacker.Killstreak)
else
attacker.Killstreak = attacker.Killstreak + 1
attacker:SetNWInt("playerStreak", attacker.Killstreak)
local k1 = attacker.Killstreak / NUKE_KILLSTREAK
local k2 = math.Round(k1)
@ -26,7 +28,5 @@ hook.Add("PlayerDeath", "edshot_player_stats_killstreak", function(victim, infli
attacker:Give(NUKE_SWEP)
end
end
attacker:SetNWInt("playerStreak", attacker.Killstreak)
end
end)