[Help] I need help with this
#7

Quote:
Originally Posted by BigGreen
Посмотреть сообщение
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;  
}
and
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;
}
Then use them in the commands like in the example above.
Reply


Messages In This Thread
[Help] I need help with this - by BigGreen - 26.06.2015, 13:18
Re: [Help] I need help with this - by Prokill911 - 26.06.2015, 13:24
Re: [Help] I need help with this - by BigGreen - 26.06.2015, 13:28
Re: [Help] I need help with this - by rappy93 - 26.06.2015, 13:31
Re: [Help] I need help with this - by BigGreen - 26.06.2015, 13:33
Re: [Help] I need help with this - by Prokill911 - 26.06.2015, 13:36
Re: [Help] I need help with this - by rappy93 - 26.06.2015, 13:36
Re: [Help] I need help with this - by Prokill911 - 26.06.2015, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)