From f835bca30e266b55dc79636f8fe111debd7805a3 Mon Sep 17 00:00:00 2001 From: Damen Date: Wed, 2 Jan 2019 01:07:25 -0500 Subject: [PATCH] adds jail check to sync command --- gamemodes/irresistible/cnr/features/damage_feed.pwn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/damage_feed.pwn b/gamemodes/irresistible/cnr/features/damage_feed.pwn index a1749c2..a96d8f4 100644 --- a/gamemodes/irresistible/cnr/features/damage_feed.pwn +++ b/gamemodes/irresistible/cnr/features/damage_feed.pwn @@ -553,6 +553,9 @@ CMD:sync( playerid, params[ ] ) if ( ! IsPlayerConnected( playerid ) || ! IsPlayerSpawned( playerid ) || p_SyncingPlayer{ playerid } == true || IsPlayerAFK( playerid ) ) return SendError( playerid, "You cannot use this feature at the moment." ); + if ( p_Jailed{ playerid } ) + return SendError( playerid, "You cannot use this feature while you are jailed." ); + if ( IsPlayerInAnyVehicle( playerid ) ) return SendError( playerid, "You cannot synchronize yourself in a vehicle." );