09.04.2015, 09:46
I use this script to check it, it might be useful to you:
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.
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;
}
}
}
EDIT: just use i as houseid and retrieve the info from that.

