From 9bc63471cb65d1070b3e9718e1fa94246e2aaecc Mon Sep 17 00:00:00 2001 From: Damen Date: Sun, 13 Jan 2019 01:15:48 -0500 Subject: [PATCH] adds KillTimer for arrest, forgot to do when re-did branch --- gamemodes/irresistible/cnr/features/cop/arrest.pwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/cop/arrest.pwn b/gamemodes/irresistible/cnr/features/cop/arrest.pwn index 1662f3a..a4ee1a8 100644 --- a/gamemodes/irresistible/cnr/features/cop/arrest.pwn +++ b/gamemodes/irresistible/cnr/features/cop/arrest.pwn @@ -278,6 +278,8 @@ stock ArrestPlayer( victimid, playerid ) GivePlayerSeasonalXP( victimid, -20.0 ); SendGlobalMessage( -1, ""COL_GOLD"[JAIL]{FFFFFF} %s(%d) has sent %s(%d) to jail for %d seconds!", ReturnPlayerName( playerid ), playerid, ReturnPlayerName( victimid ), victimid, totalSeconds ); JailPlayer( victimid, totalSeconds ); + KillTimer( p_AwaitingBCAttemptTimer[ victimid ] ); + p_AwaitingBCAttemptTimer[ playerid ] = SetTimerEx( "BreakPlayerCuffsAttempt", 3000, false, "d", victimid ); return 1; } else return SendError( playerid, "There are no players around to arrest." );