add isplayeringarage helper

This commit is contained in:
Lorenc Pekaj 2019-06-12 19:21:55 +10:00
parent fb74e2f615
commit ecc61ca9b4

View File

@ -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;
}