Добро пожаловать!

Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
27 Мар 2024
Сообщения
25
Привет, пытаюсь создать маппинг но он не отображается в игре, не интерьеры, ничего. Помогите пожалуйста
Pawn:
stock    LoadObject()
{
    new tmpobjid;

    #include <objects/mapping>
    #include <objects/dorogga>
    #include <objects/interior>
    #include <objects/mentovka>
    #include <objects/intaavtosh> // интерьер
    //#include <objects/autoschool_int>
    #include <objects/lesopilka> // лесопилка
    #include <objects/church> // инт церковь
    #include <objects/dps> // инт ДПС
    #include <objects/opg_ug>
    #include <objects/opg_arz_int>
    #include <objects/shata>
    #include <objects/int_shahta>
    #include <objects/rinok>
    #include <objects/low_kvartira>
    #include <objects/voenkomat_int>
    #include <objects/select_skin_map>
     #include <objects/flamemapp>
    #include <objects/flamemap2>
    #include <objects/garage_int>
    #include <objects/OBJ_avtobus>
    #include <objects/ammo>
    #include <objects/kreml>
    #include <objects/zavod>
    #include <objects/Parkur>
    #include <objects/opginta>
    #include <objects/mappflame>
    #include <objects/klubinta>
    #include <objects/rieltor>
    #include <objects/bolka>

}
Вот что у меня в моде
 
Пользователь
Регистрация
27 Мар 2024
Сообщения
25
@USUSUubemumeosas, в OnGameModeInit добавь сток
Pawn:
D:\Medalions RP\ìîä\gamemodes\desmond.pwn(6438) : error 017: undefined symbol "LoadObject"
D:\Medalions RP\ìîä\gamemodes\desmond.pwn(6464) : error 029: invalid expression, assumed zero
D:\Medalions RP\ìîä\gamemodes\desmond.pwn(6464) : error 017: undefined symbol "LoadObject"
D:\Medalions RP\ìîä\gamemodes\desmond.pwn(6465) : warning 217: loose indentation
D:\Medalions RP\ìîä\gamemodes\desmond.pwn(6500) : warning 217: loose indentation
Такие ошибки вылетели
 
