26.06.2015, 13:31
Houses and businesses usually work the same way so most likely it will work if you apply the above code for businesses, like this :
PHP код:
getStandingExit(playerid, Float:radius = 15.0) {
for(new i=0;i<sizeof(Businesses);i++) {
if(IsPlayerInRangeOfPoint(playerid, radius, Businesses[Player[i][Business]][bExteriorX], Businesses[Player[i][Business]][bExteriorY], Businesses[Player[i][Business]][bExteriorZ])) {
return i;
}
}
return -1;
}