From bfa237c5e45d345d8becb8f93acb6240f08ea15d Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Wed, 29 May 2019 17:34:54 +0300 Subject: [PATCH] Update jail.pwn --- gamemodes/irresistible/cnr/features/cop/jail.pwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/cop/jail.pwn b/gamemodes/irresistible/cnr/features/cop/jail.pwn index 2a13ec1..c6df2e5 100644 --- a/gamemodes/irresistible/cnr/features/cop/jail.pwn +++ b/gamemodes/irresistible/cnr/features/cop/jail.pwn @@ -264,6 +264,7 @@ stock JailPlayer( playerid, seconds, admin = 0 ) p_DetainedLabel [ playerid ] = Text3D: INVALID_3DTEXT_ID; p_DetainedBy [ playerid ] = INVALID_PLAYER_ID; + RemovePlayerFromEvent ( playerid, true ); CancelEdit ( playerid ); RemovePlayerStolensFromHands( playerid ); StopPlayerUsingSlotMachine ( playerid ); @@ -541,4 +542,4 @@ stock jailDoors( playerid, remove = false, set_closed = true ) DestroyDynamicObject( p_AlcatrazObject[ playerid ] ), p_AlcatrazObject[ playerid ] = INVALID_OBJECT_ID; } -} \ No newline at end of file +}