Пользователь
Регистрация
27 Мар 2024
Сообщения
25
Весь OnGameInit ( строчки в конце)
Pawn:
public OnGameModeInit()
{
    SetGameModeText("Bare Script");
    //3äíîìåðà
    LoadCarNumberOptions();
    
    ShowPlayerMarkers(1);
    ShowNameTags(1);
    AllowAdminTeleport(1);
    speedtimer = SetTimer("Speedtimer", 50, true);
    AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
    //
    CreatePickup(19134, 23, 596.7117,686.3455,12.0000, -1);
    CreateDynamic3DTextLabel("Ïðîäàæà ëè÷íî ÒÑ\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, 596.7117,686.3455,13.0000, 10.0);
    //çàêëàäùèê
    CreateActor(122,2430.1877,-2002.5272,21.9779,273.0116);
    CreateDynamic3DTextLabel("{727777}Ëåøèé\n{ffcb05}Íàæìèòå: {ffffff}L.ALT", 0xFFFF00FF, 2430.1877,-2002.5272,21.9779, 5.0);
    //-------
    CreatePickup(19135, 23, -442.3334,1177.9744,996.6606, 24);
    CreateDynamic3DTextLabel("{08f1fb}Ïî÷èíêà\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, -442.3334,1177.9744,996.6606, 10.0);
    
    CreateDynamic3DTextLabel("Íàæìèòå: H", 0xFFFF00FF, -1605.4823,-3516.5828,7.6584, 10.0);
    vorotavch = CreateObject(975, -1604.05, -3516.97, 7.54,   0.00, 0.00, -17.52);
    stolovaya = CreatePickup(1582, 23, 143.0042,2471.4814,1915.7404, 24);
    pickclub = CreatePickup(1581, 23, 1302.6805,699.3237,999.5231, 38);
    
    gospital = CreatePickup(1240, 23, 688.3537,1021.1248,1010.4888, 25);
    //Ðûáàëêàú
    Create3DTextLabel("{FFA500}Èíôîðìàöèÿ: {00BFFF}Ðûáàëêà",0x00FFFFDD, 1945.6031,1875.7351,15.5728,20.0,0,1);
    fishing_info_pickup = CreatePickup(1239, 23, 1945.6031,1875.7351,15.5728, -1);
    Create3DTextLabel("{FFA500}Ìàãàçèí: {00BFFF}Ðûáíûé ðûíîê",0x00FFFFDD, 1943.9817,1875.7371,15.5728,20.0,0,1);
    fishing_market_pickup = CreatePickup(1274, 23, 1943.9817,1875.7371,15.5728, -1);
    CreateDynamicMapIcon(1943.9817,1875.7371,15.5728, 9, -1);
    CreateActor(102, 1943.9335,1877.2372,15.5728,177.6616);
    //
    CreateActor(241, -641.1435,999.5809,12.0136,186.2014);
    Create3DTextLabel("{05328d}Ïåòðîâè÷",0x00FFFFDD, -641.1435,999.5809,13.0136,10.0,0,1);
    CreateActor(90, -730.3933,2244.6589,43.9831,60.6190);
    Create3DTextLabel("{05328d}Àíæåëèêà\n {ffb901}L.ALT",0x00FFFFDD, -730.3933,2244.6589,44.9831,10.0,0,1);
    CreateActor(131, -225.9336,943.1945,12.0382,357.3249);
    Create3DTextLabel("{05328d}Ñîôèÿ",0x00FFFFDD, -225.9336,943.1945,12.0382,10.0,0,1);
    //äóåëü
    duel_system();
    //äðîï
    CreateDynamic3DTextLabel("{"#cGold"} /arrest", 0xFFFF00FF, 388.4482 + 0.7, 442.4524,12.0424 + 0.5, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"} L.ALT", 0xFFFF00FF, 1710.4647 + 0.7, -3236.6934,11.5200 + 0.5, 10.0);
    CreateActor(162, 1710.4647,-3236.6934,11.5200,97.8245);
    /*SetTimer("AirDrop",1200000,true);
    */
    SetTimer("Contein",3600000,true);

    SetTimer("ConteinDelete",3540000,true);
    //-----
    new hour;
    gettime(hour);
    /*''''''''''Profi_Coder'''''''''''''''*/
    advertise_price = 2;// öåíà çà îáüÿâëåíèå 1 ââåäåííîãî ñèâîëà(åñëè âû ââåëè 50 ñèìâîëîâ ñòîèìîñòü 100$)
    /*------------------------------------*/
    SetWorldTime(hour);
    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
    
    SetTimer("AdvertiseTimer", 1000000, true);

    SetTimer("Informlol", 1000, true);
    vorotasosnovoe = CreateObject(975, 758.45, 2447.99, 12.82,   0.00, 0.00, -59.58);
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 756.3244 + 0.7, 2452.4578, 12.2600 + 0.5, 10.0);
    //------
//    SendRconCommand("hostname "SERVER_NAME" RolePlay | Òåñòîâûé Ñåðâåð");
    SendRconCommand("hostname "HOSTNAME"");
    SendRconCommand("weburl "SERVER_SITE"");
    SendRconCommand("mapname "SERVER_MAP_NAME"");
    
    CreateDynamic3DTextLabel("{"#cW"}×òîáû êóïèòü ïðîäóêòû ââåäèòå:\n{"#cGold"} /buyprod", 0xFFFF00FF, -720.6333,1918.0505,45.3500, 10.0);
    
    CreateDynamic3DTextLabel("{"#cW"}Âñòàíüòå íà ïèêàï{"#cGold"} ×òîáû íà÷àòü ðàáîòó", 0xFFFF00FF, 1732.4504,2465.8433,16.2400, 10.0);
    //-----------
    CreateDynamicObject(19303, 3511.419921, 2731.550048, 113.690002, 0, 0, 0); // äâåðü ÄÏÑ
    
    CreateDynamicObject(19273, -220.1451, 568.8612, 13.2490, 181.0000, 180.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, -220.2120, 568.4047, 13.2490, 0.0000, 0.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.7185, -2009.2945-0.12, 703.9407, 0, 0, -180.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.9158, -2009.5416, 703.9407, 0, 0, 0); // ìàïïèíã ìç
    
    CreateDynamicObject(19273, 1573.7963, -777.5175, 1115.3967, 0.0000, 0.0000, 47.0000); // ìàïïèíã ïðàâî

    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 1573.7963, -777.5175 - 0.1, 1115.3967, 10.0); // ïðàâî
    
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 2481.7185, -2009.2945 - 0.1, 703.9407, 10.0); // âîðîòà ìç
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, -220.8144 + 0.7, 568.7041, 12.6515 + 0.5, 10.0); // äâåðü ìç
    

    CreateDynamic3DTextLabel("Àâòîìàñòåðñêàÿ\n\n{"#cW"}Ïîñèãíàëüòå, ÷òîáû çàåõàòü", COLOR_GOLD, 2178.7925,-1835.5863,18.3279 + 0.3, 15.0);
    //ïàðàøþò
    CreatePickup(1310, 23, 1714.7583,1774.5817,15.3600, -1, PICKUP_ACTION_TYPE_FLY);
    
    /*actor[0] = CreateActor(29, -693.1392,902.1448,12.0446,271.5003);
    ApplyActorAnimation(actor[0], "DEALER", "DEALER_IDLE", 4.0, true, 0, 0, 0, 0);
    CreateDynamic3DTextLabel("{66CC00}Âëàäèìèð Èâàíîâ\n{"#cW"}Êâåñòîâûé ïåðñîíàæ\n\nÏîãîâîðèòü: {"#cGold"}ë. ALT", -1, -693.1392,902.1448,12.0446 + 1.0, 10.0); // Àðìèÿ âûøêà 2*/
    CreateActor(114, 1931.6636,-1936.9019,32.0008,171.6849);
    CreateDynamic3DTextLabel("{"#cW"}Ââåäèòå{"#cGold"} /duel", 0xFFFF00FF, 1931.6636,-1936.9019 - 0.1, 32.0008, 10.0); //
    
    actor[1] = CreateActor(161, 145.3596,-949.1063,40.9170,200.3201);
    CreateDynamic3DTextLabel("Óïðàâëÿþùèé ôåðìîé\n{"#cW"}Ïîãîâîðèòü: {"#cGold"}ë. ALT", 0x66CC00FF, 145.3596,-949.1063,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    
    actor[2] = CreateActor(171, 2577.5649,-2377.6558,22.9376,269.6292);
    CreateDynamic3DTextLabel("{d2c364}Àëåêñàíäð\n{"#cW"}Ñêóïùèê àêòèêâàðèàòà", -1, 2577.5649,-2377.6558,22.9376 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    
    ShowNameTags(true);
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(false);
    ManualVehicleEngineAndLights();
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
    SetNameTagDrawDistance(30.0);
    ////////////////////////////////////////////////////////
    // streamer
    
    Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON, 98);
    Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 500); // Default: 500

    Streamer_ToggleErrorCallback(true);
    Streamer_SetTickRate(40); // Default: 50
    
    CreateDynamic3DTextLabel("Ïðèåì íà ðàáîòó\n{"#cW"}Âñòàíüòå íà ïèêàï", 0xFFFF00FF, 221.1292,2314.7476,801.5109 + 0.3, 10.0);
    join_to_job_CP = CreateDynamicCP(221.1292,2314.7476,801.5109, 1.5, _, _, _, 15.0);
    CreatePickup(1210, 23, 221.1292,2314.7476,801.5109, -1);
    //âåðáîâêà
    //verbovkaarm_CP = CreateDynamicCP(-656.6590,994.0637,11.5136, 1.5, -1, -1, _, 7.0);
    //CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);
    //---------
    arenda_CP[0] = CreateDynamicCP(-656.6590,994.0637,11.2136, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);

    arenda_CP[1] = CreateDynamicCP(2167.0181,-2057.6289,18.1125, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2167.0181,-2057.6289,18.8125, 5.0);

    arenda_CP[2] = CreateDynamicCP(-2472.5134,2845.0486,37.1199, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2472.5134,2845.0486,37.7199, 5.0);

    arenda_CP[3] = CreateDynamicCP(2135.8689,-1157.0248,1.4321, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2135.8689,-1157.0248,2.2321, 5.0);

    arenda_CP[4] = CreateDynamicCP(-2470.7209,1545.9838,52.3278, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2470.7209,1545.9838,53.0278, 5.0);

    arenda_CP[5] = CreateDynamicCP(2568.0957,-2426.3777,20.9400, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2568.0957,-2426.3777,21.9400, 5.0);
    
    
    //
    verbovkaarm_CP = CreateDynamicCP(-1705.8676,-3551.2476,6.8616, 1.2, -1, -1, _, 15.0);
    CreateDynamic3DTextLabel("{"#cGold"}Âåðáîâêà", 0xFFCD00FF, -1705.8676,-3551.2476,7.8616, 5.0);
    verbovkaopg_CP = CreateDynamicCP(75.8998,385.5359,9.0355, 1.2, -1, -1, _, 15.0);
     CreateDynamic3DTextLabel("{"#cGold"}Çàïèñü íà âîéíó", 0xFFCD00FF, 75.8998,385.5359,10.0355, 5.0);
     //
     army_ammo_CP = CreateDynamicCP(-1680.1543,-3746.5146,7.0547, 1.2, -1, -1, _, 7.0);
    CreatePickup(1239, 23, GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[0], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[1], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[2], -1);
    CreateDynamic3DTextLabel("{"#cGold"}Ïîëó÷åíèå íîìåðà\n{"#cW"}íà ëè÷íûé òðàíñïîðò", 0xFFCD00FF, 3509.2488,2714.0630,113.4500 + 1.0, 10.0);
    CreatePickup(1239, 23, 3509.2488,2714.0630,113.4500, -1, PICKUP_ACTION_TYPE_GET_CAR_NUM);
    
    CreatePickup(10031, 23, -692.2734,909.9596,12.0446, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreateDynamic3DTextLabel("{"#cGold"}Êîìïüþòåð\n{"#cW"}Èñïîëüçóéòå {"#cGold"}ALT", 0xFFCD00FF, 956.2139,2095.8792,1123.3110 - 0.2, 10.0);
    
    CreatePickup(1239, 23, 1655.4075,1485.5284,1021.5978, -1, PICKUP_ACTION_TYPE_INFO_BOLKA);
    
    CreateDynamic3DTextLabel("{"#cGold"}Óòèëèçàöèÿ\n{"#cW"}ëè÷íîãî òðàíñïîðòà", -1, -675.1064,-1525.8015,41.2372 + 0.2, 10.0);
    CreatePickup(19133, 23, -675.1064,-1525.8015,41.2372, -1, PICKUP_ACTION_TYPE_SELL_CAR);

    CreateDynamic3DTextLabel("Îðóæåéíÿ", -1, 3511.6108,2730.8462,113.450 + 0.1, 10.0);
    CreatePickup(1559, 23, 3511.6108,2730.8462,113.450, -1, PICKUP_ACTION_TYPE_TPGUN_DPS);
    
    CreatePickup(1559, 23, 3511.3779,2732.3120,113.4500,-1, PICKUP_ACTION_TYPE_DPS_INT);
    
    CreatePickup(10031, 23, 2369.7820,-1918.6311,21.9500, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreatePickup(10031, 23, -2469.6003, 2836.3113, 37.7199, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, 574.7098,-1.1029,1001.4828, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -151.4982,1781.0062,5002.0000, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -129.2044,2052.0620,2001.9600, 6.50);
    
    CreateDynamic3DTextLabel("{"#cW"}Âûéòè: {"#cGold"}/exit", -1, 750.4706,1100.0243,1013.1820 + 0.2, 6.50);
    
    CreatePickup(19133, 23, 750.4706,1100.0243,1013.1820, -1, PICKUP_ACTION_TYPE_GARAGE_EXIT);
    
    CreatePickup(1239, 23, 1046.6334,1740.3882,1014.9285, -1, PICKUP_ACTION_TYPE_SELLSIM);
    
    CreateDynamic3DTextLabel("{"#cW"}Âûåõàòü: {"#cGold"}H", -1, 737.6161,1102.1013,1013.1869 + 0.15, 6.50);
    
    CreateDynamic3DTextLabel("{"#cGold"}- Ðûíîê -{"#cW"}\n\nÈñïîëüçóéòå {"#cGold"}/market {"#cW"}÷òîáû ïðîäàòü äîáû÷ó", -1, -2430.4636,2687.0303,39.6399 + 0.28, 10.0);
    
    CreateDynamic3DTextLabel("{"#cGold"}Öåðêîâü{"#cW"}\n\nÈñïîëüçóéòå {FF5533}/wedding {"#cW"}÷òîáû ïîæåíèòüñÿ\nÈñïîëüçóéòå {FF5533}/divorce {"#cW"}÷òîáû ðàçâåñòèñü", -1, -1293.4110, 717.4692, 2002.0000 + 0.2, 10.0);

    CreateDynamic3DTextLabel("{"#cGold"}Ïîêóïêà íàðêîòèêîâ", -1, -2191.9304,-152.6918,26.2900 + 0.2, 10.0);
    CreatePickup(1239, 23, -2191.9304,-152.6918,26.2900, -1, PICKUP_ACTION_TYPE_BUY_DRUGS);
    
    CreateDynamic3DTextLabel("{"#cGold"}Ñîçäàíèå ñåìüè", COLOR_GOLD, 246.3616,2315.9221,801.5187 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1314, 23, 246.3616,2315.9221,801.5187, -1, PICKUP_ACTION_TYPE_CREATE_FAM);
    //èãðîâûå àâòîìàòû
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.1319,1143.2233,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23,668.1319,1143.2233,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0894,1149.2874,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0894,1149.2874,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0824,1155.2954,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0824,1155.2954,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.5598,1161.4196,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.5598,1161.4196,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 674.7128,1159.8442,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 674.7128,1159.8442,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1637,1156.4991,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1637,1156.4991,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.8985,1152.4624,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.8985,1152.4624,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.9329,1147.8407,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.9329,1147.8407,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1806,1143.5524,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1806,1143.5524,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 675.1842,1140.4796,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 675.1842,1140.4796,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.9856,1138.6533,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.9856,1138.6533,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8229,1143.2753,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8229,1143.2753,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8489,1149.6626,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8489,1149.6626,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8232,1154.9541,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8232,1154.9541,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("{79cb64}/buygun", 0xFFDD00FF, 937.0654,2029.8231,1032.7778 + 0.1, 10.0);
    CreatePickup(1274, 23, 937.0654,2029.8231,1032.7778, -1, PICKUP_ACTION_TYPE_AMMO_BUY);
    
    CreateDynamic3DTextLabel("Ëó÷øèå ðàáîòíèêè ôåðìû\n{"#cW"}Íàæìèòå: {"#cGold"}ë. ALT", 0x33AA33FF, 148.8440,-947.5739,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    CreatePickup(1274, 23, 148.8440,-947.5739,40.9170, -1);
    
    
    for(new i; i < sizeof(DutyPos); i ++)
    {
        if(DutyPos[i][duty_x] == 0.0 && DutyPos[i][duty_y] == 0.0) continue;
        
        CreatePickup(1275, 23, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z], DutyPos[i][duty_world], PICKUP_ACTION_TYPE_DUTY, i);
        
        CreateDynamic3DTextLabel("Ðàçäåâàëêà", 0xFFDD00FF, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z] + 0.1, 10.0, -1, 1);
    }
    
    for(new i; i < sizeof(WheatPos); i ++)
    {
         wheat_id[i] = CreateObject(9202, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] - 0.5, 0.0, 0.0, WheatPos[i][wheat_rotz]);
         wheat_label[i] = CreateDynamic3DTextLabel("", -1, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] + 1.0, 10.0);
        
         wheat_time[i] = 2 * 60;
    }
    
       /*for(new i; i < sizeof(BarrierInfo); i ++)
    {
        new
            Float:X = BarrierInfo[i][brPos_X],
            Float:Y = BarrierInfo[i][brPos_Y],
            Float:Z = BarrierInfo[i][brPos_Z];
        ShiftCords(0, X, Y, Z, BarrierInfo[i][brPos_A]+90.0, 3.5);
        CreateDynamicObject(966,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z], 0.00000000, 0.00000000, BarrierInfo[i][brPos_A]);
        if(!BarrierInfo[i][brOpen])
        {
            gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,90.00000000,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.7,BARRIER_SPEED,0.0,0.0,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.75,BARRIER_SPEED,0.0,90.0,BarrierInfo[i][brPos_A]+180);
        }
        else gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,20.00000000,BarrierInfo[i][brPos_A]+180);
    }*/
    
    g_last_pay_day_time =
    g_last_m_timer_time = gettime();
    
    CreateTextDraws();

    CreateVehicles();
    CreateMedBeds();
    CreateCasinoTables();
    CreateArmories();
    ServerRadioInit();
    AnimListInit();
    BusRoutesInit();
    BanksInit();
    TempJobsInit();
    MapIconsInit();
    InfoPickupsInit();
    ZavodSklad();
    TeleportPickupsInit();
    DrivingSchoolInit();
    AtmsInit();
    //OstInit();
    
    #if defined RAND_WEATHER
    SetRandomWeather();
    #endif
    
    #if defined _GANG_ZONES_INC
    CreateGangZonesCR();
    #endif
    
    mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
    mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_BASE, MYSQL_PASS, 3306, true, 2);
    mysql_set_charset("cp1251");
    
    if(mysql_errno() != 0)
        return print("Íå óäàëîñü ïîäêëþ÷èòüñÿ ê áàçå äàííûõ!");
    
    UpdateCharity();
    RepositoriesLoad();
    
    LoadHouses();
    LoadHousesRenters();
    LoadFuelStations();
    LoadBusinesses();
    //LoadOrders();
    LoadObject();

    LoadObjects();
    
    LoadGarages();
    
    LoadFamily();
    LoadFractions();
    
    //LoadRadars();

    LoadGangZones();
    LoadGangRepositories();
    
    SetTimer("ClearBanList", 15_000, false);
    
    secupdate = SetTimer("OnSecondTimer", 1000, true);

    SetTimer("SpeedBooster", 100, false);

    CallLocalFunction("HospitalTreatment", "");
    
    SetGameModeText(SERVER_VERSION);



    stock    LoadObject()
{
    new tmpobjid;

    #include <objects/mapping>
    #include <objects/dorogga>
    #include <objects/interior>
    #include <objects/mentovka>
    #include <objects/intaavtosh> // èíòåðüåð
    //#include <objects/autoschool_int>
    #include <objects/lesopilka> // ëåñîïèëêà
    #include <objects/church> // èíò öåðêîâü
    #include <objects/dps> // èíò ÄÏÑ
    #include <objects/opg_ug>
    #include <objects/opg_arz_int>
    #include <objects/shata>
    #include <objects/int_shahta>
    #include <objects/rinok>
    #include <objects/low_kvartira>
    #include <objects/voenkomat_int>
    #include <objects/select_skin_map>
     #include <objects/flamemapp>
    #include <objects/flamemap2>
    #include <objects/garage_int>
    #include <objects/OBJ_avtobus>
    #include <objects/ammo>
    #include <objects/kreml>
    #include <objects/zavod>
    #include <objects/Parkur>
    #include <objects/opginta>
    #include <objects/mappflame>
    #include <objects/klubinta>
    #include <objects/rieltor>
    #include <objects/bolka>

}
    return 1;
}
 
Активный
Пользователь
Регистрация
25 Сен 2022
Сообщения
228
@USUSUubemumeosas,
C++:
stock LoadObject()
{
    new tmpobjid;
    #include <objects/mapping>
    #include <objects/dorogga>
    #include <objects/interior>
    #include <objects/mentovka>
    #include <objects/intaavtosh> // интерьер
    #include <objects/lesopilka> // лесопилка
    #include <objects/church> // инт церковь
    #include <objects/dps> // инт ДПС
    #include <objects/opg_ug>
    #include <objects/opg_arz_int>
    #include <objects/shata>
    #include <objects/int_shahta>
    #include <objects/rinok>
    #include <objects/low_kvartira>
    #include <objects/voenkomat_int>
    #include <objects/select_skin_map>
    #include <objects/flamemapp>
    #include <objects/flamemap2>
    #include <objects/garage_int>
    #include <objects/OBJ_avtobus>
    #include <objects/ammo>
    #include <objects/kreml>
    #include <objects/zavod>
    #include <objects/Parkur>
    #include <objects/opginta>
    #include <objects/mappflame>
    #include <objects/klubinta>
    #include <objects/rieltor>
    #include <objects/bolka>
}
stock, щас еще посмотрю
 
Активный
Пользователь
Регистрация
25 Сен 2022
Сообщения
228
@USUSUubemumeosas,
C++:
public OnGameModeInit()
{
    SetGameModeText("Bare Script");
    //3äíîìåðà
    LoadCarNumberOptions();
    
    ShowPlayerMarkers(1);
    ShowNameTags(1);
    AllowAdminTeleport(1);
    speedtimer = SetTimer("Speedtimer", 50, true);
    AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
    //
    CreatePickup(19134, 23, 596.7117,686.3455,12.0000, -1);
    CreateDynamic3DTextLabel("Ïðîäàæà ëè÷íî ÒÑ\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, 596.7117,686.3455,13.0000, 10.0);
    //çàêëàäùèê
    CreateActor(122,2430.1877,-2002.5272,21.9779,273.0116);
    CreateDynamic3DTextLabel("{727777}Ëåøèé\n{ffcb05}Íàæìèòå: {ffffff}L.ALT", 0xFFFF00FF, 2430.1877,-2002.5272,21.9779, 5.0);
    //-------
    CreatePickup(19135, 23, -442.3334,1177.9744,996.6606, 24);
    CreateDynamic3DTextLabel("{08f1fb}Ïî÷èíêà\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, -442.3334,1177.9744,996.6606, 10.0);
    
    CreateDynamic3DTextLabel("Íàæìèòå: H", 0xFFFF00FF, -1605.4823,-3516.5828,7.6584, 10.0);
    vorotavch = CreateObject(975, -1604.05, -3516.97, 7.54,   0.00, 0.00, -17.52);
    stolovaya = CreatePickup(1582, 23, 143.0042,2471.4814,1915.7404, 24);
    pickclub = CreatePickup(1581, 23, 1302.6805,699.3237,999.5231, 38);
    
    gospital = CreatePickup(1240, 23, 688.3537,1021.1248,1010.4888, 25);
    //Ðûáàëêàú
    Create3DTextLabel("{FFA500}Èíôîðìàöèÿ: {00BFFF}Ðûáàëêà",0x00FFFFDD, 1945.6031,1875.7351,15.5728,20.0,0,1);
    fishing_info_pickup = CreatePickup(1239, 23, 1945.6031,1875.7351,15.5728, -1);
    Create3DTextLabel("{FFA500}Ìàãàçèí: {00BFFF}Ðûáíûé ðûíîê",0x00FFFFDD, 1943.9817,1875.7371,15.5728,20.0,0,1);
    fishing_market_pickup = CreatePickup(1274, 23, 1943.9817,1875.7371,15.5728, -1);
    CreateDynamicMapIcon(1943.9817,1875.7371,15.5728, 9, -1);
    CreateActor(102, 1943.9335,1877.2372,15.5728,177.6616);
    //
    CreateActor(241, -641.1435,999.5809,12.0136,186.2014);
    Create3DTextLabel("{05328d}Ïåòðîâè÷",0x00FFFFDD, -641.1435,999.5809,13.0136,10.0,0,1);
    CreateActor(90, -730.3933,2244.6589,43.9831,60.6190);
    Create3DTextLabel("{05328d}Àíæåëèêà\n {ffb901}L.ALT",0x00FFFFDD, -730.3933,2244.6589,44.9831,10.0,0,1);
    CreateActor(131, -225.9336,943.1945,12.0382,357.3249);
    Create3DTextLabel("{05328d}Ñîôèÿ",0x00FFFFDD, -225.9336,943.1945,12.0382,10.0,0,1);
    //äóåëü
    duel_system();
    //äðîï
    CreateDynamic3DTextLabel("{"#cGold"} /arrest", 0xFFFF00FF, 388.4482 + 0.7, 442.4524,12.0424 + 0.5, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"} L.ALT", 0xFFFF00FF, 1710.4647 + 0.7, -3236.6934,11.5200 + 0.5, 10.0);
    CreateActor(162, 1710.4647,-3236.6934,11.5200,97.8245);
    /*SetTimer("AirDrop",1200000,true);
    */
    SetTimer("Contein",3600000,true);

    SetTimer("ConteinDelete",3540000,true);
    //-----
    new hour;
    gettime(hour);
    /*''''''''''Profi_Coder'''''''''''''''*/
    advertise_price = 2;// öåíà çà îáüÿâëåíèå 1 ââåäåííîãî ñèâîëà(åñëè âû ââåëè 50 ñèìâîëîâ ñòîèìîñòü 100$)
    /*------------------------------------*/
    SetWorldTime(hour);
    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
    
    SetTimer("AdvertiseTimer", 1000000, true);

    SetTimer("Informlol", 1000, true);
    vorotasosnovoe = CreateObject(975, 758.45, 2447.99, 12.82,   0.00, 0.00, -59.58);
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 756.3244 + 0.7, 2452.4578, 12.2600 + 0.5, 10.0);
    //------
//    SendRconCommand("hostname "SERVER_NAME" RolePlay | Òåñòîâûé Ñåðâåð");
    SendRconCommand("hostname "HOSTNAME"");
    SendRconCommand("weburl "SERVER_SITE"");
    SendRconCommand("mapname "SERVER_MAP_NAME"");
    
    CreateDynamic3DTextLabel("{"#cW"}×òîáû êóïèòü ïðîäóêòû ââåäèòå:\n{"#cGold"} /buyprod", 0xFFFF00FF, -720.6333,1918.0505,45.3500, 10.0);
    
    CreateDynamic3DTextLabel("{"#cW"}Âñòàíüòå íà ïèêàï{"#cGold"} ×òîáû íà÷àòü ðàáîòó", 0xFFFF00FF, 1732.4504,2465.8433,16.2400, 10.0);
    //-----------
    CreateDynamicObject(19303, 3511.419921, 2731.550048, 113.690002, 0, 0, 0); // äâåðü ÄÏÑ
    
    CreateDynamicObject(19273, -220.1451, 568.8612, 13.2490, 181.0000, 180.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, -220.2120, 568.4047, 13.2490, 0.0000, 0.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.7185, -2009.2945-0.12, 703.9407, 0, 0, -180.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.9158, -2009.5416, 703.9407, 0, 0, 0); // ìàïïèíã ìç
    
    CreateDynamicObject(19273, 1573.7963, -777.5175, 1115.3967, 0.0000, 0.0000, 47.0000); // ìàïïèíã ïðàâî

    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 1573.7963, -777.5175 - 0.1, 1115.3967, 10.0); // ïðàâî
    
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 2481.7185, -2009.2945 - 0.1, 703.9407, 10.0); // âîðîòà ìç
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, -220.8144 + 0.7, 568.7041, 12.6515 + 0.5, 10.0); // äâåðü ìç
    

    CreateDynamic3DTextLabel("Àâòîìàñòåðñêàÿ\n\n{"#cW"}Ïîñèãíàëüòå, ÷òîáû çàåõàòü", COLOR_GOLD, 2178.7925,-1835.5863,18.3279 + 0.3, 15.0);
    //ïàðàøþò
    CreatePickup(1310, 23, 1714.7583,1774.5817,15.3600, -1, PICKUP_ACTION_TYPE_FLY);
    
    /*actor[0] = CreateActor(29, -693.1392,902.1448,12.0446,271.5003);
    ApplyActorAnimation(actor[0], "DEALER", "DEALER_IDLE", 4.0, true, 0, 0, 0, 0);
    CreateDynamic3DTextLabel("{66CC00}Âëàäèìèð Èâàíîâ\n{"#cW"}Êâåñòîâûé ïåðñîíàæ\n\nÏîãîâîðèòü: {"#cGold"}ë. ALT", -1, -693.1392,902.1448,12.0446 + 1.0, 10.0); // Àðìèÿ âûøêà 2*/
    CreateActor(114, 1931.6636,-1936.9019,32.0008,171.6849);
    CreateDynamic3DTextLabel("{"#cW"}Ââåäèòå{"#cGold"} /duel", 0xFFFF00FF, 1931.6636,-1936.9019 - 0.1, 32.0008, 10.0); //
    
    actor[1] = CreateActor(161, 145.3596,-949.1063,40.9170,200.3201);
    CreateDynamic3DTextLabel("Óïðàâëÿþùèé ôåðìîé\n{"#cW"}Ïîãîâîðèòü: {"#cGold"}ë. ALT", 0x66CC00FF, 145.3596,-949.1063,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    
    actor[2] = CreateActor(171, 2577.5649,-2377.6558,22.9376,269.6292);
    CreateDynamic3DTextLabel("{d2c364}Àëåêñàíäð\n{"#cW"}Ñêóïùèê àêòèêâàðèàòà", -1, 2577.5649,-2377.6558,22.9376 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    
    ShowNameTags(true);
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(false);
    ManualVehicleEngineAndLights();
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
    SetNameTagDrawDistance(30.0);
    ////////////////////////////////////////////////////////
    // streamer
    
    Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON, 98);
    Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 500); // Default: 500

    Streamer_ToggleErrorCallback(true);
    Streamer_SetTickRate(40); // Default: 50
    
    CreateDynamic3DTextLabel("Ïðèåì íà ðàáîòó\n{"#cW"}Âñòàíüòå íà ïèêàï", 0xFFFF00FF, 221.1292,2314.7476,801.5109 + 0.3, 10.0);
    join_to_job_CP = CreateDynamicCP(221.1292,2314.7476,801.5109, 1.5, _, _, _, 15.0);
    CreatePickup(1210, 23, 221.1292,2314.7476,801.5109, -1);
    //âåðáîâêà
    //verbovkaarm_CP = CreateDynamicCP(-656.6590,994.0637,11.5136, 1.5, -1, -1, _, 7.0);
    //CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);
    //---------
    arenda_CP[0] = CreateDynamicCP(-656.6590,994.0637,11.2136, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);

    arenda_CP[1] = CreateDynamicCP(2167.0181,-2057.6289,18.1125, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2167.0181,-2057.6289,18.8125, 5.0);

    arenda_CP[2] = CreateDynamicCP(-2472.5134,2845.0486,37.1199, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2472.5134,2845.0486,37.7199, 5.0);

    arenda_CP[3] = CreateDynamicCP(2135.8689,-1157.0248,1.4321, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2135.8689,-1157.0248,2.2321, 5.0);

    arenda_CP[4] = CreateDynamicCP(-2470.7209,1545.9838,52.3278, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2470.7209,1545.9838,53.0278, 5.0);

    arenda_CP[5] = CreateDynamicCP(2568.0957,-2426.3777,20.9400, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2568.0957,-2426.3777,21.9400, 5.0);
    
    
    //
    verbovkaarm_CP = CreateDynamicCP(-1705.8676,-3551.2476,6.8616, 1.2, -1, -1, _, 15.0);
    CreateDynamic3DTextLabel("{"#cGold"}Âåðáîâêà", 0xFFCD00FF, -1705.8676,-3551.2476,7.8616, 5.0);
    verbovkaopg_CP = CreateDynamicCP(75.8998,385.5359,9.0355, 1.2, -1, -1, _, 15.0);
     CreateDynamic3DTextLabel("{"#cGold"}Çàïèñü íà âîéíó", 0xFFCD00FF, 75.8998,385.5359,10.0355, 5.0);
     //
     army_ammo_CP = CreateDynamicCP(-1680.1543,-3746.5146,7.0547, 1.2, -1, -1, _, 7.0);
    CreatePickup(1239, 23, GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[0], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[1], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[2], -1);
    CreateDynamic3DTextLabel("{"#cGold"}Ïîëó÷åíèå íîìåðà\n{"#cW"}íà ëè÷íûé òðàíñïîðò", 0xFFCD00FF, 3509.2488,2714.0630,113.4500 + 1.0, 10.0);
    CreatePickup(1239, 23, 3509.2488,2714.0630,113.4500, -1, PICKUP_ACTION_TYPE_GET_CAR_NUM);
    
    CreatePickup(10031, 23, -692.2734,909.9596,12.0446, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreateDynamic3DTextLabel("{"#cGold"}Êîìïüþòåð\n{"#cW"}Èñïîëüçóéòå {"#cGold"}ALT", 0xFFCD00FF, 956.2139,2095.8792,1123.3110 - 0.2, 10.0);
    
    CreatePickup(1239, 23, 1655.4075,1485.5284,1021.5978, -1, PICKUP_ACTION_TYPE_INFO_BOLKA);
    
    CreateDynamic3DTextLabel("{"#cGold"}Óòèëèçàöèÿ\n{"#cW"}ëè÷íîãî òðàíñïîðòà", -1, -675.1064,-1525.8015,41.2372 + 0.2, 10.0);
    CreatePickup(19133, 23, -675.1064,-1525.8015,41.2372, -1, PICKUP_ACTION_TYPE_SELL_CAR);

    CreateDynamic3DTextLabel("Îðóæåéíÿ", -1, 3511.6108,2730.8462,113.450 + 0.1, 10.0);
    CreatePickup(1559, 23, 3511.6108,2730.8462,113.450, -1, PICKUP_ACTION_TYPE_TPGUN_DPS);
    
    CreatePickup(1559, 23, 3511.3779,2732.3120,113.4500,-1, PICKUP_ACTION_TYPE_DPS_INT);
    
    CreatePickup(10031, 23, 2369.7820,-1918.6311,21.9500, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreatePickup(10031, 23, -2469.6003, 2836.3113, 37.7199, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
    
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, 574.7098,-1.1029,1001.4828, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -151.4982,1781.0062,5002.0000, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -129.2044,2052.0620,2001.9600, 6.50);
    
    CreateDynamic3DTextLabel("{"#cW"}Âûéòè: {"#cGold"}/exit", -1, 750.4706,1100.0243,1013.1820 + 0.2, 6.50);
    
    CreatePickup(19133, 23, 750.4706,1100.0243,1013.1820, -1, PICKUP_ACTION_TYPE_GARAGE_EXIT);
    
    CreatePickup(1239, 23, 1046.6334,1740.3882,1014.9285, -1, PICKUP_ACTION_TYPE_SELLSIM);
    
    CreateDynamic3DTextLabel("{"#cW"}Âûåõàòü: {"#cGold"}H", -1, 737.6161,1102.1013,1013.1869 + 0.15, 6.50);
    
    CreateDynamic3DTextLabel("{"#cGold"}- Ðûíîê -{"#cW"}\n\nÈñïîëüçóéòå {"#cGold"}/market {"#cW"}÷òîáû ïðîäàòü äîáû÷ó", -1, -2430.4636,2687.0303,39.6399 + 0.28, 10.0);
    
    CreateDynamic3DTextLabel("{"#cGold"}Öåðêîâü{"#cW"}\n\nÈñïîëüçóéòå {FF5533}/wedding {"#cW"}÷òîáû ïîæåíèòüñÿ\nÈñïîëüçóéòå {FF5533}/divorce {"#cW"}÷òîáû ðàçâåñòèñü", -1, -1293.4110, 717.4692, 2002.0000 + 0.2, 10.0);

    CreateDynamic3DTextLabel("{"#cGold"}Ïîêóïêà íàðêîòèêîâ", -1, -2191.9304,-152.6918,26.2900 + 0.2, 10.0);
    CreatePickup(1239, 23, -2191.9304,-152.6918,26.2900, -1, PICKUP_ACTION_TYPE_BUY_DRUGS);
    
    CreateDynamic3DTextLabel("{"#cGold"}Ñîçäàíèå ñåìüè", COLOR_GOLD, 246.3616,2315.9221,801.5187 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1314, 23, 246.3616,2315.9221,801.5187, -1, PICKUP_ACTION_TYPE_CREATE_FAM);
    //èãðîâûå àâòîìàòû
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.1319,1143.2233,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23,668.1319,1143.2233,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0894,1149.2874,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0894,1149.2874,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0824,1155.2954,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0824,1155.2954,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.5598,1161.4196,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.5598,1161.4196,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 674.7128,1159.8442,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 674.7128,1159.8442,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1637,1156.4991,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1637,1156.4991,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.8985,1152.4624,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.8985,1152.4624,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.9329,1147.8407,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.9329,1147.8407,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1806,1143.5524,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1806,1143.5524,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 675.1842,1140.4796,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 675.1842,1140.4796,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.9856,1138.6533,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.9856,1138.6533,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8229,1143.2753,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8229,1143.2753,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8489,1149.6626,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8489,1149.6626,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8232,1154.9541,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8232,1154.9541,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("{79cb64}/buygun", 0xFFDD00FF, 937.0654,2029.8231,1032.7778 + 0.1, 10.0);
    CreatePickup(1274, 23, 937.0654,2029.8231,1032.7778, -1, PICKUP_ACTION_TYPE_AMMO_BUY);
    
    CreateDynamic3DTextLabel("Ëó÷øèå ðàáîòíèêè ôåðìû\n{"#cW"}Íàæìèòå: {"#cGold"}ë. ALT", 0x33AA33FF, 148.8440,-947.5739,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    CreatePickup(1274, 23, 148.8440,-947.5739,40.9170, -1);
    
    
    for(new i; i < sizeof(DutyPos); i ++)
    {
        if(DutyPos[i][duty_x] == 0.0 && DutyPos[i][duty_y] == 0.0) continue;
        
        CreatePickup(1275, 23, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z], DutyPos[i][duty_world], PICKUP_ACTION_TYPE_DUTY, i);
        
        CreateDynamic3DTextLabel("Ðàçäåâàëêà", 0xFFDD00FF, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z] + 0.1, 10.0, -1, 1);
    }
    
    for(new i; i < sizeof(WheatPos); i ++)
    {
         wheat_id[i] = CreateObject(9202, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] - 0.5, 0.0, 0.0, WheatPos[i][wheat_rotz]);
         wheat_label[i] = CreateDynamic3DTextLabel("", -1, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] + 1.0, 10.0);
        
         wheat_time[i] = 2 * 60;
    }
    
       /*for(new i; i < sizeof(BarrierInfo); i ++)
    {
        new
            Float:X = BarrierInfo[i][brPos_X],
            Float:Y = BarrierInfo[i][brPos_Y],
            Float:Z = BarrierInfo[i][brPos_Z];
        ShiftCords(0, X, Y, Z, BarrierInfo[i][brPos_A]+90.0, 3.5);
        CreateDynamicObject(966,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z], 0.00000000, 0.00000000, BarrierInfo[i][brPos_A]);
        if(!BarrierInfo[i][brOpen])
        {
            gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,90.00000000,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.7,BARRIER_SPEED,0.0,0.0,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.75,BARRIER_SPEED,0.0,90.0,BarrierInfo[i][brPos_A]+180);
        }
        else gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,20.00000000,BarrierInfo[i][brPos_A]+180);
    }*/
    
    g_last_pay_day_time =
    g_last_m_timer_time = gettime();
    
    CreateTextDraws();

    CreateVehicles();
    CreateMedBeds();
    CreateCasinoTables();
    CreateArmories();
    ServerRadioInit();
    AnimListInit();
    BusRoutesInit();
    BanksInit();
    TempJobsInit();
    MapIconsInit();
    InfoPickupsInit();
    ZavodSklad();
    TeleportPickupsInit();
    DrivingSchoolInit();
    AtmsInit();
    //OstInit();
    
    #if defined RAND_WEATHER
    SetRandomWeather();
    #endif
    
    #if defined _GANG_ZONES_INC
    CreateGangZonesCR();
    #endif
    
    mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
    mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_BASE, MYSQL_PASS, 3306, true, 2);
    mysql_set_charset("cp1251");
    
    if(mysql_errno() != 0)
        return print("Íå óäàëîñü ïîäêëþ÷èòüñÿ ê áàçå äàííûõ!");
    
    UpdateCharity();
    RepositoriesLoad();
    
    LoadHouses();
    LoadHousesRenters();
    LoadFuelStations();
    LoadBusinesses();
    //LoadOrders();
    LoadObject();

    LoadObjects();
    
    LoadGarages();
    
    LoadFamily();
    LoadFractions();
    
    //LoadRadars();

    LoadGangZones();
    LoadGangRepositories();
    
    SetTimer("ClearBanList", 15_000, false);
    
    secupdate = SetTimer("OnSecondTimer", 1000, true);

    SetTimer("SpeedBooster", 100, false);

    CallLocalFunction("HospitalTreatment", "");
    
    SetGameModeText(SERVER_VERSION);
    return 1;
}
 
Пользователь
Регистрация
27 Мар 2024
Сообщения
25
@USUSUubemumeosas,
C++:
public OnGameModeInit()
{
    SetGameModeText("Bare Script");
    //3äíîìåðà
    LoadCarNumberOptions();
   
    ShowPlayerMarkers(1);
    ShowNameTags(1);
    AllowAdminTeleport(1);
    speedtimer = SetTimer("Speedtimer", 50, true);
    AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
    //
    CreatePickup(19134, 23, 596.7117,686.3455,12.0000, -1);
    CreateDynamic3DTextLabel("Ïðîäàæà ëè÷íî ÒÑ\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, 596.7117,686.3455,13.0000, 10.0);
    //çàêëàäùèê
    CreateActor(122,2430.1877,-2002.5272,21.9779,273.0116);
    CreateDynamic3DTextLabel("{727777}Ëåøèé\n{ffcb05}Íàæìèòå: {ffffff}L.ALT", 0xFFFF00FF, 2430.1877,-2002.5272,21.9779, 5.0);
    //-------
    CreatePickup(19135, 23, -442.3334,1177.9744,996.6606, 24);
    CreateDynamic3DTextLabel("{08f1fb}Ïî÷èíêà\n{37f208}Íàæìèòå: {ffffff}H", 0xFFFF00FF, -442.3334,1177.9744,996.6606, 10.0);
   
    CreateDynamic3DTextLabel("Íàæìèòå: H", 0xFFFF00FF, -1605.4823,-3516.5828,7.6584, 10.0);
    vorotavch = CreateObject(975, -1604.05, -3516.97, 7.54,   0.00, 0.00, -17.52);
    stolovaya = CreatePickup(1582, 23, 143.0042,2471.4814,1915.7404, 24);
    pickclub = CreatePickup(1581, 23, 1302.6805,699.3237,999.5231, 38);
   
    gospital = CreatePickup(1240, 23, 688.3537,1021.1248,1010.4888, 25);
    //Ðûáàëêàú
    Create3DTextLabel("{FFA500}Èíôîðìàöèÿ: {00BFFF}Ðûáàëêà",0x00FFFFDD, 1945.6031,1875.7351,15.5728,20.0,0,1);
    fishing_info_pickup = CreatePickup(1239, 23, 1945.6031,1875.7351,15.5728, -1);
    Create3DTextLabel("{FFA500}Ìàãàçèí: {00BFFF}Ðûáíûé ðûíîê",0x00FFFFDD, 1943.9817,1875.7371,15.5728,20.0,0,1);
    fishing_market_pickup = CreatePickup(1274, 23, 1943.9817,1875.7371,15.5728, -1);
    CreateDynamicMapIcon(1943.9817,1875.7371,15.5728, 9, -1);
    CreateActor(102, 1943.9335,1877.2372,15.5728,177.6616);
    //
    CreateActor(241, -641.1435,999.5809,12.0136,186.2014);
    Create3DTextLabel("{05328d}Ïåòðîâè÷",0x00FFFFDD, -641.1435,999.5809,13.0136,10.0,0,1);
    CreateActor(90, -730.3933,2244.6589,43.9831,60.6190);
    Create3DTextLabel("{05328d}Àíæåëèêà\n {ffb901}L.ALT",0x00FFFFDD, -730.3933,2244.6589,44.9831,10.0,0,1);
    CreateActor(131, -225.9336,943.1945,12.0382,357.3249);
    Create3DTextLabel("{05328d}Ñîôèÿ",0x00FFFFDD, -225.9336,943.1945,12.0382,10.0,0,1);
    //äóåëü
    duel_system();
    //äðîï
    CreateDynamic3DTextLabel("{"#cGold"} /arrest", 0xFFFF00FF, 388.4482 + 0.7, 442.4524,12.0424 + 0.5, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"} L.ALT", 0xFFFF00FF, 1710.4647 + 0.7, -3236.6934,11.5200 + 0.5, 10.0);
    CreateActor(162, 1710.4647,-3236.6934,11.5200,97.8245);
    /*SetTimer("AirDrop",1200000,true);
    */
    SetTimer("Contein",3600000,true);

    SetTimer("ConteinDelete",3540000,true);
    //-----
    new hour;
    gettime(hour);
    /*''''''''''Profi_Coder'''''''''''''''*/
    advertise_price = 2;// öåíà çà îáüÿâëåíèå 1 ââåäåííîãî ñèâîëà(åñëè âû ââåëè 50 ñèìâîëîâ ñòîèìîñòü 100$)
    /*------------------------------------*/
    SetWorldTime(hour);
    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
   
    SetTimer("AdvertiseTimer", 1000000, true);

    SetTimer("Informlol", 1000, true);
    vorotasosnovoe = CreateObject(975, 758.45, 2447.99, 12.82,   0.00, 0.00, -59.58);
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 756.3244 + 0.7, 2452.4578, 12.2600 + 0.5, 10.0);
    //------
//    SendRconCommand("hostname "SERVER_NAME" RolePlay | Òåñòîâûé Ñåðâåð");
    SendRconCommand("hostname "HOSTNAME"");
    SendRconCommand("weburl "SERVER_SITE"");
    SendRconCommand("mapname "SERVER_MAP_NAME"");
   
    CreateDynamic3DTextLabel("{"#cW"}×òîáû êóïèòü ïðîäóêòû ââåäèòå:\n{"#cGold"} /buyprod", 0xFFFF00FF, -720.6333,1918.0505,45.3500, 10.0);
   
    CreateDynamic3DTextLabel("{"#cW"}Âñòàíüòå íà ïèêàï{"#cGold"} ×òîáû íà÷àòü ðàáîòó", 0xFFFF00FF, 1732.4504,2465.8433,16.2400, 10.0);
    //-----------
    CreateDynamicObject(19303, 3511.419921, 2731.550048, 113.690002, 0, 0, 0); // äâåðü ÄÏÑ
   
    CreateDynamicObject(19273, -220.1451, 568.8612, 13.2490, 181.0000, 180.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, -220.2120, 568.4047, 13.2490, 0.0000, 0.0000, -6.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.7185, -2009.2945-0.12, 703.9407, 0, 0, -180.0000); // ìàïïèíã ìç
    CreateDynamicObject(19273, 2481.9158, -2009.5416, 703.9407, 0, 0, 0); // ìàïïèíã ìç
   
    CreateDynamicObject(19273, 1573.7963, -777.5175, 1115.3967, 0.0000, 0.0000, 47.0000); // ìàïïèíã ïðàâî

    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 1573.7963, -777.5175 - 0.1, 1115.3967, 10.0); // ïðàâî
   
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, 2481.7185, -2009.2945 - 0.1, 703.9407, 10.0); // âîðîòà ìç
    CreateDynamic3DTextLabel("{"#cW"}Íàæìèòå{"#cGold"} F", 0xFFFF00FF, -220.8144 + 0.7, 568.7041, 12.6515 + 0.5, 10.0); // äâåðü ìç
   

    CreateDynamic3DTextLabel("Àâòîìàñòåðñêàÿ\n\n{"#cW"}Ïîñèãíàëüòå, ÷òîáû çàåõàòü", COLOR_GOLD, 2178.7925,-1835.5863,18.3279 + 0.3, 15.0);
    //ïàðàøþò
    CreatePickup(1310, 23, 1714.7583,1774.5817,15.3600, -1, PICKUP_ACTION_TYPE_FLY);
   
    /*actor[0] = CreateActor(29, -693.1392,902.1448,12.0446,271.5003);
    ApplyActorAnimation(actor[0], "DEALER", "DEALER_IDLE", 4.0, true, 0, 0, 0, 0);
    CreateDynamic3DTextLabel("{66CC00}Âëàäèìèð Èâàíîâ\n{"#cW"}Êâåñòîâûé ïåðñîíàæ\n\nÏîãîâîðèòü: {"#cGold"}ë. ALT", -1, -693.1392,902.1448,12.0446 + 1.0, 10.0); // Àðìèÿ âûøêà 2*/
    CreateActor(114, 1931.6636,-1936.9019,32.0008,171.6849);
    CreateDynamic3DTextLabel("{"#cW"}Ââåäèòå{"#cGold"} /duel", 0xFFFF00FF, 1931.6636,-1936.9019 - 0.1, 32.0008, 10.0); //
   
    actor[1] = CreateActor(161, 145.3596,-949.1063,40.9170,200.3201);
    CreateDynamic3DTextLabel("Óïðàâëÿþùèé ôåðìîé\n{"#cW"}Ïîãîâîðèòü: {"#cGold"}ë. ALT", 0x66CC00FF, 145.3596,-949.1063,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
   
    actor[2] = CreateActor(171, 2577.5649,-2377.6558,22.9376,269.6292);
    CreateDynamic3DTextLabel("{d2c364}Àëåêñàíäð\n{"#cW"}Ñêóïùèê àêòèêâàðèàòà", -1, 2577.5649,-2377.6558,22.9376 + 1.1, 10.0); // Àðìèÿ âûøêà 2
   
    ShowNameTags(true);
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(false);
    ManualVehicleEngineAndLights();
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
    SetNameTagDrawDistance(30.0);
    ////////////////////////////////////////////////////////
    // streamer
   
    Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON, 98);
    Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 500); // Default: 500

    Streamer_ToggleErrorCallback(true);
    Streamer_SetTickRate(40); // Default: 50
   
    CreateDynamic3DTextLabel("Ïðèåì íà ðàáîòó\n{"#cW"}Âñòàíüòå íà ïèêàï", 0xFFFF00FF, 221.1292,2314.7476,801.5109 + 0.3, 10.0);
    join_to_job_CP = CreateDynamicCP(221.1292,2314.7476,801.5109, 1.5, _, _, _, 15.0);
    CreatePickup(1210, 23, 221.1292,2314.7476,801.5109, -1);
    //âåðáîâêà
    //verbovkaarm_CP = CreateDynamicCP(-656.6590,994.0637,11.5136, 1.5, -1, -1, _, 7.0);
    //CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);
    //---------
    arenda_CP[0] = CreateDynamicCP(-656.6590,994.0637,11.2136, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -656.6590,994.0637,12.0136, 5.0);

    arenda_CP[1] = CreateDynamicCP(2167.0181,-2057.6289,18.1125, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2167.0181,-2057.6289,18.8125, 5.0);

    arenda_CP[2] = CreateDynamicCP(-2472.5134,2845.0486,37.1199, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2472.5134,2845.0486,37.7199, 5.0);

    arenda_CP[3] = CreateDynamicCP(2135.8689,-1157.0248,1.4321, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2135.8689,-1157.0248,2.2321, 5.0);

    arenda_CP[4] = CreateDynamicCP(-2470.7209,1545.9838,52.3278, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, -2470.7209,1545.9838,53.0278, 5.0);

    arenda_CP[5] = CreateDynamicCP(2568.0957,-2426.3777,20.9400, 1.5, -1, -1, _, 10.0);
    CreateDynamic3DTextLabel("{"#cGold"}Àðåíäà ìîïåäà", 0xFFCD00FF, 2568.0957,-2426.3777,21.9400, 5.0);
   
   
    //
    verbovkaarm_CP = CreateDynamicCP(-1705.8676,-3551.2476,6.8616, 1.2, -1, -1, _, 15.0);
    CreateDynamic3DTextLabel("{"#cGold"}Âåðáîâêà", 0xFFCD00FF, -1705.8676,-3551.2476,7.8616, 5.0);
    verbovkaopg_CP = CreateDynamicCP(75.8998,385.5359,9.0355, 1.2, -1, -1, _, 15.0);
     CreateDynamic3DTextLabel("{"#cGold"}Çàïèñü íà âîéíó", 0xFFCD00FF, 75.8998,385.5359,10.0355, 5.0);
     //
     army_ammo_CP = CreateDynamicCP(-1680.1543,-3746.5146,7.0547, 1.2, -1, -1, _, 7.0);
    CreatePickup(1239, 23, GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[0], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[1], GetTeamData(TEAM_ARMY, O_REPOSITORY_POS)[2], -1);
    CreateDynamic3DTextLabel("{"#cGold"}Ïîëó÷åíèå íîìåðà\n{"#cW"}íà ëè÷íûé òðàíñïîðò", 0xFFCD00FF, 3509.2488,2714.0630,113.4500 + 1.0, 10.0);
    CreatePickup(1239, 23, 3509.2488,2714.0630,113.4500, -1, PICKUP_ACTION_TYPE_GET_CAR_NUM);
   
    CreatePickup(10031, 23, -692.2734,909.9596,12.0446, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
   
    CreateDynamic3DTextLabel("{"#cGold"}Êîìïüþòåð\n{"#cW"}Èñïîëüçóéòå {"#cGold"}ALT", 0xFFCD00FF, 956.2139,2095.8792,1123.3110 - 0.2, 10.0);
   
    CreatePickup(1239, 23, 1655.4075,1485.5284,1021.5978, -1, PICKUP_ACTION_TYPE_INFO_BOLKA);
   
    CreateDynamic3DTextLabel("{"#cGold"}Óòèëèçàöèÿ\n{"#cW"}ëè÷íîãî òðàíñïîðòà", -1, -675.1064,-1525.8015,41.2372 + 0.2, 10.0);
    CreatePickup(19133, 23, -675.1064,-1525.8015,41.2372, -1, PICKUP_ACTION_TYPE_SELL_CAR);

    CreateDynamic3DTextLabel("Îðóæåéíÿ", -1, 3511.6108,2730.8462,113.450 + 0.1, 10.0);
    CreatePickup(1559, 23, 3511.6108,2730.8462,113.450, -1, PICKUP_ACTION_TYPE_TPGUN_DPS);
   
    CreatePickup(1559, 23, 3511.3779,2732.3120,113.4500,-1, PICKUP_ACTION_TYPE_DPS_INT);
   
    CreatePickup(10031, 23, 2369.7820,-1918.6311,21.9500, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
   
    CreatePickup(10031, 23, -2469.6003, 2836.3113, 37.7199, -1, PICKUP_ACTION_TYPE_FREE_HEAL);
   
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, 574.7098,-1.1029,1001.4828, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -151.4982,1781.0062,5002.0000, 8);
    CreateDynamic3DTextLabel("{"#cGold"}Âûõîä èç äîìà{"#cW"}\nÈñïîëüçóéòå {"#cGold"}/exit", -1, -129.2044,2052.0620,2001.9600, 6.50);
   
    CreateDynamic3DTextLabel("{"#cW"}Âûéòè: {"#cGold"}/exit", -1, 750.4706,1100.0243,1013.1820 + 0.2, 6.50);
   
    CreatePickup(19133, 23, 750.4706,1100.0243,1013.1820, -1, PICKUP_ACTION_TYPE_GARAGE_EXIT);
   
    CreatePickup(1239, 23, 1046.6334,1740.3882,1014.9285, -1, PICKUP_ACTION_TYPE_SELLSIM);
   
    CreateDynamic3DTextLabel("{"#cW"}Âûåõàòü: {"#cGold"}H", -1, 737.6161,1102.1013,1013.1869 + 0.15, 6.50);
   
    CreateDynamic3DTextLabel("{"#cGold"}- Ðûíîê -{"#cW"}\n\nÈñïîëüçóéòå {"#cGold"}/market {"#cW"}÷òîáû ïðîäàòü äîáû÷ó", -1, -2430.4636,2687.0303,39.6399 + 0.28, 10.0);
   
    CreateDynamic3DTextLabel("{"#cGold"}Öåðêîâü{"#cW"}\n\nÈñïîëüçóéòå {FF5533}/wedding {"#cW"}÷òîáû ïîæåíèòüñÿ\nÈñïîëüçóéòå {FF5533}/divorce {"#cW"}÷òîáû ðàçâåñòèñü", -1, -1293.4110, 717.4692, 2002.0000 + 0.2, 10.0);

    CreateDynamic3DTextLabel("{"#cGold"}Ïîêóïêà íàðêîòèêîâ", -1, -2191.9304,-152.6918,26.2900 + 0.2, 10.0);
    CreatePickup(1239, 23, -2191.9304,-152.6918,26.2900, -1, PICKUP_ACTION_TYPE_BUY_DRUGS);
   
    CreateDynamic3DTextLabel("{"#cGold"}Ñîçäàíèå ñåìüè", COLOR_GOLD, 246.3616,2315.9221,801.5187 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1314, 23, 246.3616,2315.9221,801.5187, -1, PICKUP_ACTION_TYPE_CREATE_FAM);
    //èãðîâûå àâòîìàòû
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.1319,1143.2233,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23,668.1319,1143.2233,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0894,1149.2874,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0894,1149.2874,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 668.0824,1155.2954,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 668.0824,1155.2954,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.5598,1161.4196,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.5598,1161.4196,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 674.7128,1159.8442,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 674.7128,1159.8442,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1637,1156.4991,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1637,1156.4991,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.8985,1152.4624,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.8985,1152.4624,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 679.9329,1147.8407,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 679.9329,1147.8407,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 678.1806,1143.5524,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 678.1806,1143.5524,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 675.1842,1140.4796,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 675.1842,1140.4796,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 670.9856,1138.6533,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 670.9856,1138.6533,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8229,1143.2753,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8229,1143.2753,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8489,1149.6626,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8489,1149.6626,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("- Èãðîâûå àâòîìàòû -\n{79cb64}Óãàäàé êàðòó", 0xFFDD00FF, 631.8232,1154.9541,1701.0000 + 0.1, 10.0); // àðåíäà âåëîñèïåäà 00cc99 ff9933
    CreatePickup(1239, 23, 631.8232,1154.9541,1701.0000, -1);
    //
    CreateDynamic3DTextLabel("{79cb64}/buygun", 0xFFDD00FF, 937.0654,2029.8231,1032.7778 + 0.1, 10.0);
    CreatePickup(1274, 23, 937.0654,2029.8231,1032.7778, -1, PICKUP_ACTION_TYPE_AMMO_BUY);
   
    CreateDynamic3DTextLabel("Ëó÷øèå ðàáîòíèêè ôåðìû\n{"#cW"}Íàæìèòå: {"#cGold"}ë. ALT", 0x33AA33FF, 148.8440,-947.5739,40.9170 + 1.1, 10.0); // Àðìèÿ âûøêà 2
    CreatePickup(1274, 23, 148.8440,-947.5739,40.9170, -1);
   
   
    for(new i; i < sizeof(DutyPos); i ++)
    {
        if(DutyPos[i][duty_x] == 0.0 && DutyPos[i][duty_y] == 0.0) continue;
       
        CreatePickup(1275, 23, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z], DutyPos[i][duty_world], PICKUP_ACTION_TYPE_DUTY, i);
       
        CreateDynamic3DTextLabel("Ðàçäåâàëêà", 0xFFDD00FF, DutyPos[i][duty_x], DutyPos[i][duty_y], DutyPos[i][duty_z] + 0.1, 10.0, -1, 1);
    }
   
    for(new i; i < sizeof(WheatPos); i ++)
    {
         wheat_id[i] = CreateObject(9202, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] - 0.5, 0.0, 0.0, WheatPos[i][wheat_rotz]);
         wheat_label[i] = CreateDynamic3DTextLabel("", -1, WheatPos[i][wheat_x], WheatPos[i][wheat_y], WheatPos[i][wheat_z] + 1.0, 10.0);
       
         wheat_time[i] = 2 * 60;
    }
   
       /*for(new i; i < sizeof(BarrierInfo); i ++)
    {
        new
            Float:X = BarrierInfo[i][brPos_X],
            Float:Y = BarrierInfo[i][brPos_Y],
            Float:Z = BarrierInfo[i][brPos_Z];
        ShiftCords(0, X, Y, Z, BarrierInfo[i][brPos_A]+90.0, 3.5);
        CreateDynamicObject(966,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z], 0.00000000, 0.00000000, BarrierInfo[i][brPos_A]);
        if(!BarrierInfo[i][brOpen])
        {
            gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,90.00000000,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.7,BARRIER_SPEED,0.0,0.0,BarrierInfo[i][brPos_A]+180);
            MoveObject(gBarrier[i],BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.75,BARRIER_SPEED,0.0,90.0,BarrierInfo[i][brPos_A]+180);
        }
        else gBarrier[i] = CreateDynamicObject(968,BarrierInfo[i][brPos_X],BarrierInfo[i][brPos_Y],BarrierInfo[i][brPos_Z]+0.8,0.00000000,20.00000000,BarrierInfo[i][brPos_A]+180);
    }*/
   
    g_last_pay_day_time =
    g_last_m_timer_time = gettime();
   
    CreateTextDraws();

    CreateVehicles();
    CreateMedBeds();
    CreateCasinoTables();
    CreateArmories();
    ServerRadioInit();
    AnimListInit();
    BusRoutesInit();
    BanksInit();
    TempJobsInit();
    MapIconsInit();
    InfoPickupsInit();
    ZavodSklad();
    TeleportPickupsInit();
    DrivingSchoolInit();
    AtmsInit();
    //OstInit();
   
    #if defined RAND_WEATHER
    SetRandomWeather();
    #endif
   
    #if defined _GANG_ZONES_INC
    CreateGangZonesCR();
    #endif
   
    mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML);
    mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_BASE, MYSQL_PASS, 3306, true, 2);
    mysql_set_charset("cp1251");
   
    if(mysql_errno() != 0)
        return print("Íå óäàëîñü ïîäêëþ÷èòüñÿ ê áàçå äàííûõ!");
   
    UpdateCharity();
    RepositoriesLoad();
   
    LoadHouses();
    LoadHousesRenters();
    LoadFuelStations();
    LoadBusinesses();
    //LoadOrders();
    LoadObject();

    LoadObjects();
   
    LoadGarages();
   
    LoadFamily();
    LoadFractions();
   
    //LoadRadars();

    LoadGangZones();
    LoadGangRepositories();
   
    SetTimer("ClearBanList", 15_000, false);
   
    secupdate = SetTimer("OnSecondTimer", 1000, true);

    SetTimer("SpeedBooster", 100, false);

    CallLocalFunction("HospitalTreatment", "");
   
    SetGameModeText(SERVER_VERSION);
    return 1;
}
а где тут инклуды?
 
Пользователь
Регистрация
27 Мар 2024
Сообщения
25
@USUSUubemumeosas,
C++:
stock LoadObject()
{
    new tmpobjid;
    #include <objects/mapping>
    #include <objects/dorogga>
    #include <objects/interior>
    #include <objects/mentovka>
    #include <objects/intaavtosh> // интерьер
    #include <objects/lesopilka> // лесопилка
    #include <objects/church> // инт церковь
    #include <objects/dps> // инт ДПС
    #include <objects/opg_ug>
    #include <objects/opg_arz_int>
    #include <objects/shata>
    #include <objects/int_shahta>
    #include <objects/rinok>
    #include <objects/low_kvartira>
    #include <objects/voenkomat_int>
    #include <objects/select_skin_map>
    #include <objects/flamemapp>
    #include <objects/flamemap2>
    #include <objects/garage_int>
    #include <objects/OBJ_avtobus>
    #include <objects/ammo>
    #include <objects/kreml>
    #include <objects/zavod>
    #include <objects/Parkur>
    #include <objects/opginta>
    #include <objects/mappflame>
    #include <objects/klubinta>
    #include <objects/rieltor>
    #include <objects/bolka>
}
stock, щас еще посмотрю
заменил на это все также осталось
 
Сверху