From 847158f400d2c19702598cec2d93c8767abdb789 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 20 Nov 2005 02:36:52 +0000 Subject: [PATCH] what --- plugins/dod/stats.sma | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/dod/stats.sma b/plugins/dod/stats.sma index de70d35c..e62972d4 100755 --- a/plugins/dod/stats.sma +++ b/plugins/dod/stats.sma @@ -548,10 +548,13 @@ public client_damage(attacker,victim,damage,wpnindex,hitplace,TA) } /* save state at death */ -public client_death(killer,victim,wpnindex,hitplace,TK){ - +public client_death(killer,victim,wpnindex,hitplace,TK) +{ new killer_name[32] get_user_name(killer,killer_name,31) + + if (!is_user_connected(killer)) + return PLUGIN_CONTINUE new enemygre = ( ( (wpnindex == DODW_HANDGRENADE || wpnindex == DODW_MILLS_BOMB) && get_user_team(killer) == 2 ) || ( wpnindex == DODW_STICKGRENADE && get_user_team(killer) == 1 ) ) ? 1:0