Confused
#6

I use this script to check it, it might be useful to you:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    for(new i = 0; i < sizeof(HouseData); i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseData[i][heX],HouseData[i][heY],HouseData[i][heZ]))
        {
            new housestring[128];
            watchingHouse[playerid] = i;

            //format(housestring, sizeof(housestring), "House Menu for house ID %d!", watchingHouse[playerid]);
            //ShowPlayerDialog(playerid, DIALOG_ENTERHOUSE, DIALOG_STYLE_LIST, housestring, "Enter House\nBuy House", "Continue", "Cancel");
            break;
        }
    }
}
My script sends a dialog if he's in a checkpoint, but hopefully you get the point.

EDIT: just use i as houseid and retrieve the info from that.
Reply


Messages In This Thread
Confused - by iFiras - 09.04.2015, 09:06
Re: Confused - by Jimmy0wns - 09.04.2015, 09:09
Re: Confused - by Darrenr - 09.04.2015, 09:18
Re: Confused - by iFiras - 09.04.2015, 09:21
Re: Confused - by Darrenr - 09.04.2015, 09:42
Re: Confused - by Jimmy0wns - 09.04.2015, 09:46
Re: Confused - by iFiras - 09.04.2015, 17:38
Re: Confused - by SickAttack - 09.04.2015, 17:55
Re: Confused - by iFiras - 09.04.2015, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)