26.06.2015, 13:36
Quote:
And how do i add these codes to the one i posted above i dont want to screw it up
|
I don't know, I don't see your script. I guess you can go where you have your functions defined (public or stock) and add these:
pawn Код:
function getBStandingExit(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;
}
pawn Код:
function getHStandingExit(playerid, Float:radius = 15.0) {
for(new i=0;i<sizeof(Houses);i++) {
if(IsPlayerInRangeOfPoint(playerid, radius, Houses[Player[i][House]][hExteriorX], Houses[Player[i][House]][hExteriorY], Houses[Player[i][House]][hExteriorZ])) {
return i;
}
}
return -1;
}