23.04.2018, 06:41
here
PHP код:
stock IsPlayerOutHouse(playerid, extra = 0)
{
new temp = -1, iSize;
if(extra) iSize = 5;
else iSize = 2;
HouseLoop(h)
{
if(HouseInfo[h][hActive] != true) continue;
if(GetPlayerInterior(playerid) == HouseInfo[h][hInterior] && GetPlayerVirtualWorld(playerid) == HouseInfo[h][hVirtualWorld])
{
if(IsPlayerInRangeOfPoint(playerid, iSize, HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ]))
return h;
}
}
return temp;
}