House spawns you at 0,0,0 instead of set value.
#7

Tried making a command out of it, worked and put me in the house successfully.
pawn Код:
CMD:enterhouse(playerid, param[])
{
    SetPlayerInterior(playerid, HouseData[1][hInterior]);
    SetPlayerPos(playerid, HouseData[1][hiX],HouseData[1][hiY],HouseData[1][hiZ]);
    return 1;
}
Here is the array + enum:
pawn Код:
enum _HouseData
{
    hHouseID,
    hOwnedBy[24],
    hLocation[128],
    hPrice,
    hInterior,
    Float:hiX,
    Float:hiY,
    Float:hiZ,
    Float:heX,
    Float:heY,
    Float:heZ,
    Text3D:hHouseText,
    hPickupID,
    hSlots,
    hForSale,
    hLocked,
    hDefaultPrice,
    hMapIcon,
};
new HouseData[MAX_HOUSES][_HouseData];
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)