· 5 years ago · Mar 15, 2020, 10:18 AM
1stock GetMafZoneColor(mafiazonex)
2{
3 new zx;
4 switch(GZmafInfo[mafiazonex][gFrakmafVlad])
5 {
6 case 5: zx = 0x04738660;//057F94
7 case 6: zx = 0xFFFF7365;//
8 case 7: zx = 0xffa40065;//FFB300
9 case 18: zx = 0x6D7C8B80;//0x77889980
10 default: zx = 0xFF000060;
11 }
12 return zx;
13}
14
15stock GetmafiaGZColorF(fnumbermaf)
16{
17 new zx;
18 switch(fnumbermaf)
19 {
20 case 5: zx = 0x04738660;//057F94
21 case 6: zx = 0xFFFF7365;//
22 case 7: zx = 0xFFB30060;//FFB300
23 case 18: zx = 0x6D7C8B80;//0x77889980
24 default: zx = 0xFF000060;
25 }
26 return zx;
27}
28
29-- --------------------------------------------------------
30
31--
32-- Структура таблицы `mafgz`
33--
34
35CREATE TABLE IF NOT EXISTS `mafgz` (
36 `gmafID` int(11) NOT NULL,
37 `gCoordsmaf[0]` float NOT NULL,
38 `gCoordsmaf[1]` float NOT NULL,
39 `gCoordsmaf[2]` float NOT NULL,
40 `gCoordsmaf[3]` float NOT NULL,
41 `gFrakmafVlad` int(11) NOT NULL
42) ENGINE=InnoDB DEFAULT CHARSET=utf8;
43
44--
45-- Дамп данных таблицы `mafgz`
46--
47
48INSERT INTO `mafgz` (`gmafID`, `gCoordsmaf[0]`, `gCoordsmaf[1]`, `gCoordsmaf[2]`, `gCoordsmaf[3]`, `gFrakmafVlad`) VALUES
49(0, 0, 0, 0, 0, 5),
50(1, 1197, -1165.5, 1407, -950.5, 5),
51(2, 987, -1165.5, 1197, -950.5, 5),
52(3, 777, -1165.5, 987, -950.5, 5),
53(4, 1197, -1380.5, 1407, -1165.5, 5),
54(5, 1197, -1595.5, 1407, -1380.5, 5),
55(6, 987, -1595.5, 1197, -1380.5, 5),
56(7, 777, -1595.5, 987, -1380.5, 5),
57(8, 777, -1380.5, 987, -1165.5, 5),
58(9, 987, -1380.5, 1197, -1165.5, 5),
59(10, 1316, 2303.5, 1526, 2518.5, 7),
60(11, 1526, 2303.5, 1736, 2518.5, 7),
61(12, 1736, 2303.5, 1946, 2518.5, 7),
62(13, 1736, 2088.5, 1946, 2303.5, 7),
63(14, 1736, 1873.5, 1946, 2088.5, 7),
64(15, 1526, 1873.5, 1736, 2088.5, 7),
65(16, 1316, 2088.5, 1526, 2303.5, 7),
66(17, 1316, 1873.5, 1526, 2088.5, 7),
67(18, 1526, 2088.5, 1736, 2303.5, 7),
68(19, 2517, 824.5, 2727, 1039.5, 6),
69(20, 2517, 1039.5, 2727, 1254.5, 6),
70(21, 2517, 1254.5, 2727, 1469.5, 6),
71(22, 2307, 1254.5, 2517, 1469.5, 6),
72(23, 2097, 1254.5, 2307, 1469.5, 6),
73(24, 2097, 1039.5, 2307, 1254.5, 6),
74(25, 2097, 824.5, 2307, 1039.5, 6),
75(26, 2307, 824.5, 2517, 1039.5, 6),
76(27, 2307, 1039.5, 2517, 1254.5, 6),
77(28, -2767, 973.5, -2557, 1188.5, 18),
78(29, -2347, 973.5, -2137, 1188.5, 18),
79(30, -2347, 543.5, -2137, 758.5, 18),
80(31, -2767, 758.5, -2557, 973.5, 18),
81(32, -2767, 543.5, -2557, 758.5, 18),
82(33, -2557, 543.5, -2347, 758.5, 18),
83(34, -2557, 758.5, -2347, 973.5, 18),
84(35, -2557, 973.5, -2347, 1188.5, 18),
85(36, -2347, 758.5, -2137, 973.5, 18);
86
87-- --------------------------------------------------------