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

Автор: NIKRUS

Спойлер

0yEOq_iHjb4.thumb.jpg.03955325d3a66e438471fefcb0288a70.jpgaOO8JmvYAo8.thumb.jpg.91924a4ee24331d23ec9451395574ad6.jpg

Спойлер


//Remove Buildings///////////////////////////////////////////////////////////////////////////////////////////////
RemoveBuildingForPlayer(playerid, 4443, 2267.090, -1737.329, 22.964, 0.250);

//Objects////////////////////////////////////////////////////////////////////////////////////////////////////////
new tmpobjid;
tmpobjid = CreateObject(18981, 2257.590087, -1726.189941, 20.489999, 0.000000, 90.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 4003, "arz_park", "wolv_dr_2", 0x00000000);
tmpobjid = CreateObject(18981, 2257.610107, -1701.250000, 20.489999, 0.000000, 90.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 4003, "arz_park", "wolv_dr_2", 0x00000000);
tmpobjid = CreateObject(18981, 2232.719970, -1701.280029, 20.489999, 0.000000, 90.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 4003, "arz_park", "wolv_dr_2", 0x00000000);
tmpobjid = CreateObject(18981, 2232.739990, -1726.260009, 20.489999, 0.000000, 90.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 4003, "arz_park", "wolv_dr_2", 0x00000000);
tmpobjid = CreateObject(3084, 2226.439941, -1738.619995, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2238.810058, -1738.619995, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2251.250000, -1738.619995, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2263.679931, -1738.619995, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2269.810058, -1732.489990, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2269.810058, -1720.089965, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2269.810058, -1707.760009, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2263.840087, -1688.780029, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2251.449951, -1688.780029, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2239.040039, -1688.780029, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2226.580078, -1688.780029, 22.469999, 0.000000, 0.000000, 0.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2220.229980, -1732.430053, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2220.229980, -1720.030029, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2220.229980, -1707.599975, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
tmpobjid = CreateObject(3084, 2220.229980, -1695.170043, 22.469999, 0.000000, 0.000000, 90.000000, 300.00); 
SetObjectMaterial(tmpobjid, 0, 2630, "betapack", "stroika2", 0x00000000);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
tmpobjid = CreateObject(8740, 2266.179931, -1705.010009, 20.840000, 0.000000, 0.000000, -90.000000, 300.00); 
tmpobjid = CreateObject(8740, 2266.129882, -1712.760009, 20.840000, 0.000000, 0.000000, -90.000000, 300.00); 
tmpobjid = CreateObject(8740, 2266.129882, -1720.810058, 20.840000, 0.000000, 0.000000, -90.000000, 300.00); 
tmpobjid = CreateObject(8740, 2266.239990, -1728.920043, 20.840000, 0.000000, 0.000000, -90.000000, 300.00); 
tmpobjid = CreateObject(8743, 2267.179931, -1736.000000, 20.979999, 0.000000, 0.000000, -90.000000, 300.00); 
tmpobjid = CreateObject(9160, 2225.959960, -1733.420043, 21.620000, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(9184, 2225.959960, -1733.420043, 21.620000, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(9183, 2225.959960, -1733.420043, 21.620000, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(9198, 2225.820068, -1728.589965, 22.069999, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(2359, 2252.689941, -1735.560058, 20.969999, 0.000000, 0.000000, 180.000000, 300.00); 
tmpobjid = CreateObject(1338, 2264.320068, -1724.430053, 21.700000, 0.000000, 0.000000, 40.000000, 300.00); 
tmpobjid = CreateObject(1338, 2264.540039, -1727.170043, 21.700000, 0.000000, 0.000000, -25.000000, 300.00); 
tmpobjid = CreateObject(1338, 2263.899902, -1725.790039, 21.700000, 0.000000, 0.000000, -25.000000, 300.00); 
tmpobjid = CreateObject(1972, 2263.260009, -1717.310058, 21.590000, 90.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1972, 2263.260009, -1717.310058, 22.600000, 90.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(3040, 2252.149902, -1726.050048, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2252.139892, -1720.670043, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2252.080078, -1715.599975, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2252.179931, -1710.719970, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2252.139892, -1705.660034, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2243.879882, -1705.660034, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2244.159912, -1710.849975, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2244.310058, -1716.140014, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2244.300048, -1720.890014, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(3040, 2244.300048, -1726.229980, 23.280000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(4087, 2222.899902, -1692.209960, 22.959999, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1227, 2221.600097, -1697.219970, 22.000000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(1227, 2221.580078, -1699.569946, 22.000000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(1227, 2221.590087, -1701.920043, 22.000000, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(4214, 2267.320068, -1700.449951, 22.629999, 0.000000, 0.000000, 90.000000, 300.00); 
tmpobjid = CreateObject(1299, 2255.419921, -1737.369995, 21.340000, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1299, 2252.750000, -1736.920043, 21.340000, 0.000000, 0.000000, -47.000000, 300.00); 
tmpobjid = CreateObject(1348, 2250.610107, -1737.540039, 21.700000, 0.000000, 0.000000, -55.000000, 300.00); 
tmpobjid = CreateObject(1217, 2222.780029, -1695.880004, 21.409999, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1217, 2223.639892, -1695.829956, 21.409999, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1217, 2224.530029, -1695.829956, 21.409999, 0.000000, 0.000000, 0.000000, 300.00); 
tmpobjid = CreateObject(1685, 2235.800048, -1736.939941, 21.629999, 0.000000, 0.000000, -26.000000, 300.00); 
tmpobjid = CreateObject(1685, 2238.179931, -1737.069946, 21.629999, 0.000000, 0.000000, 25.000000, 300.00); 
tmpobjid = CreateObject(1685, 2237.060058, -1734.810058, 21.629999, 0.000000, 0.000000, -4.000000, 300.00); 
tmpobjid = CreateObject(1685, 2240.169921, -1735.560058, 21.629999, 0.000000, 0.000000, -4.000000, 300.00); 
tmpobjid = CreateObject(1570, 2245.189941, -1736.369995, 21.729999, 0.000000, 0.000000, 178.000000, 300.00); 
tmpobjid = CreateObject(4994, 2255.719970, -1690.150024, 21.780000, 0.000000, 0.000000, 11.000000, 300.00); 
tmpobjid = CreateObject(4994, 2250.159912, -1690.439941, 21.780000, 0.000000, 0.000000, 11.000000, 300.00); 
tmpobjid = CreateObject(4994, 2244.870117, -1690.489990, 21.780000, 0.000000, 0.000000, 11.000000, 300.00); 
tmpobjid = CreateObject(4994, 2239.739990, -1690.770019, 21.780000, 0.000000, 0.000000, 11.000000, 300.00); 
tmpobjid = CreateObject(4051, 2229.659912, -1715.680053, 23.209999, 0.000000, 0.000000, -90.000000, 300.00); 

 

 

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


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

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

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

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

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


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

Войти

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


Войти

  • Последние посетители   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; }  
       
      Что мне делать, подскажите пожалуйста?
    • Jdjdjd
      От Jdjdjd
      Как сделать открытие закрытие ворот в Радмир рп на копии,и куд а нужно вставлять код?