06.01.2015, 14:53
Ain't sure but give a try
pawn Код:
GetPlayerPos(playerid, HouseInfo[idx][hExteriorX], HouseInfo[idx][hExteriorY], HouseInfo[idx][hExteriorZ]);
GetPlayerFacingAngle(playerid, HouseInfo[idx][hExteriorA]);
HouseInfo[idx][hValue] = price;
HouseInfo[idx][hLevel] = level;
HouseInfo[idx][hOwned] = 0;
HouseInfo[idx][hLock] = 1;
format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[idx][hLevel],idx,HouseInfo[idx][hValue]);
HouseInfo[idx][hTextID] = CreateDynamic3DTextLabel(string, COLOR_HOUSEGREEN, HouseInfo[idx][hExteriorX], HouseInfo[idx][hExteriorY], HouseInfo[idx][hExteriorZ]+0.5,3);
HouseInfo[idx][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[idx][hExteriorX], HouseInfo[idx][hExteriorY], HouseInfo[idx][hExteriorZ]);
SaveHouses();
idx = MAX_HOUSES;
format(string, sizeof(string), "AdmcCmd: %s has created house ID %d.", GetPlayerNameEx(playerid), idx);
ABroadCast(COLOR_LIGHTRED, string, 2);