mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
don't go to negatives
This commit is contained in:
parent
e90e501a9e
commit
b11fb85f99
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ if SERVER then
|
||||||
if GetGlobalBool("GM_DEATHMATCH") then
|
if GetGlobalBool("GM_DEATHMATCH") then
|
||||||
local plyKills = ply:GetNW2Int("DeathmatchKills", 0)
|
local plyKills = ply:GetNW2Int("DeathmatchKills", 0)
|
||||||
|
|
||||||
if ply == attacker then
|
if ply == attacker and plyKills ~= 0 then
|
||||||
ply:SetNW2Int("DeathmatchKills", plyKills - 1)
|
ply:SetNW2Int("DeathmatchKills", plyKills - 1)
|
||||||
elseif IsValid(attacker) and attacker ~= ply then
|
elseif IsValid(attacker) and attacker ~= ply then
|
||||||
local kills = attacker:GetNW2Int("DeathmatchKills", 0)
|
local kills = attacker:GetNW2Int("DeathmatchKills", 0)
|
||||||
|
|
Loading…
Reference in a new issue