diff --git a/plugins/cstrike/miscstats.sma b/plugins/cstrike/miscstats.sma index 5ca3678e..a8bc425c 100755 --- a/plugins/cstrike/miscstats.sma +++ b/plugins/cstrike/miscstats.sma @@ -322,6 +322,10 @@ public client_death(killer, victim, wpnindex, hitplace, TK) { for (new i=1; i<=maxplayers; i++) { + if (!is_user_connected(i)) + { + continue + } if (i == victim) { continue @@ -368,7 +372,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK) for (new i=1; i<=maxplayers; i++) { - if (!is_user_alive(i)) + if (!is_user_connected(i) || !is_user_alive(i)) { continue }