-
Notifications
You must be signed in to change notification settings - Fork 1
/
0_main.pwn
62 lines (50 loc) · 2.43 KB
/
0_main.pwn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
enum INV_COLORS_NEWS
{
icColor_Main_Fon, //öâåò ãëàâíîãî çàäíåãî ôîíà
icColor_BorderBox, //öâåò ôîíà íàëîæåíèÿ
icColor_Text, //öâåò òåêñòà
icColor_Slot_Fon_MarginBox, //öâåò çàäíåãî ôîíà ñëîòîâ
icColor_Slot_Fon_BorderBox, //öâåò ïåðåäíåãî ôîíà ñëîòîâ
icColor_Slot_Fon_Selected, //öâåò çàäíåãî ôîíà âûáðàííîãî ñëîòà
icColor_Cursor, //öâåò êóðñîðà
icColor_SmallStriped //öâåò ìàëåíüêèõ ðàçäåëèòåëüíûõ ïîëîñîê
}
new InventoryColors[2][INV_COLORS_NEWS];
new InventoryTextTD[15][2][] =
{
{"weight", "âåñ"}, // 0
{"trunk", "áàãàæíèê"}, // 1
{"Item", "Ïðåäìåò"}, // 2
{"Item Description", "Îïèñàíèå ïðåäìåòà."}, // 3
{"backpack", "ðþêçàê"}, // 4
{"head", "ãîëîâà"}, // 5
{"body", "òåëî"}, // 6
{"armor", "Áðîíÿ"}, // 7
{"other", "ïðî÷èå"}, // 8
{"Weapon", "Îðóæèå"}, // 9
{"kg", "êã"}, // 10
{"Health", "Çäîðîâüå"}, // 11
{"Food", "Åäà"}, // 12
{"Water", "Âîäà"}, // 13
{"Inventory", "Èíâåíòàðü"} // 14
};
stock RGB(red, green, blue, alpha = 0) return (red*16777216) + (green*65536) + (blue*256) + alpha;
stock PlayerTextDrawDestroyEx(playerid, &PlayerText:text)
{
if(text != PlayerText:INVALID_TEXT_DRAW) PlayerTextDrawDestroy(playerid, text);
text = PlayerText:INVALID_TEXT_DRAW;
}
#define MAX_SLOT_INV_PLAYER 120
#define MAX_SLOT_INV_VEHICLE 90
#include "../scripts/new_inventory/1_news.pwn"
#include "../scripts/new_inventory/1_newsTD.pwn"
#include "../scripts/new_inventory/1_newsTDGlobal.pwn"
#include "../scripts/new_inventory/ShowInventory.pwn"
#include "../scripts/new_inventory/HideInventory.pwn"
#include "../scripts/new_inventory/inventory/InventoryLoadItems.pwn"
#include "../scripts/new_inventory/inventory/InventoryLoadAccessories.pwn"
#include "../scripts/new_inventory/trunk/InventoryTrunkLoadItems.pwn"
#include "../scripts/new_inventory/public/On_ClickTD.pwn"
#include "../scripts/new_inventory/public/On_Connect.pwn"
#include "../scripts/new_inventory/public/On_Disconnect.pwn"
#include "../scripts/new_inventory/public/On_GameMode.pwn"