From 4ca2bd524c894ba596e6bbee07db81c5e7f2b9ae Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sat, 8 Jun 2019 20:35:34 +0300 Subject: [PATCH] Fixes K/D in event Kills and deaths are no longer affected in events. --- gamemodes/sf-cnr.pwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 5826177..a29a425 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -1291,7 +1291,7 @@ public OnPlayerDeath( playerid, killerid, reason ) //DCC_SendChannelMessageFormatted( discordGeneralChan, "*%s(%d) has killed %s(%d) - %s!*", ReturnPlayerName( killerid ), killerid, ReturnPlayerName( playerid ), playerid, ReturnWeaponName( reason ) ); - if ( !IsPlayerAdminOnDuty( killerid ) ) + if ( !IsPlayerAdminOnDuty( killerid ) && ! IsPlayerInEvent( killerid ) ) { new killerGangId = p_GangID[ killerid ]; @@ -1439,7 +1439,7 @@ public OnPlayerDeath( playerid, killerid, reason ) DeletePVar( playerid, "used_cmd_kill" ); } - if ( ! IsPlayerInPaintBall( playerid ) && !p_LeftPaintball{ playerid } && !IsPlayerAdminOnDuty( playerid ) ) + if ( ! IsPlayerInPaintBall( playerid ) && !p_LeftPaintball{ playerid } && ! IsPlayerAdminOnDuty( playerid ) && ! IsPlayerInEvent( playerid ) ) { if ( playerGangId != INVALID_GANG_ID ) SaveGangData( playerGangId ), g_gangData[ playerGangId ] [ E_DEATHS ]++;