From 25f507c5e3cd0937543f5ee183233e2c1c7f3eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Gr=C3=BCnbacher?= Date: Fri, 2 May 2014 16:59:36 +0200 Subject: [PATCH] StatsX: Add is_user_alive check to eventSpawn --- plugins/cstrike/statsx.sma | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 667c5d51..68a85de3 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1378,6 +1378,9 @@ public eventStartRound() // Reset killer info on round restart. public eventSpawn(id) { + if (!is_user_alive(id)) + return HAM_IGNORED + new args[1] args[0] = id