From ecc61ca9b4f692a894686413687b5bde88f5ccd4 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 12 Jun 2019 19:21:55 +1000 Subject: [PATCH] add isplayeringarage helper --- gamemodes/irresistible/cnr/features/vehicles/garages.pwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/vehicles/garages.pwn b/gamemodes/irresistible/cnr/features/vehicles/garages.pwn index 2440585..188af3c 100644 --- a/gamemodes/irresistible/cnr/features/vehicles/garages.pwn +++ b/gamemodes/irresistible/cnr/features/vehicles/garages.pwn @@ -571,3 +571,7 @@ stock GetGaragePos( garageid, &Float: X, &Float: Y, &Float: Z ) { Y = g_garageData[ garageid ] [ E_Y ]; Z = g_garageData[ garageid ] [ E_Z ]; } + +stock IsPlayerInGarage( playerid ) { + return p_InGarage[ playerid ] != -1; +} \ No newline at end of file