fix bug
This commit is contained in:
parent
0664695fc0
commit
c3260efacb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user