From 1139f4e92eeff2243d94afc8e52420d16d7533b3 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Mon, 5 Nov 2018 10:49:23 +1100 Subject: [PATCH] disable /sync in passive mode --- 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 dbb4cd7..b820593 100644 --- a/gamemodes/irresistible/cnr/features/damage_feed.pwn +++ b/gamemodes/irresistible/cnr/features/damage_feed.pwn @@ -546,6 +546,9 @@ CMD:sync( playerid, params[ ] ) if ( GetPlayerWeapon( playerid ) == WEAPON_SNIPER ) return SendError( playerid, "You cannot synchronize yourself holding a sniper." ); + if ( IsPlayerPassive( playerid ) ) + return SendError( playerid, "You cannot use this feature while in passive mode." ); + new curr_server_time = GetServerTime( );