В теме 1 сообщение

Автор : KosteR™

Спойлер

RemoveBuildingForPlayer(playerid, 2605, 1913.0100, -2220.2100, 29.8855, 0.25);
RemoveBuildingForPlayer(playerid, 2612, 1913.0100, -2220.2100, 29.8855, 0.25);
RemoveBuildingForPlayer(playerid, 2628, 1908.6400, -2245.3101, 9.9162, 0.25);
RemoveBuildingForPlayer(playerid, 2629, 1908.6400, -2245.3101, 9.9162, 0.25);
CreateObject(4956, 1917.95, -2229.25, 11.55, 0.00, 0.00, 90.42);
CreateObject(970, 1949.89, -2245.25, 10.67, 0.00, 0.00, 0.36);
CreateObject(970, 1945.75, -2245.25, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1941.59, -2245.27, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1937.45, -2245.27, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1933.30, -2245.28, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1929.17, -2245.28, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1925.05, -2245.29, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1920.91, -2245.29, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1916.77, -2245.31, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1914.72, -2245.30, 10.65, 0.00, 0.00, 0.00);
CreateObject(19425, 1907.23, -2245.11, 10.03, 0.00, 0.00, 0.00);
CreateObject(19425, 1903.94, -2245.11, 10.02, 0.00, 0.00, 0.00);
CreateObject(970, 1899.76, -2245.27, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1897.72, -2245.30, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1893.59, -2245.29, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1889.43, -2245.30, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1889.43, -2245.30, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1885.27, -2245.29, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1881.11, -2245.28, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1876.96, -2245.28, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1872.83, -2245.27, 10.65, 0.00, 0.00, 0.00);
CreateObject(970, 1867.28, -2215.46, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.30, -2211.33, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.41, -2207.24, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.45, -2203.10, 10.65, 0.00, 0.00, -90.60);
CreateObject(19425, 1910.49, -2245.12, 10.03, 0.00, 0.00, 0.00);
CreateObject(1232, 1902.02, -2245.54, 12.58, 0.00, 0.00, 0.00);
CreateObject(1232, 1912.35, -2245.52, 12.58, 0.00, 0.00, 0.00);
CreateObject(970, 1951.94, -2243.14, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1951.98, -2238.99, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.02, -2234.85, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.06, -2230.73, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.08, -2226.61, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.10, -2222.48, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.13, -2218.37, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1950.08, -2216.32, 10.65, 0.00, 0.00, 0.36);
CreateObject(8623, 1900.78, -2244.04, 9.97, 0.00, 0.00, 0.00);
CreateObject(8623, 1913.74, -2244.15, 9.97, 0.00, 0.00, 0.00);
CreateObject(1256, 1916.37, -2244.15, 10.60, 0.00, 0.00, -89.64);
CreateObject(1256, 1897.46, -2244.27, 10.60, 0.00, 0.00, -89.64);
CreateObject(970, 1881.60, -2231.86, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1878.48, -2231.85, 10.65, 0.00, 0.00, -88.20);
CreateObject(970, 1884.73, -2231.84, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1887.85, -2231.86, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1890.96, -2231.85, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1890.96, -2231.85, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1894.09, -2231.85, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1897.22, -2231.85, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1900.36, -2231.88, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1914.27, -2231.88, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1917.60, -2231.88, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1920.99, -2231.86, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1924.28, -2231.85, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1927.57, -2231.84, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1930.89, -2231.86, 10.65, 0.00, 0.00, -88.80);
CreateObject(970, 1934.15, -2231.88, 10.65, 0.00, 0.00, -88.80);
CreateObject(1257, 1892.75, -2247.13, 11.20, 0.00, 0.00, 90.36);
CreateObject(970, 1945.93, -2216.35, 10.65, 0.00, 0.00, 0.36);
CreateObject(19425, 1942.18, -2216.30, 10.24, 0.00, 0.00, 0.66);
CreateObject(19425, 1938.90, -2216.34, 10.24, 0.00, 0.00, 0.66);
CreateObject(19425, 1935.65, -2216.38, 10.24, 0.00, 0.00, 0.66);
CreateObject(1232, 1943.96, -2216.72, 12.77, 0.00, 0.00, 0.00);
CreateObject(1232, 1935.56, -2216.85, 12.77, 0.00, 0.00, 0.00);
CreateObject(970, 1952.17, -2214.24, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.18, -2210.08, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.21, -2205.91, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1952.23, -2202.63, 10.65, 0.00, 0.00, -90.42);
CreateObject(970, 1950.17, -2200.64, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1946.03, -2200.66, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1941.91, -2200.68, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1937.79, -2200.70, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1933.65, -2200.71, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1929.53, -2200.75, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1925.41, -2200.76, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1921.27, -2200.79, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1917.13, -2200.81, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1912.99, -2200.83, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1908.87, -2200.85, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1904.73, -2200.87, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1900.57, -2200.92, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1896.42, -2200.94, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1892.32, -2200.95, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1888.18, -2200.94, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1884.08, -2200.97, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1879.96, -2200.96, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1875.82, -2200.98, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1871.66, -2201.00, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1869.58, -2200.99, 10.65, 0.00, 0.00, 0.36);
CreateObject(970, 1867.24, -2219.60, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.15, -2223.74, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.12, -2227.89, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.07, -2232.01, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.07, -2236.15, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1867.02, -2240.25, 10.65, 0.00, 0.00, -90.60);
CreateObject(970, 1868.86, -2244.55, 10.65, 0.00, 0.00, -21.66);
CreateObject(970, 1867.00, -2241.72, 10.65, 0.00, 0.00, -90.60);

 

