23.04.2018, 01:43
Try removing the one i've marked red, the interior must be 0
Quote:
new tmpid; tmpid = IsPlayerOutHouse(playerid); if(tmpid != -1 && !IsPlayerInAnyVehicle(playerid)) { if(HouseInfo[tmpid][hClosed] == true && PlayerInfo[playerid][housenum] != tmpid) return GameTextForPlayer(playerid,"~r~Closed", 3000, 3); new intpack = HouseInfo[tmpid][hInteriorPack]; SetPlayerPos(playerid, IntInfo[intpack][intX], IntInfo[intpack][intY], IntInfo[intpack][intZ]); SetPlayerInterior(playerid, tmpid+1); SetPlayerVirtualWorld(playerid, tmpid+1); SetPlayerFacingAngle(playerid, IntInfo[intpack][intY]); SetCameraBehindPlayer(playerid); PlayerTemp[playerid][tmphouse] = tmpid; SaveHouse(tmpid); return 1; } |