23.04.2018, 14:13
new tmpid;
tmpid = IsPlayerOutHouse(playerid);
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, House Interior Id variable); SetPlayerVirtualWorld(playerid, houseid + 1000); SetPlayerFacingAngle(playerid, IntInfo[intpack][intY]); SetCameraBehindPlayer(playerid); PlayerTemp[playerid][tmphouse] = tmpid; SaveHouse(tmpid); return 1; }