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

 Потратил очень много времени. Прошу оценить хорошим комментарием :)

Спойлер

CreateObject(3095, 2009.70, -2153.63, 19.91, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.55, -2162.62, 19.91, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.42, -2171.57, 19.91, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.31, -2180.52, 19.91, 0.24, -92.04, -0.90);
CreateObject(3095, 2013.22, -2184.56, 19.98, -1.20, -89.76, -270.48);
CreateObject(3095, 2021.91, -2184.60, 28.83, -0.84, -89.76, -270.96);
CreateObject(3095, 2030.92, -2184.78, 20.25, -0.84, -89.76, -270.48);
CreateObject(3095, 2039.84, -2184.82, 20.37, -0.84, -89.76, -270.48);
CreateObject(3095, 2013.81, -2149.76, 20.05, 1.74, -90.36, -451.38);
CreateObject(3095, 2022.65, -2149.84, 28.94, 1.68, -90.24, -450.60);
CreateObject(3095, 2040.39, -2150.05, 20.82, 1.68, -90.24, -450.60);
CreateObject(3095, 2031.60, -2149.97, 20.56, 1.68, -90.24, -450.60);
CreateObject(3095, 2013.67, -2153.86, 24.12, 0.12, -1.62, 0.18);
CreateObject(3095, 2013.89, -2172.08, 22.36, -23.94, -2.04, -2.22);
CreateObject(3095, 2013.32, -2180.46, 24.10, 0.12, -1.62, -1.08);
CreateObject(3095, 2022.18, -2180.63, 24.34, 0.12, -1.62, -1.08);
CreateObject(3095, 2022.36, -2171.88, 24.35, 0.12, -1.62, -1.08);
CreateObject(3095, 2022.42, -2162.96, 24.38, 0.12, -1.62, 0.18);
CreateObject(3095, 2022.30, -2154.01, 24.38, 0.12, -1.62, 0.18);
CreateObject(3095, 2030.86, -2180.70, 24.54, 0.12, -1.62, -1.08);
CreateObject(3095, 2031.01, -2171.69, 24.55, 0.12, -1.62, -1.08);
CreateObject(3095, 2031.03, -2162.81, 24.58, 0.12, -1.62, 0.18);
CreateObject(3095, 2030.91, -2154.06, 24.61, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.91, -2154.05, 24.80, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.94, -2162.99, 24.76, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.80, -2171.87, 24.78, 0.12, -1.62, -1.08);
CreateObject(3095, 2039.65, -2180.80, 24.77, 0.12, -1.62, -1.08);
CreateObject(3095, 2013.01, -2184.44, 28.64, -1.20, -89.76, -270.48);
CreateObject(3095, 2022.04, -2184.67, 20.11, -0.84, -89.76, -270.96);
CreateObject(3095, 2030.75, -2184.70, 29.06, -0.84, -89.76, -270.48);
CreateObject(3095, 2039.75, -2184.80, 29.31, -1.02, -90.18, -270.48);
CreateObject(3095, 2040.23, -2150.00, 29.44, 1.68, -90.24, -450.60);
CreateObject(3095, 2031.61, -2149.93, 29.19, 1.68, -90.24, -450.60);
CreateObject(3095, 2022.65, -2149.86, 20.30, 1.68, -90.24, -450.60);
CreateObject(3095, 2013.66, -2149.70, 28.71, 1.74, -90.36, -451.38);
CreateObject(3095, 2009.47, -2153.63, 28.69, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.31, -2162.52, 28.62, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.17, -2171.48, 28.59, 0.24, -92.04, -0.90);
CreateObject(3095, 2009.02, -2180.41, 28.56, 0.24, -92.04, -0.90);
CreateObject(3095, 2013.54, -2153.94, 32.73, 0.12, -1.62, 0.18);
CreateObject(3095, 2013.68, -2162.97, 32.68, 0.12, -1.62, 0.18);
CreateObject(3095, 2013.52, -2171.71, 32.68, 0.12, -1.62, -1.08);
CreateObject(3095, 2022.30, -2154.01, 32.95, 0.12, -1.62, 0.18);
CreateObject(3095, 2022.41, -2163.00, 32.89, 0.12, -1.62, 0.18);
CreateObject(3095, 2022.40, -2171.80, 32.89, 0.12, -1.62, -1.08);
CreateObject(3095, 2013.32, -2180.46, 32.67, 0.12, -1.62, -1.08);
CreateObject(3095, 2022.18, -2180.63, 32.88, 0.12, -1.62, -1.08);
CreateObject(3095, 2030.86, -2180.70, 33.10, 0.12, -1.62, -1.08);
CreateObject(3095, 2031.01, -2171.69, 33.12, 0.12, -1.62, -1.08);
CreateObject(3095, 2031.03, -2162.81, 33.12, 0.12, -1.62, 0.18);
CreateObject(3095, 2030.91, -2154.06, 33.14, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.91, -2154.05, 33.40, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.94, -2162.99, 33.41, 0.12, -1.62, 0.18);
CreateObject(3095, 2039.80, -2171.87, 33.35, 0.12, -1.62, -1.08);
CreateObject(3095, 2039.65, -2180.80, 33.33, 0.12, -1.62, -1.08);
CreateObject(3095, 2043.83, -2180.79, 29.49, -0.18, -89.52, 178.92);
CreateObject(3095, 2043.95, -2171.84, 29.49, -0.18, -89.52, 178.92);
CreateObject(3095, 2044.07, -2162.87, 29.49, -0.18, -89.52, 178.92);
CreateObject(3095, 2044.24, -2154.16, 29.49, -0.18, -89.52, 178.92);
CreateObject(3095, 2043.90, -2180.75, 20.54, -0.18, -89.52, 178.92);
CreateObject(3095, 2044.32, -2154.13, 20.54, -0.18, -89.52, 178.92);
CreateObject(3095, 2048.88, -2171.84, 24.98, 0.12, -1.62, -1.08);
CreateObject(3095, 2048.86, -2162.99, 25.01, 0.12, -1.62, 0.18);
CreateObject(3095, 2048.88, -2158.98, 21.03, 1.68, -90.24, -450.60);
CreateObject(3095, 2048.88, -2175.93, 20.93, -0.84, -89.76, -270.48);
CreateObject(3095, 2048.94, -2170.20, 20.93, -0.84, -89.76, -269.64);
CreateObject(3095, 2048.93, -2163.89, 20.93, -0.84, -89.76, -269.46);
CreateObject(3095, 2014.14, -2163.78, 19.11, -18.60, -1.50, -0.84);
CreateObject(970, 2011.67, -2158.31, 25.16, 0.42, -1.56, 0.30);
CreateObject(970, 2015.87, -2158.28, 25.27, 0.42, -1.56, 0.30);
CreateObject(970, 2017.92, -2160.38, 25.34, -1.44, -0.12, 90.30);
CreateObject(970, 2017.94, -2164.50, 25.34, -1.44, -0.12, 90.30);
CreateObject(970, 2017.93, -2168.68, 25.34, -1.44, -0.12, 88.98);
CreateObject(970, 2017.85, -2172.85, 25.34, -1.44, -0.12, 88.74);
CreateObject(1597, 2052.37, -2181.45, 22.78, 0.00, 0.00, 0.00);
CreateObject(1597, 2052.60, -2153.56, 22.78, 0.00, 0.00, 0.78);
CreateObject(1597, 2047.16, -2148.45, 22.78, 0.00, 0.00, -90.12);
CreateObject(1597, 2046.79, -2185.77, 22.78, 0.00, 0.00, -90.12);
CreateObject(869, 2049.52, -2178.32, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2046.49, -2178.27, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2046.55, -2180.85, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2049.49, -2181.03, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2049.58, -2183.39, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2046.05, -2183.58, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2047.02, -2156.83, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2049.96, -2156.87, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2046.98, -2154.65, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2046.89, -2151.66, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2050.02, -2151.20, 20.68, 0.00, 0.00, 0.00);
CreateObject(869, 2050.09, -2153.96, 20.68, 0.00, 0.00, 0.00);
CreateObject(1334, 2054.59, -2156.95, 20.69, 0.00, 0.00, 268.68);
CreateObject(3408, 2061.52, -2179.48, 20.95, 0.00, 0.00, -180.12);
CreateObject(3408, 2096.88, -2179.36, 20.95, 0.00, 0.00, -180.12);
CreateObject(3408, 2085.09, -2179.36, 20.95, 0.00, 0.00, -180.12);
CreateObject(3408, 2073.30, -2179.42, 20.95, 0.00, 0.00, -180.12);
CreateObject(3408, 2059.98, -2157.75, 20.95, 0.00, 0.00, -360.54);
CreateObject(3408, 2106.77, -2157.95, 20.95, 0.00, 0.00, -360.54);
CreateObject(3408, 2095.18, -2158.03, 20.95, 0.00, 0.00, -360.54);
CreateObject(3408, 2083.56, -2157.96, 20.95, 0.00, 0.00, -360.54);
CreateObject(3408, 2071.66, -2157.90, 20.95, 0.00, 0.00, -360.54);
CreateObject(1411, 2108.03, -2147.15, 21.54, 0.00, 0.00, -0.66);
CreateObject(1411, 2102.86, -2147.08, 21.54, 0.00, 0.00, -0.66);
CreateObject(1411, 2097.70, -2147.04, 21.54, 0.00, 0.00, -0.66);
CreateObject(1411, 2092.53, -2146.99, 21.54, 0.00, 0.00, -0.66);
CreateObject(1411, 2087.35, -2146.99, 21.54, 0.00, 0.00, 0.42);
CreateObject(1411, 2082.19, -2147.07, 21.54, 0.00, 0.00, 0.78);
CreateObject(1411, 2077.02, -2147.05, 21.54, 0.00, 0.00, -0.78);
CreateObject(1411, 2071.87, -2147.03, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2066.70, -2147.02, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2061.52, -2147.00, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2056.33, -2146.98, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2051.14, -2146.97, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2045.95, -2146.96, 21.54, 0.00, 0.00, -0.18);
CreateObject(1411, 2040.89, -2148.09, 21.54, 0.00, 0.00, 25.38);
CreateObject(1411, 2112.05, -2149.55, 21.54, 0.00, 0.00, -61.56);
CreateObject(3408, 2108.56, -2179.42, 20.95, 0.00, 0.00, -180.12);
CreateObject(1411, 2107.97, -2190.11, 22.25, 0.00, 0.00, -178.92);
CreateObject(1411, 2102.91, -2190.16, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2097.87, -2190.17, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2092.78, -2190.13, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2087.62, -2190.12, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2082.44, -2190.10, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2077.27, -2190.07, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2072.11, -2190.08, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2066.92, -2190.06, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2061.76, -2190.07, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2056.58, -2190.05, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2051.39, -2190.03, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2046.23, -2190.04, 22.25, 0.00, 0.00, -180.12);
CreateObject(1411, 2041.83, -2187.93, 22.25, 0.00, 0.00, -230.76);
CreateObject(1411, 2112.06, -2187.72, 22.25, 0.00, 0.00, -121.56);

 

Спойлер

oVPvn-e8Q-E.jpg

 

D9aLTGe4PhM.jpg

kOj-8-qfBdU.jpg

qQvbkvpirQE.jpg

7H2ITutjzEE.jpg

QFAGvqRJVUs.jpg

dB0o2cYntkE.jpg

iugafmUxsOA.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; }  
       
      Что мне делать, подскажите пожалуйста?