[Help] I need help with this
#2

Simply put...
Make a stock function

which loops through ALL your houses getting each EXIT X Y Z
( The position they stand on to EXIT the house )

Then
In your "lockhouse"

Put an if statement
example

PHP код:
getStandingExit(playeridFloat:radius 15.0) {
    for(new 
i=0;i<sizeof(Houses);i++) {
        if(
IsPlayerInRangeOfPoint(playeridradiusHouses[Player[i][House]][hExteriorX], Houses[Player[i][House]][hExteriorY], Houses[Player[i][House]][hExteriorZ])) {
            return 
i;
        }
    }
    return -
1;

OBVIOUSLY, You need to modify the code...
Because I just copied your EXTERIOR...
You need to get the INTERIOR coords
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)