24.07.2012, 15:26
Try this:
You didn't add a range. Plus, why are you using j as the playerid? From what it looks like, you are doing a loop with the variable i, as you check i's interior/virtual world, so I changed j to i on IsPlayerInRangeOfPoint.
pawn Код:
if(IsPlayerInRangeOfPoint(i, 7, HouseInfo[j][hEnterX], HouseInfo[j][hEnterY], HouseInfo[j][hEnterZ]) && GetPlayerInterior(i) == HouseInfo[j][hOutsideInt] && GetPlayerVirtualWorld(i) == HouseInfo[j][hOutsideVir])