Спойлер

ZvFb05x.thumb.jpg.6da7e024e22d8bab8000f4db2c44b549.jpgQNPb4Jw.thumb.jpg.ea1c92b057886061c198bd8087008bb1.jpg

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!


Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.


Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Chopick
      От Chopick
      Всем здравствуйте! Делаю систему домов/бизнесов по туториалу knox know с плагином GoodArea. Есть проблема, если заходишь в интерьер бизнеса, то когда выходишь спавнит почему-то на пикап дома.

      Вот енумы:
       
      #define MAX_HOUSES 1000 #define MAX_BIZS 1000 enum house {         hID,         STREAMER_TAG_PICKUP:hPICKUP,         STREAMER_TAG_AREA:hAREA,         hOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:hTEXT[256],         STREAMER_TAG_MAP_ICON:hICON,         hPRICE,         hCLASS,         hINTERIOR,         Float:hX,         Float:hY,         Float:hZ,         Float:hA,         hCONDITION // Закрыт/Открыт } new House[MAX_HOUSES][house]; new Houses; new HouseGroup; enum biz {         bID,         STREAMER_TAG_PICKUP:bPICKUP,         STREAMER_TAG_AREA:bAREA,         bOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:bTEXT[256],         STREAMER_TAG_MAP_ICON:bICON,         bNAME[25],         bPRICE,         bTYPE,         bINTERIOR,         Float:bX,         Float:bY,         Float:bZ,         Float:bA } new Biz[MAX_BIZS][biz]; new Bizs; new BizGroup; enum interior_info {         intID,         intNAME[41],         intINTERIOR,         Float:intX,         Float:intY,         Float:intZ,         Float:intA,         STREAMER_TAG_AREA:intAREA } new Interior[MAX_INTERIORS][interior_info]; new Interiors; new InteriorGroup; Вот что у меня в OnGameModeInit:
      HouseGroup = CreateGroupGoodAreas(GoodArea:HouseEnter); InteriorGroup = CreateGroupGoodAreas(GoodArea:InteriorExit); BizGroup = CreateGroupGoodAreas(GoodArea:BizArea);  
      Вот стоки:
      GAResponse:HouseEnter(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                 if(House[index][hCONDITION] > 0 && House[index][hOWNER] == player_info[playerid][NAME] || House[index][hCONDITION] == 0)                 {                                         GoToInterior(playerid, House[index][hINTERIOR]);                                         SetPlayerVirtualWorld(playerid, index);                                 }                                 else if(House[index][hCONDITION] > 0 && House[index][hOWNER] != player_info[playerid][NAME]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Этот дом закрыт на ключ!");                         }                 }                 case GA_RESPONSE_ENTER:                 {                     if(House[index][hOWNER] == 0)                     {                         CreateNoOwnerHouseTD(playerid);                         for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                         {                             PlayerTextDrawShow(playerid, NoOwnerTextDraw_PTD[playerid][i]);                                 }                                 new price[8];                                 format(price, sizeof(price), "%d$", House[index][hPRICE]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][2], price);                                 new id[9];                                 format(id, sizeof(id), "%d", House[index][hID]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][0], id);                                 switch(House[index][hCLASS])                                 {                                     case 1: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "A");                                     case 2: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "B");                                     case 3: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "C");                                 }                                 for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                         {                             TextDrawShowForPlayer(playerid, NoOwnerTextDraw_TD[i]);                                 }                         }                 }                 case GA_RESPONSE_LEAVE:                 {                 for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                 {                     PlayerTextDrawHide(playerid, NoOwnerTextDraw_PTD[playerid][i]);                         }                         for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                 {                     TextDrawHideForPlayer(playerid, NoOwnerTextDraw_TD[i]);                         }                 }         }         return 1; } GAResponse:BizArea(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                     GoToInteriorBiz(playerid, Biz[index][bINTERIOR]);                                 SetPlayerVirtualWorld(playerid, index);                 }                 }         }         return 1; } GAResponse:InteriorExit(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 new world = GetPlayerVirtualWorld(playerid);                 if(key & KEY_WALK)                 {                     if(world < MAX_HOUSES)                     {                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, House[world][hX], House[world][hY], House[world][hZ]);                             SetPlayerFacingAngle(playerid, House[world][hA]);                                 }                                 else if(world < MAX_HOUSES + MAX_BIZS)                     {                         world -= MAX_HOUSES;                                         printf("%d index world", world);                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, Biz[world][bX], Biz[world][bY], Biz[world][bZ]);                             SetPlayerFacingAngle(playerid, Biz[world][bA]);                                 }                         }                         if(key & KEY_CTRL_BACK)                         {                             if(player_info[playerid][HOUSE] != House[world][hID]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Вы не владелец данного дома!");                             new dialog[256];                                 format(dialog, sizeof(dialog),                                         "{ffd900}[1]{ffffff}Информация о доме\n\                                         {ffd900}[2]{ffffff}%s дом",                                 (House[world][hCONDITION] == 1) ? ("{00ff00}Открыть") : ("{ff0000}Закрыть"));                             SPD(playerid, DLG_HMENU, DIALOG_STYLE_LIST, "{ffd900}Меню дома", dialog, "Выбрать", "Закрыть");                             return 1;                         }                 }         }         return 1; } stock GoToInterior(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода\n\                         Нажмите \"H\", чтобы открыть меню дома");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; } stock GoToInteriorBiz(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; }  
       
      Что мне делать, подскажите пожалуйста?