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

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

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
4 Апр 2024
Сообщения
24
У меня есть система крафтов и я туда добавил 4 крафта


Pawn:
    {1, 644, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000},
    {1, 780, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000},
    {1, 1137, 1,{652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000},
    {1, 834, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000},
и указал к каждому из них по 2000 количество предметов, но оно работает не так как должно.

Шанс и предмет работает, цена крафта тоже. А количество предметов почему то 5 штук когда должно быть 2к. Помогите
 
Пользователь
Регистрация
4 Апр 2024
Сообщения
24
@mazafaka,
Pawn:
//craft system
new
    CraftNeedItem[MAX_PLAYERS][5],
    PlayerText:Craft_Player[MAX_PLAYERS][59],
    CraftNeedItemAmount[MAX_PLAYERS][5],
    CraftGetSlotAmount[MAX_PLAYERS][5],
    TimeCraft[MAX_PLAYERS],
    CraftAmount[MAX_PLAYERS],
    CraftSelect[MAX_PLAYERS],
    CraftPage[MAX_PLAYERS],
    bool:CraftOpened[MAX_PLAYERS char],
    CraftTab[MAX_PLAYERS],
    CraftMaxPage[MAX_PLAYERS];

enum craftitem
{
    Craft_Type,
    Craft_Item,
    Craft_Chance,
    Craft_Need[5],
    Craft_NeedAmount[5],
    Craft_Cost
};
   /* {1, 644, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 1000000000},
    {1, 780, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 1000000000},
    {1, 1137, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 1000000000},
    {1, 789, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 1000000000},
    {1, 640, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 1000000000},
    {1, 834, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000}*/


new CraftItemAccesory[][craftitem] =
{
    {1, 612, 20, {652, 653, 654, 1649, 1649}, {5, 5, 15, 0, 0}, 100000},
    {1, 613, 20, {652, 653, 1649, 1649, 1649}, {5, 5, 0, 0, 0}, 50000},
    {1, 767, 20, {652, 653, 1649, 1649, 1649}, {20, 5, 0, 0, 0}, 20000},
    {1, 614, 20, {652, 653, 1649, 1649, 1649}, {5, 5, 0, 0, 0}, 70000},
    {1, 615, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 500000},
    {1, 617, 20, {652, 653, 365, 1649, 1649}, {5, 5, 10, 0, 0}, 40000},
    {1, 618, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 700000},
    {1, 625, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 626, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 800000},
    {1, 627, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 350000},

    {1, 628, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 629, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 630, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 631, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 632, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 633, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 634, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 635, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 636, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 637, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},

    {1, 638, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 639, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 640, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 641, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 642, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 643, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 644, 1, {652, 653, 365, 1649, 1649}, {200, 200, 200, 0, 0}, 100000000}, // белый шар
    {1, 780, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000}, // Щит
    {1, 1137, 1,{652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000}, // Фуражка
    {1, 834, 1, {652, 653, 365, 1649, 1649}, {2000, 2000, 2000, 0, 0}, 100000000}, // Броник
    {1, 647, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 648, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},

    {1, 649, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 650, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 651, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 656, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 800, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 801, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 802, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {1, 766, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {1, 769, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000}
};

new CraftItemClothes[][craftitem] =
{
    {0, 11, 20, {652, 653, 365, 1649, 1649}, {5, 10, 5, 0, 0}, 100000},
    {0, 16, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 49, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 57, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 61, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 70, 20, {652, 653, 365, 1649, 1649}, {5, 25, 5, 0, 0}, 100000},
    {0, 86, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 104, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 102, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 106, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},

    {0, 103, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 105, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 107, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 110, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 109, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 113, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 115, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 114, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 120, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 147, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},

    {0, 149, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 153, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 155, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 158, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 159, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 162, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 163, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 168, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 178, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000},
    {0, 203, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 100000}

};

new CraftItemChemistry[][craftitem] =
{
    {0, 411, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 515, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 420, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 406, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 462, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 481, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 488, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 519, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 520, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 523, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},

    {0, 522, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 539, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 544, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 545, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 556, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 557, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 588, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 601, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 596, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 900000},
    {0, 597, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000}
};
new CraftItemWorking[][craftitem] =
{
    {0, 336, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 337, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 335, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 338, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 359, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 358, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 327, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000}
};
new CraftItemPhone[][craftitem] =
{
    {0, 385, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 383, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 396, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000},
    {0, 394, 20, {652, 653, 365, 1649, 1649}, {5, 5, 5, 0, 0}, 10000}
};
enum enumCraftPosition
{
    Float:craftX,
    Float:craftY,
    Float:craftZ,
    bool:craftTypeHouse
}
new CraftPosition[][enumCraftPosition] =
{
    {1089.8160, 949.3332, 1600.9935, true},
    {1108.0330, -1427.3765, 15.7969, false},
    {1108.3075, -1431.3503, 15.7969, false}
};
 
Сверху