From 0291b7ddecb39457c15550b27edf89be2b624239 Mon Sep 17 00:00:00 2001 From: Damen Date: Fri, 25 Jan 2019 01:33:31 -0500 Subject: [PATCH] removes the ability for passive players to enter business vehicles --- gamemodes/irresistible/cnr/features/business/business.pwn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/business/business.pwn b/gamemodes/irresistible/cnr/features/business/business.pwn index de0c59e..c16d9f7 100644 --- a/gamemodes/irresistible/cnr/features/business/business.pwn +++ b/gamemodes/irresistible/cnr/features/business/business.pwn @@ -506,6 +506,13 @@ hook OnPlayerDriveVehicle( playerid, vehicleid ) { if ( g_isBusinessVehicle[ vehicleid ] != -1 && Iter_Contains( business, g_isBusinessVehicle[ vehicleid ] ) ) { + if ( IsPlayerPassive( playerid ) ) + { + ShowPlayerHelpDialog( playerid, 2000, "Passive players cannot enter business vehicles." ); + RemovePlayerFromVehicle( playerid ); + return 1; + } + new businessid = g_isBusinessVehicle[ vehicleid ];