From 0af017149fc331c9080f1079aa339726c968f289 Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Wed, 29 May 2019 17:38:21 +0300 Subject: [PATCH] Update jail.pwn Removes player from event upon getting jailed --- 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..6c27297 100644 --- a/gamemodes/irresistible/cnr/features/cop/jail.pwn +++ b/gamemodes/irresistible/cnr/features/cop/jail.pwn @@ -268,6 +268,7 @@ stock JailPlayer( playerid, seconds, admin = 0 ) RemovePlayerStolensFromHands( playerid ); StopPlayerUsingSlotMachine ( playerid ); RemoveEquippedOre ( playerid ); + RemovePlayerFromEvent ( playerid, true ); ClearPlayerWantedLevel ( playerid ); ResetPlayerWeapons ( playerid ); UntiePlayer ( 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 +}