Advertisement
Guest User

Untitled

a guest
Jan 6th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 132.33 KB | None | 0 0
  1. /*
  2. * VIP Systém v6
  3. * © 2008 - 2012 by Denis 'QWER' Granec
  4. * "Prišiel som, Videl som, Vyhral som..."
  5. * "Najvačší okamžik života je úspech"
  6. *
  7. * Licencia MIT
  8. *
  9. * SVK:
  10. *
  11. * Užívateľ získava neobmedzené právo kopírovať, používať a
  12. * modifikovať program, redistribuovať modifikované verzie
  13. * programu za predpokladu uvedenia autora a informácií o licencii,
  14. * spolu s upozornením na zrieknutie sa zodpovednosti za dielo.
  15. * Prijatím tejto licencie sa užívateľ vzdá práva na podanie žaloby
  16. * na správcu kódu.
  17. *
  18. * ANG:
  19. *
  20. * Permission is hereby granted, free of charge, to any person
  21. * obtaining a copy of this software and associated documentation
  22. * files (the "Software"), to deal in the Software without
  23. * restriction, including without limitation the rights to use,
  24. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  25. * copies of the Software, and to permit persons to whom the
  26. * Software is furnished to do so, subject to the following
  27. * conditions:
  28. *
  29. * The above copyright notice and this permission notice shall be
  30. * included in all copies or substantial portions of the Software.
  31. *
  32. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  34. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  36. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  37. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  39. * OTHER DEALINGS IN THE SOFTWARE.
  40. */
  41. //============ INCLUDE
  42. #include <a_samp>
  43. //============ DEFINE
  44. #define SCM SendClientMessage
  45. #define SCMTA SendClientMessageToAll
  46.  
  47. #define WEB "www.blackshadows.4fan.cz"
  48. // BRONZE , SILVER , GOLD
  49. #define LEVELS 0 // ak chceš levely, nastav 1 ak chceš iba 1 level, nechaj 0
  50. #define ZAKAZANE_AUTA 1 // ak chceš zakáza? autá ako "tank,hydra,hunter" tak nechaj 1 ak ich chceš povoli?, nastav 0
  51.  
  52. #define DIALOG_NEON 667
  53. #define DIALOG_SUNGLASS 668
  54. #define DIALOG_CAPS 669
  55. #define DIALOG_BACKCAPS 700
  56.  
  57. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  58.  
  59. #define MAX_STRING 256
  60. #define COLOR_RED 0xFF0000AA
  61. #define COLOR_GREEN 0x40FF40FF
  62. #define COLOR_DARKGREEN 0x33AA33AA
  63. #define COLOR_PINK 0xFF40FFFF
  64. #define COLOR_YELLOW 0xFFFF00AA
  65. #define COLOR_VIOLET 0xEE82EEFF
  66. #define COLOR_DARKVIOLET 0x9400D3FF
  67. #define COLOR_DARKRED 0x8B0000FF
  68. #define COLOR_LIGHTBLUE 0x00FFFFAA
  69. #define COLOR_ORANGE 0xFFA500FF
  70. #define COLOR_DARKORANGE 0xFF8C00FF
  71. #define COLOR_BLUE 0x0000BBAA
  72. #define COLOR_GREY 0xAFAFAFAA
  73. #define WHITE 0xFFFFFFAA
  74. #define COLOR_BLACK 0x00000000
  75. #define COLOR_MODRA 0x0000BBAA
  76. #define COLOR_MODRA2 0x4682B4AA
  77. #define COLOR_MODRA3 0x4169FFAA
  78. #define COLOR_SVMODRA 0x33CCFFAA
  79. #define COLOR_ZELENA 0x008000AA
  80. #define COLOR_CYAN 0x00FFFFAA
  81. #define COLOR_TMAVACYAN 0x008B8BAA
  82. #define COLOR_BILA 0xFFFFFFAA
  83. #define COLOR_ZLUTA 0xFFFF00AA
  84. #define COLOR_HNEDA 0xA52A2AAA
  85. #define COLOR_HNEDA2 0xBC8F8FAA
  86. #define COLOR_COKOLADA 0xD2691EAA
  87. #define COLOR_CERVENA 0xFF0000AA
  88. #define COLOR_SEDA 0x808080AA
  89. #define COLOR_FIALOVA 0x800080AA
  90. #define COLOR_RUZOVA 0xFFC0CBAA
  91. #define COLOR_CHARTR 0x7FFF00AA
  92. #define COLOR_ORANZCERV 0xFF4500AA
  93. #define COLOR_ORANZOVA 0xFF8C00AA
  94. #define COLOR_CIERNA 0x0B0606AA
  95. #define COLOR_SYSTEM 0xEFEFF7AA
  96. #define COLOR_GOLD 0xffd700AA
  97. //============ PRAGMA
  98. #pragma tabsize 0
  99. #undef MAX_PLAYERS
  100. #define MAX_PLAYERS 70
  101. //============ NEWS
  102. new bool:ZAKAZ;
  103. new bool:kokos[MAX_PLAYERS];
  104. new Menu:Farby;
  105.  
  106.  
  107. new Neon1[MAX_PLAYERS] = {-1,...};
  108. new Neon2[MAX_PLAYERS] = {-1,...};
  109. new Sunglass[MAX_PLAYERS] = {-1,...};
  110. new Caps[MAX_PLAYERS] = {-1,...};
  111. new RemoveTime[MAX_PLAYERS];
  112. new autacky[15][MAX_PLAYERS];
  113. new vip[MAX_PLAYERS];
  114. new bool:message[MAX_PLAYERS];
  115. new bool:VIPZBRANE[MAX_PLAYERS];
  116. new Text3D:vehicletext[MAX_PLAYERS];
  117. new bool:pozicia[MAX_PLAYERS];
  118. new bool:heal[MAX_PLAYERS];
  119. new bool:many[MAX_PLAYERS];
  120. new bool:zbrane[MAX_PLAYERS];
  121. new bool:nnitro[MAX_PLAYERS];
  122. new bool:vload[MAX_PLAYERS];
  123. new bool:afkspam[MAX_PLAYERS];
  124.  
  125. new bool:flashcar[MAX_PLAYERS];
  126. new bool:flashnick[MAX_PLAYERS];
  127.  
  128. new Float:xx[MAX_PLAYERS];
  129. new Float:yy[MAX_PLAYERS];
  130. new Float:zz[MAX_PLAYERS];
  131. new bool:vgoto[MAX_PLAYERS];
  132. new AFK[MAX_PLAYERS];
  133. new flasht1[MAX_PLAYERS];
  134. new flasht2[MAX_PLAYERS];
  135.  
  136.  
  137. new Float:GlassSkins[300][7] = {
  138. {0.098771, 0.030772, -0.000335, 85.342658, 84.122947, 4.236968 }, // - 0
  139. {0.100766, 0.028630, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 1
  140. {0.083712, 0.033132, -0.003521, 87.936676, 82.110870, 4.236968 }, // - 2
  141. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 3
  142. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 4
  143. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 5
  144. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 6
  145. {0.090066, 0.043458, -0.006523, 87.936676, 82.110870, 4.236968 }, // - 7
  146. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 8
  147. {0.070977, 0.028663, 0.000147, 81.164970, 92.128402, 4.236968 }, // - 9
  148. {0.072317, 0.032179, -0.002934, 86.843269, 84.196006, 4.236968 }, // - 10
  149. {0.072317, 0.035465, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 11
  150. {0.072317, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 12
  151. {0.076569, 0.028100, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 13
  152. {0.091310, 0.049169, -0.002201, 86.843269, 84.196006, 4.236968 }, // - 14
  153. {0.073734, 0.006292, -0.002755, 86.843269, 84.196006, 4.236968 }, // - 15
  154. {0.092845, 0.040331, 0.000183, 86.843269, 82.864280, 4.236968 }, // - 16
  155. {0.088241, 0.030184, -0.000157, 86.843269, 82.864280, 4.236968 }, // - 17
  156. {0.061677, 0.029596, -0.007398, 86.843269, 82.864280, 4.236968 }, // - 18
  157. {0.079911, 0.029596, -0.002934, 86.843269, 82.864280, 4.236968 }, // - 19
  158. {0.095079, 0.029596, -0.001718, 85.261871, 86.296562, 4.236968 }, // - 20
  159. {0.093728, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 21
  160. {0.079585, 0.042083, -0.005781, 85.261871, 81.636192, 4.236968 }, // - 22
  161. {0.090786, 0.041737, -0.005263, 85.261871, 81.636192, 4.236968 }, // - 23
  162. {0.085247, 0.026941, -0.000317, 85.261871, 81.636192, 4.236968 }, // - 24
  163. {0.081646, 0.031448, -0.001113, 89.393653, 81.665985, 4.236968 }, // - 25
  164. {0.083700, 0.033814, -0.001960, 86.436462, 81.665985, 4.236968 }, // - 26
  165. {0.092498, 0.037321, -0.001960, 86.436462, 85.568023, 4.236968 }, // - 27
  166. {0.097068, 0.041360, -0.007881, 86.771400, 85.568023, 4.236968 }, // - 28
  167. {0.083456, 0.050595, 0.001011, 86.771400, 77.201461, 4.236968 }, // - 29
  168. {0.076983, 0.047168, -0.006161, 86.771400, 74.329719, 4.236968 }, // - 30
  169. {0.083798, 0.042184, -0.001869, 86.771400, 83.181861, 4.236968 }, // - 31
  170. {0.053021, -0.000587, -0.001869, 86.771400, 66.859710, 4.236968 },// - 32
  171. {0.034386, 0.013324, -0.001869, 86.771400, 80.314460, 4.236968 }, // - 33
  172. {0.104669, 0.037365, -0.001403, 86.771400, 87.178382, 4.236968 }, // - 34
  173. {0.102659, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 35
  174. {0.107638, 0.037465, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 36
  175. {0.107638, 0.035879, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 37
  176. {0.107638, 0.041106, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 38
  177. {0.080326, 0.035634, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 39
  178. {0.080326, 0.027371, -0.000829, 86.771400, 93.020492, 4.236968 }, // - 40
  179. {0.084617, 0.039613, -0.001620, 86.771400, 93.020492, 4.236968 }, // - 41
  180. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 42
  181. {0.040075, 0.025445, -0.000974, 86.771400, 92.964149, 4.236968 }, // - 43
  182. {0.077369, 0.028469, -0.000974, 86.771400, 78.435791, 4.236968 }, // - 44
  183. {0.064145, 0.028684, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 45
  184. {0.091993, 0.056559, -0.000974, 86.771400, 84.762802, 4.236968 }, // - 46
  185. {0.084582, 0.051277, -0.005034, 86.771400, 84.762802, 4.236968 }, // - 47
  186. {0.092182, 0.042095, -0.003533, 86.771400, 84.762802, 4.236968 }, // - 48
  187. {0.086866, 0.032203, -0.001021, 86.771400, 84.762802, 4.236968 }, // - 49
  188. {0.099350, 0.009422, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 50
  189. {0.099350, 0.030598, -0.005899, 86.771400, 84.762802, 4.236968 }, // - 51
  190. {0.099350, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 52
  191. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 53
  192. {0.079123, 0.030598, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 54
  193. {0.063159, 0.029641, -0.003575, 86.771400, 84.762802, 4.236968 }, // - 55
  194. {0.070293, 0.029641, -0.000570, 86.771400, 84.762802, 4.236968 }, // - 56
  195. {0.111305, 0.045368, -0.000570, 86.771400, 84.458084, 4.236968 }, // - 57
  196. {0.084901, 0.020965, -0.000570, 86.771400, 79.542411, 4.236968 }, // - 58
  197. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 59
  198. {0.090164, 0.044163, -0.004754, 86.771400, 79.542411, 4.236968 }, // - 60
  199. {0.087151, 0.041447, -0.000885, 90.928329, 89.598678, 0.000000 }, // - 61
  200. {0.094350, 0.041447, 0.005717, 90.928329, 89.598678, 0.000000 }, // - 62
  201. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 63
  202. {0.075534, 0.041447, -0.001751, 90.928329, 89.598678, 0.000000 }, // - 64
  203. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 65
  204. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 66
  205. {0.104148, 0.034787, 0.001341, 90.928329, 89.598678, 0.000000 }, // - 67
  206. {0.087317, 0.039646, -0.004032, 90.928329, 89.598678, 0.000000 }, // - 68
  207. {0.074873, 0.039646, -0.003072, 90.928329, 89.598678, 0.000000 }, // - 69
  208. {0.090391, 0.042364, 0.005494, 90.928329, 89.598678, 0.000000 }, // - 70
  209. {0.090391, 0.022298, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 71
  210. {0.090391, 0.039580, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 72
  211. {0.090391, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 73
  212. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 74
  213. {0.083113, 0.038224, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 75
  214. {0.072957, 0.028956, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 76
  215. {0.069398, 0.039981, -0.001170, 90.928329, 89.598678, 0.000000 }, // - 77
  216. {0.105738, 0.010001, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 78
  217. {0.078264, 0.019668, 0.004508, 90.928329, 79.030494, 0.000000 }, // - 79
  218. {0.087377, 0.022096, -0.001993, 90.928329, 79.030494, 0.000000 }, // - 80
  219. {0.087377, 0.022096, -0.001635, 90.928329, 79.030494, 0.000000 }, // - 81
  220. {0.100623, 0.043063, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 82
  221. {0.092528, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 83
  222. {0.102086, 0.027493, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 84
  223. {0.081954, 0.041672, -0.001635, 90.928329, 87.672645, 0.000000 }, // - 85
  224. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 86
  225. {0.077010, 0.046925, -0.003438, 90.928329, 91.590301, 0.000000 }, // - 87
  226. {0.069952, 0.042635, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 88
  227. {0.093827, 0.019258, -0.003438, 90.928329, 86.722587, 0.000000 }, // - 89
  228. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 90
  229. {0.066464, 0.035685, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 91
  230. {0.066464, 0.038135, -0.000843, 90.928329, 86.722587, 0.000000 }, // - 92
  231. {0.066464, 0.038135, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 93
  232. {0.048124, 0.010598, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 94
  233. {0.084997, 0.006773, -0.001690, 90.928329, 86.722587, 0.000000 }, // - 95
  234. {0.100076, 0.026633, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 96
  235. {0.061686, 0.027537, -0.001690, 90.928329, 80.020179, 0.000000 }, // - 97
  236. {0.098318, 0.053993, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 98
  237. {0.098318, 0.033702, -0.001690, 90.928329, 89.237678, 0.000000 }, // - 99
  238. {0.086149, 0.042526, -0.001690, 90.928329, 77.587478, 0.000000 }, // - 100
  239. {0.081864, 0.030555, -0.001690, 90.928329, 78.145759, 0.000000 }, // - 101
  240. {0.081864, 0.047914, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 102
  241. {0.089607, 0.036717, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 103
  242. {0.079655, 0.042021, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 104
  243. {0.091779, 0.037620, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 105
  244. {0.084179, 0.035251, -0.005079, 90.928329, 78.145759, 0.000000 }, // - 106
  245. {0.089387, 0.040297, -0.006006, 90.928329, 78.145759, 0.000000 }, // - 107
  246. {0.081930, 0.030756, 0.001523, 90.928329, 78.145759, 0.000000 }, // - 108
  247. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 109
  248. {0.092857, 0.043070, -0.006084, 90.928329, 85.326652, 0.000000 }, // - 110
  249. {0.106601, 0.028021, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 111
  250. {0.096335, 0.015873, -0.003537, 90.928329, 90.217376, 0.000000 }, // - 112
  251. {0.105827, 0.046620, -0.001395, 90.928329, 90.217376, 0.000000 }, // - 113
  252. {0.097520, 0.044296, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 114
  253. {0.097408, 0.043470, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 115
  254. {0.092588, 0.049832, -0.007286, 90.928329, 90.217376, 0.000000 }, // - 116
  255. {0.081444, 0.037602, -0.003125, 90.928329, 90.217376, 0.000000 }, // - 117
  256. {0.078678, 0.037602, -0.001816, 90.928329, 90.217376, 0.000000 }, // - 118
  257. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 119
  258. {0.089214, 0.029291, -0.000784, 90.928329, 84.624763, 0.000000 }, // - 120
  259. {0.086825, 0.033424, -0.000784, 90.928329, 77.233818, 0.000000 }, // - 121
  260. {0.082869, 0.030783, -0.000950, 90.928329, 77.233818, 0.000000 }, // - 122
  261. {0.096117, 0.048957, -0.006245, 90.928329, 87.579650, 0.000000 }, // - 123
  262. {0.103663, 0.040022, 0.000449, 90.928329, 87.579650, 0.000000 }, // - 124
  263. {0.099326, 0.031202, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 125
  264. {0.099326, 0.031132, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 126
  265. {0.099326, 0.039279, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 127
  266. {0.099326, 0.047422, -0.001180, 90.928329, 87.579650, 0.000000 }, // - 128
  267. {0.088817, 0.021210, 0.000730, 90.928329, 87.579650, 0.000000 }, // - 129
  268. {0.025784, 0.028323, 0.000730, 90.928329, 59.394767, 0.000000 }, // - 130
  269. {0.068455, 0.031841, -0.004470, 90.928329, 79.979003, 0.000000 }, // - 131
  270. {0.012930, 0.008392, -0.004470, 90.928329, 72.129173, 0.000000 }, // - 132
  271. {0.102457, 0.032260, -0.003338, 90.928329, 84.534217, 0.000000 }, // - 133
  272. {0.085976, 0.014956, -0.003338, 90.928329, 80.308830, 0.000000 }, // - 134
  273. {0.071574, 0.028186, -0.001588, 90.928329, 80.308830, 0.000000 }, // - 135
  274. {0.085219, 0.016666, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 136
  275. {0.065114, 0.009318, -0.000738, 90.928329, 80.308830, 0.000000 }, // - 137
  276. {0.066890, 0.040024, -0.000738, 90.928329, 87.341934, 0.000000 }, // - 138
  277. {0.072037, 0.036141, -0.000702, 90.928329, 87.341934, 0.000000 }, // - 139
  278. {0.069108, 0.042194, -0.000436, 90.928329, 87.341934, 0.000000 }, // - 140
  279. {0.058717, 0.043547, -0.000436, 90.928329, 87.209770, 0.000000 }, // - 141
  280. {0.104196, 0.039601, -0.005481, 90.928329, 87.209770, 0.000000 }, // - 142
  281. {0.090929, 0.045881, -0.012780, 90.928329, 87.209770, 0.000000 }, // - 143
  282. {0.098291, 0.042464, -0.006952, 90.928329, 83.081665, 0.000000 }, // - 144
  283. {0.080087, 0.030122, 0.000606, 90.928329, 83.081665, 0.000000 }, // - 145
  284. {0.093500, 0.030690, -0.001545, 90.928329, 83.081665, 0.000000 }, // - 146
  285. {0.079566, 0.020138, 0.004838, 90.928329, 73.715591, 0.000000 }, // - 147
  286. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 148
  287. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 149
  288. {0.073564, 0.028430, -0.000527, 90.928329, 88.295433, 0.000000 }, // - 150
  289. {0.083426, 0.032359, -0.005717, 90.928329, 88.295433, 0.000000 }, // - 151
  290. {0.072349, 0.019623, -0.000747, 90.928329, 82.624351, 0.000000 }, // - 152
  291. {0.075065, 0.015351, 0.006545, 90.928329, 71.041442, 0.000000 }, // - 153
  292. {0.062227, 0.029731, -0.004938, 90.928329, 84.602760, 0.000000 }, // - 154
  293. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 155
  294. {0.079936, 0.049000, -0.000304, 90.928329, 82.926010, 0.000000 }, // - 156
  295. {0.067550, 0.035686, -0.000017, 90.928329, 82.926010, 0.000000 }, // - 157
  296. {0.090676, 0.039383, -0.001726, 90.928329, 88.667900, 0.000000 }, // - 158
  297. {0.090676, 0.039383, -0.003532, 90.928329, 88.667900, 0.000000 }, // - 159
  298. {0.098662, 0.017441, -0.001589, 90.928329, 88.667900, 0.000000 }, // - 160
  299. {0.105388, 0.038409, 0.003155, 90.928329, 88.667900, 0.000000 }, // - 161
  300. {0.097415, 0.036904, -0.000525, 90.928329, 88.667900, 0.000000 }, // - 162
  301. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 163
  302. {0.088934, 0.023302, -0.004153, 90.928329, 80.393875, 0.000000 }, // - 164
  303. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 165
  304. {0.087018, 0.051364, 0.000484, 90.928329, 94.584838, 0.000000 }, // - 166
  305. {0.095996, 0.038787, 0.000484, 90.928329, 84.315711, 0.000000 }, // - 167
  306. {0.089094, 0.034001, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 168
  307. {0.075700, 0.028082, -0.006451, 90.928329, 84.315711, 0.000000 }, // - 169
  308. {0.093751, 0.041968, -0.005545, 90.928329, 84.315711, 0.000000 }, // - 170
  309. {0.090124, 0.031055, -0.000505, 90.928329, 84.315711, 0.000000 }, // - 171
  310. {0.066033, 0.032915, -0.002713, 90.928329, 84.315711, 0.000000 }, // - 172
  311. {0.088287, 0.045350, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 173
  312. {0.087750, 0.042129, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 174
  313. {0.092384, 0.039294, -0.005384, 90.928329, 84.315711, 0.000000 }, // - 175
  314. {0.097661, 0.039065, -0.006344, 90.928329, 80.736480, 0.000000 }, // - 176
  315. {0.097114, 0.039641, -0.006692, 90.928329, 80.736480, 0.000000 }, // - 177
  316. {0.069354, 0.039641, -0.000474, 90.928329, 80.736480, 0.000000 }, // - 178
  317. {0.091414, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 179
  318. {0.094914, 0.039641, -0.005617, 90.928329, 80.736480, 0.000000 }, // - 180
  319. {0.117232, 0.033217, -0.001099, 90.928329, 82.396362, 0.000000 }, // - 181
  320. {0.082569, 0.032748, -0.003248, 90.928329, 87.394371, 0.000000 }, // - 182
  321. {0.095527, 0.027237, -0.001960, 90.928329, 86.443649, 0.000000 }, // - 183
  322. {0.095527, 0.040994, -0.006878, 90.928329, 86.443649, 0.000000 }, // - 184
  323. {0.085663, 0.030601, -0.002345, 90.928329, 81.496513, 0.000000 }, // - 185
  324. {0.085663, 0.030601, -0.001015, 90.928329, 81.496513, 0.000000 }, // - 186
  325. {0.076527, 0.027211, 0.008500, 90.928329, 74.401092, 0.000000 }, // - 187
  326. {0.096669, 0.032578, 0.001662, 90.928329, 83.502502, 0.000000 }, // - 188
  327. {0.098753, 0.032129, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 189
  328. {0.092821, 0.035572, -0.001659, 90.928329, 90.153724, 0.000000 }, // - 190
  329. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 191
  330. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 192
  331. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 193
  332. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 194
  333. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 195
  334. {0.092821, 0.035572, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 196
  335. {0.100630, 0.020568, -0.001132, 90.928329, 90.153724, 0.000000 }, // - 197
  336. {0.077905, 0.028523, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 198
  337. {0.099095, 0.022463, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 199
  338. {0.103182, 0.031106, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 200
  339. {0.078426, 0.038546, 0.000000, 89.675476, 89.270309, 0.000000 }, // - 201
  340. {0.101092, 0.035797, -0.002997, 89.675476, 82.081153, 0.000000 }, // - 202
  341. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 203
  342. {0.092009, 0.042780, -0.005841, 89.675476, 84.463294, 0.000000 }, // - 204
  343. {0.092969, 0.027782, -0.002959, 89.675476, 84.463294, 0.000000 }, // - 205
  344. {0.105109, 0.036128, -0.000471, 89.675476, 84.463294, 0.000000 }, // - 206
  345. {0.066892, 0.024410, -0.002792, 89.675476, 84.463294, 0.000000 }, // - 207
  346. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 208
  347. {0.084046, 0.013608, -0.002792, 89.675476, 81.667831, 0.000000 }, // - 209
  348. {0.084046, 0.013608, -0.001034, 89.675476, 81.667831, 0.000000 }, // - 210
  349. {0.067610, 0.033777, -0.001034, 89.675476, 85.214485, 0.000000 }, // - 211
  350. {0.094159, 0.020717, 0.000715, 89.675476, 85.214485, 0.000000 }, // - 212
  351. {0.098744, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 213
  352. {0.068755, 0.036786, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 214
  353. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 215
  354. {0.068755, 0.026863, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 216
  355. {0.095765, 0.030034, -0.001770, 89.675476, 85.214485, 0.000000 }, // - 217
  356. {0.085486, 0.039427, -0.003311, 89.675476, 85.214485, 0.000000 }, // - 218
  357. {0.068874, 0.027850, -0.001021, 89.675476, 85.214485, 0.000000 }, // - 219
  358. {0.052931, 0.050390, -0.002062, 89.675476, 88.113647, 0.000000 }, // - 220
  359. {0.094479, 0.034432, 0.000875, 89.675476, 83.572830, 0.000000 }, // - 221
  360. {0.094479, 0.034432, -0.000596, 89.675476, 83.572830, 0.000000 }, // - 222
  361. {0.094479, 0.062073, -0.003098, 89.675476, 83.572830, 0.000000 }, // - 223
  362. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 224
  363. {0.064458, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 225
  364. {0.072095, 0.029760, -0.001460, 89.675476, 83.572830, 0.000000 }, // - 226
  365. {0.110619, 0.043037, -0.001466, 89.675476, 86.927627, 0.000000 }, // - 227
  366. {0.099446, 0.050772, -0.001466, 89.675476, 85.103805, 0.000000 }, // - 228
  367. {0.078635, 0.023680, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 229
  368. {0.043357, 0.028726, -0.000275, 89.675476, 73.445220, 0.000000 }, // - 230
  369. {0.092488, 0.049972, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 231
  370. {0.092488, 0.016739, -0.000275, 89.675476, 88.981941, 0.000000 }, // - 232
  371. {0.071677, 0.037055, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 233
  372. {0.082745, 0.004209, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 234
  373. {0.057909, 0.021331, -0.002878, 89.675476, 88.981941, 0.000000 }, // - 235
  374. {0.079016, 0.021331, -0.000419, 89.675476, 77.678733, 0.000000 }, // - 236
  375. {0.074572, 0.021331, -0.000419, 89.675476, 84.527442, 0.000000 }, // - 237
  376. {0.074572, 0.038346, -0.001500, 89.675476, 84.527442, 0.000000 }, // - 238
  377. {0.111645, 0.011549, 0.006237, 89.675476, 84.527442, 0.000000 }, // - 239
  378. {0.090766, 0.044221, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 240
  379. {0.069491, 0.049021, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 241
  380. {0.059706, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 242
  381. {0.065242, 0.031911, -0.000423, 89.675476, 89.461883, 0.000000 }, // - 243
  382. {0.065242, 0.051077, -0.001103, 89.675476, 89.461883, 0.000000 }, // - 244
  383. {0.082393, 0.038233, 0.000410, 89.675476, 89.461883, 0.000000 }, // - 245
  384. {0.079338, 0.044859, -0.002535, 89.675476, 89.461883, 0.000000 }, // - 246
  385. {0.101566, 0.037019, 0.000750, 89.675476, 83.514060, 0.000000 }, // - 247
  386. {0.091887, 0.047776, -0.000040, 89.675476, 83.514060, 0.000000 }, // - 248
  387. {0.089745, 0.044044, 0.004071, 89.675476, 83.514060, 0.000000 }, // - 249
  388. {0.094214, 0.044044, -0.007274, 89.675476, 83.514060, 0.000000 }, // - 250
  389. {0.072282, 0.044044, -0.001468, 89.675476, 90.444763, 0.000000 }, // - 251
  390. {0.095764, 0.034224, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 252
  391. {0.087454, 0.026208, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 253
  392. {0.099198, 0.037362, -0.000264, 89.675476, 82.959915, 0.000000 }, // - 254
  393. {0.070845, 0.019943, 0.003505, 89.675476, 73.529716, 0.000000 }, // - 255
  394. {0.065373, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 256
  395. {0.070077, 0.033656, -0.001141, 89.675476, 83.002151, 0.000000 }, // - 257
  396. {0.089536, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 258
  397. {0.084822, 0.041904, 0.000715, 89.675476, 83.002151, 0.000000 }, // - 259
  398. {0.093009, 0.031491, -0.001568, 89.675476, 83.002151, 0.000000 }, // - 260
  399. {0.093009, 0.015023, -0.001477, 89.675476, 83.002151, 0.000000 }, // - 261
  400. {0.076580, 0.039782, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 262
  401. {0.076580, 0.028967, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 263
  402. {0.075424, 0.043059, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 264
  403. {0.089655, 0.021726, -0.001477, 89.675476, 88.620780, 0.000000 }, // - 265
  404. {0.096792, 0.014114, -0.003062, 89.675476, 85.166038, 0.000000 }, // - 266
  405. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 267
  406. {0.094886, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 268
  407. {0.102252, 0.024989, -0.003184, 89.675476, 85.166038, 0.000000 }, // - 269
  408. {0.102252, 0.024989, 0.000529, 89.675476, 85.166038, 0.000000 }, // - 270
  409. {0.096134, 0.025462, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 271
  410. {0.099226, 0.032663, 0.000529, 89.675476, 79.225112, 0.000000 }, // - 272
  411. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 273
  412. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 274
  413. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 275
  414. {0.089833, 0.022466, -0.001590, 89.675476, 88.636062, 0.000000 }, // - 276
  415. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 277
  416. {0.082718, 0.062596, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 278
  417. {0.087652, 0.059379, -0.000201, 89.675476, 88.636062, 0.000000 }, // - 279
  418. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 280
  419. {0.087652, 0.023702, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 281
  420. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 282
  421. {0.090877, 0.026643, -0.003091, 89.675476, 88.636062, 0.000000 }, // - 283
  422. {0.090877, 0.053674, 0.009879, 89.675476, 88.636062, 0.000000 }, // - 284
  423. {0.104320, 0.041487, 0.008021, 89.675476, 88.636062, 0.000000 }, // - 285
  424. {0.087062, 0.021779, -0.003307, 89.675476, 88.636062, 0.000000 }, // - 286
  425. {0.073173, 0.048856, 0.005337, 89.675476, 92.561180, 0.000000 }, // - 287
  426. {0.090294, 0.027592, -0.003497, 89.675476, 92.561180, 0.000000 }, // - 288
  427. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // - 289
  428. {0.086562, 0.042698, -0.000612, 89.675476, 92.561180, 0.000000 }, // - 290
  429. {0.096768, 0.039233, -0.000612, 89.675476, 83.550270, 0.000000 }, // - 291
  430. {0.079939, 0.020731, -0.005162, 89.675476, 83.550270, 0.000000 }, // - 292
  431. {0.097107, 0.027826, -0.005162, 89.675476, 88.505996, 0.000000 }, // - 293
  432. {0.097107, 0.037636, 0.000618, 89.675476, 88.505996, 0.000000 }, // - 294
  433. {0.079985, 0.035006, -0.000826, 89.675476, 87.533462, 0.000000 }, // - 295
  434. {0.088445, 0.024209, -0.002076, 89.675476, 73.285072, 0.000000 }, // - 296
  435. {0.094039, 0.035411, 0.000490, 89.675476, 84.277572, 0.000000 }, // - 297
  436. {0.099553, 0.024683, -0.002919, 89.675476, 84.277572, 0.000000 }, // - 298
  437. {0.099553, 0.044356, -0.000285, 89.675476, 84.277572, 0.000000 } // - 299
  438. };
  439.  
  440.  
  441. new Float: CapsSkins[299][6] = {
  442. {0.135928, 0.002891, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 0
  443. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 1
  444. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 2
  445. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 3
  446. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 4
  447. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 5
  448. {0.155785, 0.005998, -0.014326, 0.000000, 0.000000, 347.188201},//Skin - 6
  449. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 7
  450. {0.131067, -0.013737, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 8
  451. {0.118922, -0.015322, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 9
  452. {0.125779, -0.001459, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 10
  453. {0.129249, -0.014101, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 11
  454. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 12
  455. {0.161076, -0.015624, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 13
  456. {0.112204, -0.023196, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 14
  457. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 15
  458. {0.150166, -0.008718, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 16
  459. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 17
  460. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 18
  461. {0.153609, -0.003207, -0.007717, 0.000000, 0.000000, 357.608825},//Skin - 19
  462. {0.143831, 0.001813, -0.010588, 0.000000, 0.000000, 357.608825}, //Skin - 20
  463. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 21
  464. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 22
  465. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 23
  466. {0.127352, 0.009877, -0.006845, 0.726156, 359.666778, 348.825012},//Skin - 24
  467. {0.124666, -0.029373, -0.006845, 0.726156, 359.666778, 329.940704},//Skin - 25
  468. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 26
  469. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 27
  470. {0.128768, 0.041474, -0.007667, 0.726156, 359.666778, 355.429199}, //Skin - 28
  471. {0.166457, -0.006228, -0.012669, 0.726156, 359.666778, 354.612152},//Skin - 29
  472. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 30
  473. {0.096077, -0.023233, -0.009101, 0.726156, 359.666778, 343.094055},//Skin - 31
  474. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 32
  475. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 33
  476. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 34
  477. {0.155565, 0.014400, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 35
  478. {0.156485, 0.013641, -0.009101, 0.726156, 359.666778, 6.131487}, //Skin - 36
  479. {0.144815, 0.013641, -0.009374, 0.726156, 359.666778, 350.562103}, //Skin - 37
  480. {0.113347, -0.006682, -0.009374, 0.726156, 359.666778, 350.562103},//Skin - 38
  481. {0.147231, -0.014448, -0.004786, 0.726156, 359.666778, 357.303253},//Skin - 39
  482. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 40
  483. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 41
  484. {0.082446, 0.004202, -0.004786, 0.726156, 359.666778, 357.303253}, //Skin - 42
  485. {0.104901, 0.004013, -0.004786, 0.726156, 359.666778, 342.983184}, //Skin - 43
  486. {0.116172, -0.001954, -0.004786, 0.726156, 359.666778, 357.100677},//Skin - 44
  487. {0.153321, 0.025744, -0.008666, 0.726156, 359.666778, 10.704365}, //Skin - 45
  488. {0.160556, 0.007781, -0.010438, 0.726156, 359.666778, 0.991972}, //Skin - 46
  489. {0.179010, -0.035613, -0.010438, 0.726156, 359.666778, 347.956573},//Skin - 47
  490. {0.123363, 0.008694, -0.010438, 0.726156, 359.666778, 347.956573}, //Skin - 48
  491. {0.167061, -0.037899, -0.010438, 0.726156, 359.666778, 347.775817},//Skin - 49
  492. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 50
  493. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 51
  494. {0.129040, 0.016069, -0.010438, 0.726156, 359.666778, 347.775817}, //Skin - 52
  495. {0.129040, 0.016069, -0.006084, 0.726156, 359.666778, 347.775817}, //Skin - 53
  496. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 54
  497. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 55
  498. {0.174539, -0.000662, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 56
  499. {0.109382, -0.002955, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 57
  500. {0.152276, -0.029331, -0.008357, 0.726156, 359.666778, 332.070648},//Skin - 58
  501. {0.129599, -0.019172, -0.012204, 0.726156, 359.666778, 332.070648},//Skin - 59
  502. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 60
  503. {0.130350, 0.000897, -0.000747, 0.726156, 359.666778, 332.070648}, //Skin - 61
  504. {0.150659, -0.035485, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 62
  505. {0.119340, -0.006483, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 63
  506. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 64
  507. {0.133055, -0.000092, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 65
  508. {0.129061, -0.006499, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 66
  509. {0.127292, 0.010318, -0.006299, 0.726156, 359.666778, 341.617431}, //Skin - 67
  510. {0.138791, -0.025311, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 68
  511. {0.148132, 0.003970, -0.002304, 0.726156, 359.666778, 340.120025}, //Skin - 69
  512. {0.129753, 0.006469, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 70
  513. {0.125663, 0.015428, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 71
  514. {0.125663, 0.015428, -0.009030, 0.726156, 359.666778, 354.029815}, //Skin - 72
  515. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 73
  516. {0.135729, -0.018656, -0.013554, 0.000000, 0.000000, 337.893737}, //Skin - 74
  517. {0.141888, -0.042810, -0.006206, 0.000000, 0.000000, 337.893737}, //Skin - 75
  518. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 76
  519. {0.124348, -0.017813, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 77
  520. {0.124348, 0.000583, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 78
  521. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 79
  522. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865}, //Skin - 81
  523. {0.167928, 0.031601, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 82
  524. {0.159998, 0.023540, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 83
  525. {0.169630, 0.019315, -0.006206, 0.000000, 0.000000, 17.955888}, //Skin - 84
  526. {0.163052, -0.039735, -0.006206, 0.000000, 0.000000, 341.169891}, //Skin - 85
  527. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 86
  528. {0.144811, -0.007521, -0.014207, 0.000000, 0.000000, 341.169891}, //Skin - 87
  529. {0.129932, -0.007521, -0.007289, 0.000000, 0.000000, 341.169891}, //Skin - 88
  530. {0.151147, -0.038608, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 89
  531. {0.147416, -0.031632, -0.009597, 0.000000, 0.000000, 343.694549}, //Skin - 90
  532. {0.157728, -0.009677, -0.009597, 0.000000, 0.000000, 0.934848}, //Skin - 91
  533. {0.136577, -0.015592, -0.009597, 0.000000, 0.000000, 341.013824}, //Skin - 92
  534. {0.143821, 0.000631, -0.008385, 0.000000, 0.000000, 358.808868}, //Skin - 93
  535. {0.100521, 0.003151, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 94
  536. {0.122833, -0.006031, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 95
  537. {0.145296, 0.003959, -0.007624, 0.000000, 0.000000, 358.808868}, //Skin - 96
  538. {0.141658, 0.016474, -0.007624, 0.000000, 0.000000, 9.683902}, //Skin - 97
  539. {0.145276, -0.002846, -0.007624, 0.000000, 0.000000, 340.239593}, //Skin - 98
  540. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 99
  541. {0.161745, -0.010244, -0.007624, 0.000000, 0.000000, 351.499267}, //Skin - 100
  542. {0.151006, -0.030994, -0.005366, 0.000000, 0.000000, 340.428894}, //Skin - 101
  543. {0.147111, 0.003794, -0.012433, 0.000000, 0.000000, 358.069244}, //Skin - 102
  544. {0.154213, -0.052348, -0.003511, 356.299316, 0.000000, 336.751647},//Skin - 103
  545. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 104
  546. {0.153814, -0.039614, -0.006756, 356.299316, 0.000000, 336.930084},//Skin - 105
  547. {0.153638, -0.039614, -0.013630, 356.299316, 0.000000, 336.930084},//Skin - 106
  548. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 107
  549. {0.140473, -0.026201, -0.000469, 0.390689, 355.405181, 335.554260},//Skin - 108
  550. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 109
  551. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 110
  552. {0.134860, 0.001485, -0.010145, 0.390689, 358.632415, 347.730010},//Skin - 111
  553. {0.124823, 0.001485, -0.009402, 0.390689, 358.632415, 347.730010},//Skin - 112
  554. {0.157999, -0.012039, -0.006082, 0.390689, 358.632415, 347.730010},//Skin - 113
  555. {0.144906, -0.005139, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 114
  556. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 116
  557. {0.152829, -0.009735, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 117
  558. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 118
  559. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 119
  560. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin -120
  561. {0.154275, -0.037484, -0.009654, 0.390689, 358.632415, 337.676666},//Skin - 121
  562. {0.155674, -0.015613, -0.004339, 0.390689, 358.632415, 350.571228},//Skin - 122
  563. {0.136433, -0.019181, -0.004339, 0.390689, 358.632415, 340.261840},//Skin - 123
  564. {0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840},//Skin - 124
  565. {0.153242, -0.029651, -0.002434, 0.390689, 358.632415, 333.367614},//Skin - 125
  566. {0.127978, -0.001961, -0.008867, 0.390689, 358.632415, 347.279052},//Skin - 126
  567. {0.160856, -0.025356, -0.004428, 0.390689, 358.632415, 347.279052},//Skin - 127
  568. {0.150266, -0.009032, -0.006781, 0.390689, 358.632415, 347.223754},//Skin - 128
  569. {0.158060, 0.022907, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 129
  570. {0.111739, 0.012673, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 130
  571. {0.091638, -0.011600, -0.008686, 0.390689, 358.632415, 336.674468},//Skin - 131
  572. {0.125788, 0.000635, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 132
  573. {0.031324, -0.014154, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 133
  574. {0.142321, 0.015417, -0.005915, 0.243191, 358.632415, 350.329559},//Skin - 133
  575. {0.128780, -0.030750, 0.006687, 173.184967, 358.632415, 27.422966},//Skin - 134
  576. {0.115882, -0.004931, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 135
  577. {0.127531, -0.008916, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 136
  578. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 137
  579. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 138
  580. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 139
  581. {0.147315, 0.001708, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 140
  582. {0.144315, -0.013571, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 141
  583. {0.144315, -0.002729, -0.010357, 358.837646, 358.632415, 354.390045},//Skin - 142
  584. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 143
  585. {0.177516, -0.070868, -0.009114, 358.837646, 358.632415, 331.679321},//Skin - 144
  586. {0.139578, -0.008750, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 145
  587. {0.139578, -0.014406, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 146
  588. {0.115592, -0.010754, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 147
  589. {0.150735, -0.000459, -0.004405, 358.837646, 358.632415, 9.362450},//Skin - 148
  590. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 149
  591. {0.149485, -0.008709, -0.006168, 358.837646, 358.632415, 2.276566},//Skin - 150
  592. {0.168162, -0.009708, -0.012160, 359.504821, 4.442328, 355.348114},//Skin - 151
  593. {0.156369, -0.024521, -0.012160, 359.504821, 0.415596, 355.348114},//Skin - 152
  594. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 153
  595. {0.119297, -0.016080, -0.010776, 359.504821, 0.415596, 341.522827},//Skin - 154
  596. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 155
  597. {0.172295, -0.065549, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 156
  598. {0.126340, -0.030764, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 157
  599. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 158
  600. {0.154280, 0.002166, -0.010436, 359.504821, 0.415596, 357.792144},//Skin - 159
  601. {0.121469, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 160
  602. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 161
  603. {0.139495, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 162
  604. {0.113212, -0.005302, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 163
  605. {0.120208, 0.003533, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 164
  606. {0.135111, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 165
  607. {0.122118, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 166
  608. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 167
  609. {0.125229, 0.005091, -0.013084, 359.504821, 0.415596, 352.954559},//Skin - 168
  610. {0.153451, -0.018119, -0.013276, 359.504821, 0.415596, 358.219451},//Skin - 169
  611. {0.141395, -0.009131, -0.013276, 359.504821, 0.415596, 347.866027},//Skin - 170
  612. {0.157631, -0.028753, -0.006450, 359.504821, 0.415596, 339.935516},//Skin - 171
  613. {0.152687, -0.027057, -0.007731, 359.504821, 0.415596, 344.054809},//Skin - 172
  614. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 173
  615. {0.165146, 0.015393, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 174
  616. {0.162788, -0.019696, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 175
  617. {0.157728, -0.027188, -0.012891, 359.504821, 0.415596, 345.804748},//Skin - 176
  618. {0.187507, 0.010472, -0.012891, 359.504821, 0.415596, 12.315887},//Skin - 177
  619. {0.153901, -0.027720, -0.007884, 359.504821, 0.415596, 344.553527},//Skin - 178
  620. {0.137445, -0.009757, -0.012987, 359.504821, 0.415596, 344.553527},//Skin - 179
  621. {0.173041, -0.006323, -0.012987, 359.504821, 0.415596, 3.267552},//Skin - 180
  622. {0.143467, 0.016897, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 181
  623. {0.114480, 0.006202, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 182
  624. {0.114480, 0.008813, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 183
  625. {0.128122, -0.012152, -0.013144, 359.504821, 0.415596, 336.326538},//Skin - 184
  626. {0.156171, 0.007268, -0.013144, 359.504821, 0.415596, 10.805211},//Skin - 185
  627. {0.156409, -0.034861, -0.007927, 359.504821, 0.415596, 336.978668},//Skin - 186
  628. {0.118034, -0.024105, -0.002947, 359.504821, 0.415596, 336.978668},//Skin - 187
  629. {0.128686, -0.029632, -0.002947, 358.201873, 0.415596, 329.325042},//Skin - 188
  630. {0.172639, -0.026749, -0.012705, 358.201873, 0.415596, 349.092590},//Skin - 189
  631. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 190
  632. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 191
  633. {0.178725, -0.010278, -0.007224, 358.201873, 0.415596, 354.053405},//Skin - 192
  634. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 193
  635. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 194
  636. {0.176089, -0.032526, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 195
  637. {0.118042, 0.007002, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 196
  638. {0.143840, -0.042712, -0.007556, 358.201873, 0.415596, 341.814422},//Skin - 197
  639. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 198
  640. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 199
  641. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 200
  642. {0.140799, 0.025145, -0.009754, 358.201873, 0.415596, 5.040688},//Skin - 201
  643. {0.140799, 0.015851, -0.009754, 358.201873, 0.415596, 349.796478},//Skin - 202
  644. {0.140799, -0.004372, -0.013685, 358.201873, 0.415596, 349.796478},//Skin - 203
  645. {0.154274, 0.006245, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 204
  646. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 205
  647. {0.154274, 0.016669, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 206
  648. {0.106604, 0.004805, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 207
  649. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 208
  650. {0.148378, -0.003807, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 209
  651. {0.113854, 0.001969, -0.011840, 358.201873, 0.415596, 343.826263},//Skin - 210
  652. {0.149539, -0.028623, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 211
  653. {0.104024, -0.014549, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 212
  654. {0.145820, -0.029160, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 213
  655. {0.148646, -0.008515, -0.009621, 358.201873, 0.415596, 1.360260},//Skin - 214
  656. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 215
  657. {0.148646, -0.005935, -0.004058, 358.201873, 0.415596, 1.360260},//Skin - 216
  658. {0.148646, -0.015611, -0.004058, 358.201873, 0.415596, 340.374938},//Skin - 217
  659. {0.133952, -0.030138, -0.009880, 358.201873, 0.415596, 340.374938},//Skin - 218
  660. {0.140503, -0.033425, -0.005693, 358.201873, 0.415596, 340.374938},//Skin - 219
  661. {0.114608, 0.009020, -0.009135, 358.201873, 0.415596, 352.932006},//Skin - 220
  662. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 221
  663. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 222
  664. {0.179908, -0.010779, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 223
  665. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 224
  666. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 225
  667. {0.134990, -0.034685, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 226
  668. {0.151760, 0.002680, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 227
  669. {0.167410, -0.028664, -0.009135, 358.201873, 0.415596, 340.250427},//Skin - 228
  670. {0.127699, -0.015571, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 229
  671. {0.100555, -0.007753, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 230
  672. {0.126940, 0.016886, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 231
  673. {0.132949, -0.017515, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 232
  674. {0.146124, -0.008425, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 233
  675. {0.125714, -0.021018, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 234
  676. {0.084982, -0.009809, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 235
  677. {0.114669, -0.005190, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 236
  678. {0.123264, -0.014946, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 237
  679. {0.146656, -0.023925, -0.006749, 358.201873, 0.415596, 334.356781},//Skin - 238
  680. {0.133769, -0.007373, -0.006749, 358.201873, 0.415596, 343.105895},//Skin - 239
  681. {0.165378, -0.020173, -0.005869, 358.201873, 0.415596, 348.352233},//Skin - 240
  682. {0.143331, -0.133577, -0.011472, 358.201873, 0.415596, 312.328857},//Skin - 241
  683. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 242
  684. {0.098602, 0.002084, -0.011472, 358.201873, 0.415596, 348.195495},//Skin - 243
  685. {0.124240, -0.011682, -0.006423, 358.201873, 0.415596, 341.555999},//Skin - 244
  686. {0.158155, -0.044311, -0.005439, 358.201873, 0.415596, 336.024902},//Skin - 245
  687. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 246
  688. {0.164307, -0.040974, -0.006797, 358.201873, 0.415596, 337.067047},//Skin - 247
  689. {0.191578, -0.040435, -0.010605, 358.201873, 0.415596, 340.908203},//Skin - 248
  690. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 249
  691. {0.135208, -0.015243, -0.011916, 358.201873, 0.415596, 340.908203},//Skin - 250
  692. {0.134272, -0.027377, -0.006035, 358.201873, 0.415596, 333.416168},//Skin - 251
  693. {0.158813, -0.038977, -0.006035, 358.201873, 0.415596, 336.013519},//Skin - 252
  694. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 253
  695. {0.165106, -0.048880, -0.009719, 358.201873, 0.415596, 331.050933},//Skin - 254
  696. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 255
  697. {0.142586, 0.020829, -0.008549, 358.201873, 0.415596, 2.765411},//Skin - 256
  698. {0.134018, -0.024462, -0.008549, 358.201873, 0.415596, 339.642486},//Skin - 257
  699. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 258
  700. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 259
  701. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 260
  702. {0.134710, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 261
  703. {0.111691, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 262
  704. {0.146077, -0.005195, -0.008114, 358.188964, 0.415596, 3.866970},//Skin - 263
  705. {0.135858, -0.157842, -0.008114, 358.188964, 0.415596, 314.852203},//Skin - 264
  706. {0.127964, 0.000132, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 265
  707. {0.127964, -0.002646, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 266
  708. {0.132329, -0.014261, -0.007384, 1.504234, 0.415596, 352.699432},//Skin - 267
  709. {0.145951, -0.043442, -0.010053, 1.504234, 0.415596, 320.469390},//Skin - 268
  710. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 269
  711. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 270
  712. {0.141851, -0.034538, -0.010580, 1.504234, 0.415596, 340.349456},//Skin - 271
  713. {0.136473, -0.057088, -0.008204, 1.504234, 0.415596, 318.134399},//Skin - 272
  714. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 273
  715. {0.124270, 0.003252, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 274
  716. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 275
  717. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 276
  718. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 277
  719. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 278
  720. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 279
  721. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 280
  722. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 281
  723. {0.140515, 0.009018, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 282
  724. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 283
  725. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 284
  726. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 285
  727. {0.140515, 0.001933, -0.008204, 1.504234, 0.415596, 346.744995}, //Skin - 286
  728. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 287
  729. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 288
  730. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 289
  731. {0.128789, -0.014062, -0.007850, 1.504234, 0.415596, 340.341094},//Skin - 290
  732. {0.158929, -0.027358, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 291
  733. {0.113309, -0.012434, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 292
  734. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, //Skin - 293
  735. {0.158438, -0.023891, -0.007217, 1.504234, 0.415596, 337.298858},//Skin - 294
  736. {0.145000, -0.032054, -0.007217, 1.504234, 0.415596, 336.385589},//Skin - 295
  737. {0.139293, -0.069554, -0.010619, 1.504234, 0.415596, 320.746429},//Skin - 296
  738. {0.148252, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 297
  739. {0.126423, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 298
  740. {0.144949, -0.040691, -0.008599, 1.504234, 0.415596, 320.729705}//Skin - 299
  741. };
  742.  
  743.  
  744. new Float: BackSkins[300][6] = {
  745. {0.152561, 0.009771, -0.003578, 0.000000, 0.000000, 0.000000}, // CapBack1 - capblack 0
  746. {0.154740, -0.000088, -0.007099, 0.000000, 0.000000, 353.034423}, // CapBack1 - 1
  747. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  748. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  749. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  750. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  751. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  752. {0.171452, 0.020331, -0.009405, 0.000000, 0.000000, 0.328186}, // CapBack1 - 7
  753. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  754. {0.165115, -0.006727, -0.005117, 0.000000, 0.000000, 350.829223}, // CapBack1 - 9
  755. {0.139765, -0.006727, -0.008035, 0.000000, 0.000000, 350.829223}, // CapBack1 - 10
  756. {0.164338, 0.010682, -0.006304, 0.000000, 0.000000, 1.317132}, // CapBack5 - 11
  757. {0.168692, -0.012686, -0.006304, 0.000000, 0.000000, 2.620430}, // CapBack5 - 12
  758. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  759. {0.180397, -0.037633, -0.003055, 0.000000, 0.000000, 334.995819}, // CapBack5 - 14
  760. {0.138529, -0.023847, -0.006882, 0.000000, 0.000000, 349.513183}, // CapBack5 - 15
  761. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  762. {0.165150, 0.008241, -0.002468, 0.000000, 0.000000, 359.865356}, // CapBack5 - 17
  763. {0.125999, -0.006320, -0.007210, 0.000000, 0.000000, 351.895660}, // CapBack5 - 18
  764. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  765. {0.178122, -0.005292, -0.007210, 0.000000, 0.000000, 357.589874}, // CapBack5 - 20
  766. {0.171341, -0.012229, -0.009898, 0.000000, 0.000000, 351.194061}, // CapBack5 - 21
  767. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  768. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  769. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  770. {0.157626, -0.029724, -0.004464, 0.000000, 0.000000, 331.973846}, // CapBack5 - 25
  771. {0.152022, -0.029724, -0.004464, 0.000000, 0.000000, 331.973846}, // CapBack5 - 26
  772. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  773. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  774. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  775. {0.180999, -0.032568, -0.011626, 0.000000, 0.000000, 340.068969}, // CapBack5 - 30
  776. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  777. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  778. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  779. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  780. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  781. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  782. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  783. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  784. {0.127392, -0.045833, -0.011626, 0.000000, 0.000000, 332.066528}, // CapBack5 - 39
  785. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  786. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  787. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  788. {0.106016, -0.009698, -0.005557, 0.000000, 0.000000, 352.879241}, // CapBack5 - 43
  789. {0.123384, -0.003855, -0.005557, 0.000000, 0.000000, 339.552703}, // CapBack5 - 44
  790. {0.133027, -0.010028, -0.005557, 0.000000, 0.000000, 351.249084}, // CapBack5 - 45
  791. {0.187303, 0.009308, -0.007567, 0.000000, 0.000000, 354.531066}, // CapBack5 - 46
  792. {0.181427, -0.029691, -0.009906, 0.000000, 0.000000, 340.553741}, // CapBack5 - 47
  793. {0.202131, -0.033994, -0.008840, 0.000000, 0.000000, 349.174133}, // CapBack5 - 48
  794. {0.144064, -0.046047, -0.005176, 0.000000, 0.000000, 327.833953}, // CapBack5 - 49
  795. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  796. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  797. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  798. {0.156962, -0.014533, -0.005744, 0.000000, 0.000000, 339.649780}, // CapBack5 - 53
  799. {0.170897, 0.032927, -0.004505, 0.000000, 0.000000, 4.658165}, // CapBack5 - 54
  800. {0.170897, 0.000525, -0.008647, 0.000000, 0.000000, 4.658165}, // CapBack5 - 55
  801. {0.170897, 0.000525, -0.008647, 0.000000, 0.000000, 4.658165}, // CapBack5 - 56
  802. {0.204822, 0.013232, -0.007975, 0.000000, 0.000000, 358.332122}, // CapBack5 - 57
  803. {0.137341, 0.002028, -0.007975, 0.000000, 0.000000, 358.332122}, // CapBack5 - 58
  804. {0.186327, 0.028765, -0.006357, 0.000000, 0.000000, 9.349652}, // CapBack5 - 59
  805. {0.167387, -0.014165, -0.010267, 0.000000, 0.000000, 347.202239}, // CapBack5 - 60
  806. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  807. {0.153622, 0.026057, 0.001912, 0.000000, 0.000000, 1.657262}, // CapBack5 - 62
  808. {0.180733, 0.004340, -0.005340, 0.000000, 0.000000, 0.000000}, // CapBack1 - 63
  809. {0.135751, 0.000370, -0.005340, 0.000000, 0.000000, 351.369049}, // CapBack1 - 64
  810. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  811. {0.151557, 0.003149, -0.004474, 0.000000, 0.000000, 343.369781}, // CapBack2 - 66
  812. {0.148032, -0.000815, -0.004474, 0.000000, 0.000000, 347.334899}, // CapBack2 - 67
  813. {0.148032, 0.018842, -0.007647, 0.000000, 0.000000, 355.218048}, // CapBack2 - 68
  814. {0.169898, 0.006962, -0.006380, 0.000000, 0.000000, 4.303595}, // CapBack2 - 69
  815. {0.153013, 0.012083, 0.000254, 0.000000, 0.000000, 348.646881}, // CapBack2 - 70
  816. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  817. {0.150600, 0.005597, -0.006945, 0.000000, 0.000000, 348.646881}, // CapBack2 - 72
  818. {0.151958, 0.007609, -0.007373, 0.000000, 0.000000, 352.321228}, // CapBack2 - 73
  819. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  820. {0.164638, -0.009942, -0.007373, 0.000000, 0.000000, 347.293334}, // CapBack2 - 75
  821. {0.174797, -0.027673, -0.002500, 0.000000, 0.000000, 347.293334}, // CapBack2 - 76
  822. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  823. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  824. {0.145512, -0.005392, 0.000265, 0.000000, 0.000000, 349.725921}, // CapBack2 - 79
  825. {0.135133, -0.015628, -0.005431, 0.000000, 0.000000, 349.725921}, // CapBack2 - 80
  826. {0.135133, -0.015628, -0.005431, 0.000000, 0.000000, 349.725921}, // CapBack2 - 81
  827. {0.208755, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 82
  828. {0.198342, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 83
  829. {0.207749, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 84
  830. {0.186061, -0.017886, -0.009003, 0.000000, 0.000000, 342.158477}, // CapBack2 - 85
  831. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  832. {0.162129, -0.029754, -0.009792, 0.000000, 0.000000, 335.401397}, // CapBack2 - 87
  833. {0.162129, 0.006584, -0.005103, 0.000000, 0.000000, 350.173980}, // CapBack2 - 88
  834. {0.173523, -0.018237, -0.008053, 0.000000, 0.000000, 1.074956}, // CapBack2 - 89
  835. {0.173523, 0.004939, -0.005089, 0.000000, 0.000000, 1.074956}, // CapBack2 - 90
  836. {0.173523, -0.002368, -0.005089, 0.000000, 0.000000, 1.074956}, // CapBack2 - 91
  837. {0.191579, -0.039141, -0.005089, 0.000000, 0.000000, 353.232330}, // CapBack2 - 92
  838. {0.190105, 0.007120, -0.005089, 0.000000, 0.000000, 8.263933}, // CapBack2 - 93
  839. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  840. {0.140587, -0.020173, -0.002521, 0.000000, 0.000000, 354.900054}, // CapBack2 - 95
  841. {0.166945, -0.018467, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 96
  842. {0.149077, -0.028112, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 97
  843. {0.169777, -0.007985, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 98
  844. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  845. {0.196824, -0.009257, -0.006057, 0.000000, 0.000000, 356.336090}, // CapBack2 - 100
  846. {0.177550, -0.027981, -0.006057, 0.000000, 0.000000, 343.939056}, // CapBack2 - 101
  847. {0.174734, 0.009933, -0.009756, 0.000000, 0.000000, 3.055547}, // CapBack2 - 102
  848. {0.188160, -0.013580, -0.004421, 0.000000, 0.000000, 356.492431}, // CapBack2 - 103
  849. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  850. {0.190762, -0.013580, -0.004421, 0.000000, 0.000000, 356.492431}, // CapBack2 - 105
  851. {0.187602, -0.025435, -0.010075, 0.000000, 0.000000, 346.004516}, // CapBack2 - 106
  852. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  853. {0.175870, -0.003954, -0.007077, 0.000000, 0.000000, 346.004516}, // CapBack2 - 108
  854. {0.172407, -0.013431, -0.010775, 0.000000, 0.000000, 346.004516}, // CapBack2 - 109
  855. {0.172407, -0.013431, -0.010775, 0.000000, 0.000000, 346.004516}, // CapBack2 - 110
  856. {0.150013, 0.003311, -0.006409, 0.000000, 0.000000, 352.270080}, // CapBack2 - 111
  857. {0.141717, -0.009559, -0.006409, 0.000000, 0.000000, 352.270080}, // CapBack2 - 112
  858. {0.185393, -0.023785, -0.004980, 0.000000, 0.000000, 345.606567}, // CapBack2 - 113
  859. {0.185393, -0.000169, -0.010926, 0.000000, 0.000000, 351.197326}, // CapBack2 - 114
  860. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  861. {0.182650, 0.004789, -0.010926, 0.000000, 0.000000, 357.257171}, // CapBack2 - 116
  862. {0.134004, 0.017698, -0.005831, 0.000000, 0.000000, 357.257171}, // CapBack2 - 117
  863. {0.134004, 0.017698, -0.005831, 0.000000, 0.000000, 357.257171}, // CapBack2 - 118
  864. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  865. {0.178981, -0.028772, -0.004536, 0.000000, 0.000000, 346.605316}, // CapBack2 - 120
  866. {0.183907, -0.011432, -0.004536, 0.000000, 0.000000, 355.820770}, // CapBack2 - 121
  867. {0.165320, -0.005021, -0.004536, 0.000000, 0.000000, 355.820770}, // CapBack2 - 122
  868. {0.200145, -0.002194, -0.008751, 0.000000, 0.000000, 358.896423}, // CapBack2 - 123
  869. {0.182011, 0.001444, -0.002327, 0.000000, 0.000000, 357.818420}, // CapBack2 - 124
  870. {0.151200, 0.008420, -0.005776, 0.000000, 0.000000, 357.818420}, // CapBack2 - 125
  871. {0.187609, 0.001857, -0.004008, 0.000000, 0.000000, 7.271462}, // CapBack2 - 126
  872. {0.188872, -0.010934, -0.006273, 0.000000, 0.000000, 354.714599}, // CapBack2 - 127
  873. {0.187277, -0.010814, -0.012647, 0.000000, 0.000000, 342.365417}, // CapBack2 - 128
  874. {0.133478, 0.005174, -0.012647, 0.000000, 0.000000, 358.076538}, // CapBack2 - 129
  875. {0.096691, -0.040395, -0.006268, 0.000000, 0.000000, 328.075073}, // CapBack2 - 130
  876. {0.159023, -0.001297, -0.003358, 0.000000, 0.000000, 354.126007}, // CapBack2 - 131
  877. {0.052064, -0.014930, -0.003462, 0.000000, 0.000000, 345.376892}, // CapBack2 - 132
  878. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  879. {0.165563, -0.013992, -0.003462, 0.000000, 0.000000, 356.365600}, // CapBack2 - 134
  880. {0.146837, -0.006449, -0.006697, 0.000000, 0.000000, 349.979614}, // CapBack2 - 135
  881. {0.146837, -0.001257, -0.006697, 0.000000, 0.000000, 353.938903}, // CapBack2 - 136
  882. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  883. {0.179458, 0.018936, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 138
  884. {0.179458, 0.018936, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 139
  885. {0.182565, 0.010967, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 140
  886. {0.182565, 0.009535, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 141
  887. {0.182565, -0.002640, -0.006697, 0.000000, 0.000000, 359.800872}, // CapBack2 - 142
  888. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  889. {0.228769, -0.002640, -0.011189, 0.000000, 0.000000, 359.800872}, // CapBack2 - 144
  890. {0.171856, 0.000946, -0.001703, 0.000000, 0.000000, 359.800872}, // CapBack2 - 145
  891. {0.154141, -0.004233, -0.008664, 0.000000, 0.000000, 355.798858}, // CapBack2 - 146
  892. {0.149305, -0.024469, 0.000980, 0.000000, 0.000000, 351.391906}, // CapBack2 - 147
  893. {0.176194, -0.021742, -0.003060, 0.000000, 0.000000, 351.391906}, // CapBack2 - 148
  894. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  895. {0.187446, -0.014221, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 150
  896. {0.197199, 0.001229, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 151
  897. {0.172892, -0.015298, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 152
  898. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  899. {0.138590, 0.002724, -0.005538, 0.000000, 0.000000, 2.834435}, // CapBack2 - 154
  900. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  901. {0.219108, -0.037769, -0.001686, 0.000000, 0.000000, 354.529266}, // CapBack2 - 156
  902. {0.155086, 0.003292, 0.001146, 0.000000, 0.000000, 354.529266}, // CapBack2 - 157
  903. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  904. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  905. {0.145796, -0.011042, -0.004201, 0.000000, 0.000000, 354.529266}, // CapBack2 - 160
  906. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  907. {0.158876, 0.012828, -0.008527, 0.000000, 0.000000, 354.529266}, // CapBack2 - 162
  908. {0.137763, -0.001837, -0.008527, 0.000000, 0.000000, 345.313812}, // CapBack2 - 163
  909. {0.146060, -0.013492, -0.008527, 0.000000, 0.000000, 345.313812}, // CapBack2 - 164
  910. {0.163246, -0.012942, -0.004973, 0.000000, 0.000000, 344.333374}, // CapBack2 - 165
  911. {0.140111, 0.007943, -0.004973, 0.000000, 0.000000, 349.497924}, // CapBack2 - 166
  912. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  913. {0.141848, 0.007943, -0.010143, 0.000000, 0.000000, 349.497924}, // CapBack2 - 168
  914. {0.165495, 0.006009, -0.005755, 0.000000, 0.000000, 10.909480}, // CapBack2 - 169
  915. {0.172246, 0.002606, -0.011039, 0.000000, 0.000000, 0.820177}, // CapBack2 - 170
  916. {0.179460, -0.000000, -0.006654, 0.000000, 0.000000, 359.487091}, // CapBack2 - 171
  917. {0.179460, -0.000000, -0.006654, 0.000000, 0.000000, 359.487091}, // CapBack2 - 172
  918. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  919. {0.208994, -0.007943, -0.006654, 0.000000, 0.000000, 345.862579}, // CapBack2 - 174
  920. {0.178250, -0.007943, -0.009599, 0.000000, 0.000000, 345.862579}, // CapBack2 - 175
  921. {0.188804, -0.008412, -0.010471, 0.000000, 0.000000, 357.926025}, // CapBack2 - 176
  922. {0.215245, -0.046786, -0.010471, 0.000000, 0.000000, 333.935485}, // CapBack2 - 177
  923. {0.196470, 0.024980, -0.006861, 0.000000, 0.000000, 9.335173}, // CapBack2 - 178
  924. {0.170804, 0.017931, -0.009900, 0.000000, 0.000000, 9.335173}, // CapBack2 - 179
  925. {0.202440, -0.022104, -0.009900, 0.000000, 0.000000, 350.458648}, // CapBack2 - 180
  926. {0.170491, -0.001973, -0.004454, 0.000000, 0.000000, 350.458648}, // CapBack2 - 181
  927. {0.139138, 0.009438, -0.007567, 0.000000, 0.000000, 350.458648}, // CapBack2 - 182
  928. {0.144261, 0.006484, -0.005938, 0.000000, 0.000000, 350.458648}, // CapBack2 - 183
  929. {0.173439, 0.008749, -0.009442, 0.000000, 0.000000, 4.531515}, // CapBack2 - 184
  930. {0.178510, -0.005743, -0.003814, 0.000000, 0.000000, 354.167968}, // CapBack2 - 185
  931. {0.182519, -0.013562, -0.003814, 0.000000, 0.000000, 354.167968}, // CapBack2 - 186
  932. {0.146338, -0.063390, -0.001417, 0.000000, 0.000000, 331.099212}, // CapBack2 - 187
  933. {0.149057, -0.028143, -0.001417, 0.000000, 0.000000, 331.099212}, // CapBack2 - 188
  934. {0.190356, -0.030107, -0.001417, 0.000000, 0.000000, 343.327667}, // CapBack2 - 189
  935. {0.202054, -0.040251, -0.001417, 0.000000, 0.000000, 343.327667}, // CapBack2 - 190
  936. {0.197020, -0.033725, -0.006150, 0.000000, 0.000000, 343.327667}, // CapBack2 - 191
  937. {0.193556, -0.001809, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 192
  938. {0.196684, -0.004270, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 193
  939. {0.196684, -0.004270, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 194
  940. {0.206905, 0.000445, -0.006150, 0.000000, 0.000000, 7.253017}, // CapBack2 - 195
  941. {0.134116, 0.009748, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 196
  942. {0.179956, -0.001632, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 197
  943. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  944. {0.168909, -0.005808, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 199
  945. {0.174613, 0.018596, -0.006150, 0.000000, 0.000000, 8.241870}, // CapBack2 - 200
  946. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  947. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  948. {0.186252, 0.025931, -0.006150, 359.226074, 0.000000, 16.592515}, // CapBack2 - 203
  949. {0.163428, 0.002381, -0.010481, 1.199788, 0.000000, 354.398010}, // CapBack2 - 204
  950. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  951. {0.163428, 0.008872, -0.010481, 1.199788, 0.000000, 354.398010}, // CapBack2 - 206
  952. {0.112955, 0.013557, -0.004934, 1.199788, 0.000000, 354.398010}, // CapBack2 - 207
  953. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  954. {0.160963, 0.002805, -0.004934, 1.199788, 0.000000, 359.006042}, // CapBack2 - 209
  955. {0.128493, -0.003984, -0.004934, 1.199788, 0.000000, 359.006042}, // CapBack2 - 210
  956. {0.176982, 0.023702, -0.004934, 1.199788, 0.000000, 14.166459}, // CapBack2 - 211
  957. {0.128467, -0.008255, -0.004934, 1.199788, 0.000000, 343.645538}, // CapBack2 - 212
  958. {0.185985, -0.003673, -0.005680, 1.199788, 0.000000, 358.541107}, // CapBack2 - 213
  959. {0.176328, -0.009473, -0.004319, 1.199788, 0.000000, 358.541107}, // CapBack2 - 214
  960. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  961. {0.181434, 0.009004, -0.004319, 1.199788, 0.000000, 10.780131}, // CapBack2 - 216
  962. {0.161066, -0.037283, -0.004319, 1.199788, 0.000000, 328.898590}, // CapBack2 - 217
  963. {0.149989, 0.001034, -0.007441, 1.199788, 0.000000, 352.247955}, // CapBack2 - 218
  964. {0.158134, 0.033803, -0.004034, 1.199788, 0.000000, 23.654287}, // CapBack2 - 219
  965. {0.137110, -0.021979, -0.006172, 1.199788, 0.000000, 336.757873}, // CapBack2 - 220
  966. {0.221894, 0.006963, -0.006172, 1.199788, 0.000000, 7.847995}, // CapBack2 - 221
  967. {0.204477, -0.043676, -0.006172, 1.199788, 0.000000, 350.189361}, // CapBack2 - 222
  968. {0.207657, -0.008146, -0.006172, 1.199788, 0.000000, 350.189361}, // CapBack2 - 223
  969. {0.190393, 0.000228, 0.001606, 1.199788, 0.000000, 11.879378}, // CapBack2 - 224
  970. {0.190393, 0.000228, 0.001606, 1.199788, 0.000000, 11.879378}, // CapBack2 - 225
  971. {0.163592, 0.006964, -0.009153, 1.199788, 0.000000, 11.879378}, // CapBack2 - 226
  972. {0.182670, 0.016327, -0.005560, 1.199788, 0.000000, 359.033477}, // CapBack2 - 227
  973. {0.200009, -0.013580, -0.005560, 1.199788, 0.000000, 347.257019}, // CapBack2 - 228
  974. {0.151536, -0.004985, -0.003730, 1.199788, 0.000000, 1.332237}, // CapBack2 - 229
  975. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  976. {0.162618, 0.025505, -0.006327, 1.199788, 0.000000, 1.332237}, // CapBack2 - 231
  977. {0.162618, -0.021187, -0.006327, 1.199788, 0.000000, 1.332237}, // CapBack2 - 232
  978. {0.184628, 0.009246, -0.006327, 1.199788, 0.000000, 9.318798}, // CapBack2 - 233
  979. {0.138607, -0.007896, -0.002440, 1.199788, 0.000000, 357.667327}, // CapBack2 - 234
  980. {0.102028, -0.007896, -0.002440, 1.199788, 0.000000, 357.667327}, // CapBack2 - 235
  981. {0.141433, 0.001568, -0.007129, 1.199788, 0.000000, 357.667327}, // CapBack2 - 236
  982. {0.171422, 0.003976, -0.007129, 1.199788, 0.000000, 14.896168}, // CapBack2 - 237
  983. {0.162112, -0.033918, -0.009757, 1.199788, 0.000000, 329.660644}, // CapBack2 - 238
  984. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  985. {0.195676, -0.000346, -0.009059, 1.199788, 0.000000, 359.219635}, // CapBack2 - 240
  986. {0.225913, -0.093273, -0.009059, 1.199788, 0.000000, 338.582885}, // CapBack2 - 241
  987. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  988. {0.119849, 0.008509, -0.004875, 1.199788, 0.000000, 351.250366}, // CapBack2 - 243
  989. {0.142359, -0.007982, -0.002139, 1.199788, 0.000000, 338.201110}, // CapBack2 - 244
  990. {0.213636, 0.020328, -0.002139, 1.199788, 0.000000, 9.539301}, // CapBack2 - 245
  991. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  992. {0.191313, -0.025602, -0.008449, 1.199788, 0.000000, 345.625457}, // CapBack2 - 247
  993. {0.218937, -0.025602, -0.008449, 1.199788, 0.000000, 345.625457}, // CapBack2 - 248
  994. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  995. {0.171738, -0.008147, -0.009720, 1.199788, 0.000000, 351.946502}, // CapBack2 - 250
  996. {0.171738, -0.008147, -0.004024, 1.199788, 0.000000, 351.946502}, // CapBack2 - 251
  997. {0.191814, -0.018688, -0.001956, 1.199788, 0.000000, 351.946502}, // CapBack2 - 252
  998. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  999. {0.191814, -0.018688, -0.001956, 1.199788, 0.000000, 349.399566}, // CapBack2 - 254
  1000. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1001. {0.172645, -0.018688, -0.001956, 1.199788, 0.000000, 349.399566}, // CapBack2 - 256
  1002. {0.164325, -0.017981, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 257
  1003. {0.182589, -0.038286, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 258
  1004. {0.185917, -0.047972, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 259
  1005. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1006. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1007. {0.128629, 0.020902, -0.006244, 1.199788, 0.000000, 358.125885}, // CapBack2 - 262
  1008. {0.179700, 0.011040, 0.000088, 1.199788, 0.000000, 12.603851}, // CapBack2 - 263
  1009. {0.216605, -0.099891, 0.000088, 1.199788, 0.000000, 342.666625}, // CapBack2 - 264
  1010. {0.147310, -0.000934, -0.005484, 1.199788, 0.000000, 357.229003}, // CapBack2 - 265
  1011. {0.158313, -0.000955, -0.006872, 1.199788, 0.000000, 357.229003}, // CapBack2 - 266
  1012. {0.166343, -0.003141, -0.006872, 1.199788, 0.000000, 2.876371}, // CapBack2 - 267
  1013. {0.171693, -0.050949, -0.009712, 1.199788, 0.000000, 340.129333}, // CapBack2 - 268
  1014. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1015. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1016. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1017. {0.178678, -0.035822, -0.005613, 1.199788, 0.000000, 334.835510}, // CapBack2 - 272
  1018. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1019. {0.143802, -0.005543, -0.005613, 1.199788, 0.000000, 342.616333}, // CapBack2 - 274
  1020. {0.143802, -0.002142, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 275
  1021. {0.143802, -0.002142, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 276
  1022. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1023. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1024. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1025. {0.154324, 0.004585, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 280
  1026. {0.141513, -0.001361, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 281
  1027. {0.178879, -0.032552, -0.007550, 1.199788, 0.000000, 339.513275}, // CapBack2 - 282
  1028. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1029. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1030. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1031. {0.148372, 0.012662, -0.003643, 1.199788, 0.000000, 352.562530}, // CapBack2 - 286
  1032. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1033. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1034. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1035. {0.169198, -0.008094, -0.004952, 1.199788, 0.000000, 355.882568}, // CapBack2 - 290
  1036. {0.197062, -0.010244, -0.008868, 1.199788, 0.000000, 347.195098}, // CapBack2 - 291
  1037. {0.129213, -0.005561, -0.008868, 1.199788, 0.000000, 347.195098}, // CapBack2 - 292
  1038. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  1039. {0.184856, -0.017724, -0.004568, 1.199788, 0.000000, 340.720977}, // CapBack2 - 294
  1040. {0.164693, -0.035874, -0.004568, 1.199788, 0.000000, 338.932373}, // CapBack2 - 295
  1041. {0.162584, -0.071738, -0.009352, 1.199788, 0.000000, 324.114501}, // CapBack2 - 296
  1042. {0.201801, 0.013063, -0.004067, 1.199788, 0.000000, 11.497174}, // CapBack2 - 297
  1043. {0.170668, 0.000798, -0.008211, 1.199788, 0.000000, 0.166477}, // CapBack2 - 298
  1044. {0.189388, -0.034348, -0.008211, 1.199788, 0.000000, 338.146575} // CapBack2 - 299
  1045. };
  1046.  
  1047. //================== FORWARD
  1048. forward spam(playerid);
  1049. forward vloadd(playerid);
  1050. forward Heal(playerid);
  1051. forward Zbrane(playerid);
  1052. forward Many(playerid);
  1053. forward Nitroo(playerid);
  1054. forward afkk(playerid);
  1055. forward Timer1();
  1056. forward Timer2();
  1057. forward Timer3();
  1058. forward DateRepair();
  1059. forward FlashTimer1(playerid);
  1060. forward FlashTimer2(playerid);
  1061. forward AntiSPAM(playerid);
  1062.  
  1063.  
  1064. //============ STOCK
  1065. stock Jmeno(playerid)
  1066. {
  1067. new pName[MAX_PLAYER_NAME];
  1068. if(IsPlayerConnected(playerid))
  1069. {
  1070. GetPlayerName(playerid, pName, sizeof(pName));
  1071. }
  1072. return pName;
  1073. }
  1074.  
  1075. //============================================ PUBLIC ON FILTER SCRIPT INIT
  1076. public OnFilterScriptInit()
  1077. {
  1078. SCMTA(COLOR_BILA, "{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER");
  1079. Farby = CreateMenu("~r~[VIP] ~w~Barvy", 1, 50.0, 180.0, 280.0, 200.0);
  1080. AddMenuItem(Farby, 0, "Modra Barva");
  1081. AddMenuItem(Farby, 0, "Zelena Barva");
  1082. AddMenuItem(Farby, 0, "Oranzova Barva");
  1083. AddMenuItem(Farby, 0, "Fialova Barva");
  1084. AddMenuItem(Farby, 0, "Hneda Barva");
  1085. AddMenuItem(Farby, 0, "Cervena Barva");
  1086. AddMenuItem(Farby, 0, "Cierna Barva");
  1087. AddMenuItem(Farby, 0, "Konec");
  1088. SetTimer("DateRepair",180000,true);
  1089. return 1;
  1090. }
  1091. //============================================ PUBLIC ON PLAYER SELECTED MENU ROW
  1092. public DateRepair(){
  1093. for(new i; i < GetMaxPlayers();i++){
  1094. if(vip[i] > 0){
  1095. new file[50],string[12];
  1096. format(file,sizeof(file),"VIP/%s.ini",Jmeno(i));
  1097. if(RemoveTime[i] < gettime()){
  1098. format(string,128,"{FF0000}[ VIP ]{FFFFFF} Tvoj VIP Account vypršal %s, Kúp si nový na %s",date(RemoveTime[i],1),WEB);
  1099. SCM(i,0xFFFFFF,string);
  1100. dini_Remove(file);
  1101. vip[i] = 0;
  1102. }
  1103. }
  1104. }
  1105. return true;
  1106. }
  1107.  
  1108. public OnPlayerSelectedMenuRow(playerid, row)
  1109. {
  1110. new Menu:Current = GetPlayerMenu(playerid);
  1111. if (Current == Farby ) {
  1112. switch(row) {
  1113. case 0:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Modrá !");
  1114. SetPlayerColor(playerid, COLOR_MODRA);
  1115. }
  1116. case 1:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Zelená !");
  1117. SetPlayerColor(playerid, COLOR_ZELENA);
  1118. }
  1119. case 2:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Oranžová !");
  1120. SetPlayerColor(playerid, COLOR_ORANZOVA);
  1121. }
  1122. case 3:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Fialová !");
  1123. SetPlayerColor(playerid, COLOR_FIALOVA);
  1124. }
  1125. case 4:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Hnidá !");
  1126. SetPlayerColor(playerid, COLOR_HNEDA);
  1127. }
  1128. case 5:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Eervená !");
  1129. SetPlayerColor(playerid, WHITE);
  1130. }
  1131. case 6:{SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Tvoje barva nicku je Eerná !");
  1132. SetPlayerColor(playerid, COLOR_CIERNA);
  1133. }}}
  1134. return 1;
  1135. }
  1136. //============================================ PUBLIC ON FILTER SCRIPT EXIT
  1137. public OnFilterScriptExit()
  1138. {
  1139. SCMTA(COLOR_BILA, "{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER {FFFFFF}sa vypol");
  1140. return 1;
  1141. }
  1142. //============================================ PUBLIC ON PLAYER SPAWN
  1143. public OnPlayerSpawn(playerid)
  1144. {
  1145. if(vip[playerid] ==0){
  1146. KillTimer(flasht1[playerid]);
  1147. KillTimer(flasht2[playerid]);
  1148. }
  1149. if(vip[playerid] > 0 && VIPZBRANE[playerid] == true && ZAKAZ){
  1150. GivePlayerWeapon(playerid, 9, 1);
  1151. GivePlayerWeapon(playerid, 30, 700);
  1152. GivePlayerWeapon(playerid, 27, 370);
  1153. GivePlayerWeapon(playerid, 24, 453);
  1154. SetPlayerArmour(playerid,100);
  1155. SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}: Jako VIP hráe po spawnu si obdržel pár zbraní a vestu !");
  1156. }
  1157. return 1;
  1158. }
  1159. //============================================ PUBLIC ON PLAYER DEATH
  1160. public OnPlayerDeath(playerid, killerid, reason)
  1161. {
  1162. if(vip[playerid] > 0 && VIPZBRANE[playerid]){
  1163. new Float:X,Float:Y,Float:Z;
  1164. GetPlayerPos(playerid, X,Y,Z);
  1165. CreateExplosion(X,Y,Z,4,10);
  1166. }
  1167. return 1;
  1168. }
  1169. //============================================ PUBLIC ON PLAYER DISCONNECT
  1170. public OnPlayerDisconnect(playerid, reason)
  1171. {
  1172. KillTimer(flasht1[playerid]);
  1173. KillTimer(flasht2[playerid]);
  1174.  
  1175. for(new i = 0; i < 15; i++){
  1176. DestroyVehicle(autacky[i][playerid]);
  1177. autacky[i][playerid] = 0;
  1178. }
  1179. return 1;
  1180. }
  1181. //============================================ PUBLIC ON PLAYER TEXT
  1182.  
  1183. public OnPlayerText(playerid, text[]){
  1184.  
  1185. if(vip[playerid] > 0){
  1186. new str[128];
  1187. format(str,128,"%s",ColouredText(text));
  1188. SendPlayerMessageToAll(playerid,str);
  1189. return 0;
  1190. }
  1191.  
  1192. return 1;
  1193. }
  1194.  
  1195. stock ColouredText(text[])
  1196. {
  1197. enum
  1198. colorEnum
  1199. {
  1200. colorName[16],
  1201. colorID[7]
  1202. }
  1203. ;
  1204. new
  1205. colorInfo[][colorEnum] =
  1206. {
  1207. { "BLUE", "1B1BE0" },
  1208. { "PINK", "E81CC9" },
  1209. { "YELLOW", "DBED15" },
  1210. { "LIGHTGREEN", "8CED15" },
  1211. { "LIGHTBLUE", "15D4ED" },
  1212. { "RED", "FF0000" },
  1213. { "GREY", "BABABA" },
  1214. { "WHITE", "FFFFFF" },
  1215. { "ORANGE", "DB881A" },
  1216. { "GREEN", "37DB45" },
  1217. { "CYAN", "00FFFF" },
  1218. { "MAGENTA", "FF00FF" },
  1219. { "GOLD", "FFd700" },
  1220. { "PURPLE", "7340DB" }
  1221. },
  1222.  
  1223. string[(128 + 32)],
  1224. tempString[16],
  1225. pos = -1,
  1226. x
  1227. ;
  1228. strmid(string, text, 0, 128, sizeof(string));
  1229.  
  1230. for( ; x != sizeof(colorInfo); ++x)
  1231. {
  1232. format(tempString, sizeof(tempString), "#%s", colorInfo[x][colorName]);
  1233.  
  1234. while((pos = strfind(string, tempString, true, (pos + 1))) != -1)
  1235. {
  1236. new
  1237. tempLen = strlen(tempString),
  1238. tempVar,
  1239. i = pos
  1240. ;
  1241. format(tempString, sizeof(tempString), "{%s}", colorInfo[x][colorID]);
  1242.  
  1243. if(tempLen < 8)
  1244. {
  1245. for(new j; j != (8 - tempLen); ++j)
  1246. {
  1247. strins(string, " ", pos);
  1248. }
  1249. }
  1250. for( ; ((string[i] != 0) && (tempVar != 8)) ; ++i, ++tempVar)
  1251. {
  1252. string[i] = tempString[tempVar];
  1253. }
  1254. if(tempLen > 8)
  1255. {
  1256. strdel(string, i, (i + (tempLen - 8)));
  1257. }
  1258. x = -1;
  1259. }
  1260. }
  1261. return string;
  1262. }
  1263.  
  1264. //============================================ PUBLIC ON PLAYER CONNECT
  1265. public OnPlayerConnect(playerid)
  1266. {
  1267. kokos[playerid] = false;
  1268. many[playerid] = false;
  1269. vload[playerid] = false;
  1270. vip[playerid] = false;
  1271. heal[playerid] = false;
  1272. zbrane[playerid] = false;
  1273. pozicia[playerid] = false;
  1274. AFK[playerid] = false;
  1275. afkspam[playerid] = false;
  1276. SCM(playerid, COLOR_BILA, "Server použivá VIP System {0000FF}v6 {FFFFFF}by {FF0000}QWER{FFFFFF} Viz {FF0000}/vcredits");
  1277. SCM(playerid, COLOR_BILA, "Viac informácii nájdete na {00FF00}/vhelp");
  1278. flashcar[playerid] = false;
  1279. flashnick[playerid] = false;
  1280. KillTimer(flasht1[playerid]);
  1281. KillTimer(flasht2[playerid]);
  1282. return 1;
  1283. }
  1284.  
  1285. public OnPlayerRequestSpawn(playerid)
  1286. {
  1287. new pname[MAX_PLAYER_NAME],file[128],string[128];
  1288. GetPlayerName(playerid, pname, sizeof(pname));
  1289. format(file,sizeof(file),"VIP/%s.ini",pname);
  1290. if(fexist(file)){
  1291. RemoveTime[playerid] = dini_Int(file,"Time");
  1292. if(RemoveTime[playerid] < gettime()){
  1293. if(!fexist(file)) return 0;
  1294. format(string,128,"{FF0000}[ VIP ]{FFFFFF} Tvoj VIP Account vypršal %s, Kúp si nový na %s",date(RemoveTime[playerid],1),WEB);
  1295. SCM(playerid,0xFFFFFF,string);
  1296. dini_Remove(file);
  1297. vip[playerid] = 0;
  1298. }else{
  1299. vip[playerid] = dini_Int(file,"VIP");
  1300. SCM(playerid,COLOR_GREEN, "Vitaj VIP Hráe");
  1301. }
  1302. }else{
  1303. vip[playerid] = 0;
  1304. }
  1305. if(vip[playerid] ==0){
  1306. KillTimer(flasht1[playerid]);
  1307. KillTimer(flasht2[playerid]);
  1308. }
  1309.  
  1310. return 1;
  1311. }
  1312. public Heal(playerid)
  1313. {
  1314. heal[playerid] = false;
  1315. SCM(playerid,COLOR_GREEN, "Eas vypršel, poíkaz /vheal jde znovu použit !");
  1316. return 1;
  1317. }
  1318. public Zbrane(playerid)
  1319. {
  1320. zbrane[playerid] = false;
  1321. SCM(playerid,COLOR_GREEN, "Eas vypršel, poíkaz /vzbrane jde znovu použit !");
  1322. return 1;
  1323. }
  1324. public Many(playerid)
  1325. {
  1326. many[playerid] = false;
  1327. SCM(playerid,COLOR_GREEN, "Eas vypršel, poíkaz /vmany jde znovu použit !");
  1328. return 1;
  1329. }
  1330.  
  1331. public vloadd(playerid)
  1332. {
  1333. vload[playerid] = false;
  1334. SCM(playerid,COLOR_GREEN, "Eas vypršel, poíkaz /vload jde znovu použit !");
  1335. return 1;
  1336. }
  1337. public Nitroo(playerid)
  1338. {
  1339. nnitro[playerid] = false;
  1340. SCM(playerid,COLOR_GREEN, "Eas vypršel, poíkaz /vnitro jde znovu použit !");
  1341. return 1;
  1342. }
  1343.  
  1344.  
  1345. public spam(playerid)
  1346. {
  1347. message[playerid] = false;
  1348. return 1;
  1349. }
  1350.  
  1351. //============================================ PUBLIC ON PLAYER COMMAND TEXT
  1352. public OnPlayerCommandText(playerid, cmdtext[])
  1353. {
  1354. dcmd(vip,3,cmdtext);
  1355. dcmd(vnitro,6,cmdtext);
  1356. dcmd(vme,3,cmdtext);
  1357. dcmd(vcar,4,cmdtext);
  1358. dcmd(vflip,5,cmdtext);
  1359. dcmd(vdcar,5,cmdtext);
  1360. dcmd(vheal,5,cmdtext);
  1361. dcmd(vspawn,6,cmdtext);
  1362. dcmd(vskin,5,cmdtext);
  1363. dcmd(vinvisible,10,cmdtext);
  1364. dcmd(vsave,5,cmdtext);
  1365. dcmd(vload,5,cmdtext);
  1366. dcmd(vgoto,5,cmdtext);
  1367. dcmd(vzbrane,7,cmdtext);
  1368. dcmd(vhydraulics,11,cmdtext);
  1369. dcmd(vflashcar,9,cmdtext);
  1370. dcmd(vflashnick,10,cmdtext);
  1371. dcmd(vrepair,7,cmdtext);
  1372. dcmd(vcolor,6,cmdtext);
  1373. dcmd(vcolors,7,cmdtext);
  1374. dcmd(vchatcolor,10,cmdtext);
  1375. dcmd(vglasses,8,cmdtext);
  1376. dcmd(vcaps,5,cmdtext);
  1377. dcmd(vbackcaps,9,cmdtext);
  1378. dcmd(vneon,5,cmdtext);
  1379. dcmd(vhelp,5,cmdtext);
  1380. dcmd(setvip,6,cmdtext);
  1381. dcmd(azbrane,7,cmdtext);
  1382. dcmd(vcredits,8,cmdtext);
  1383. dcmd(vmany,5,cmdtext);
  1384. return 0;
  1385. }
  1386. //================================== VREGISTER
  1387. dcmd_vchatcolor(playerid, params[]){
  1388. #pragma unused params
  1389. #if LEVELS == 0
  1390. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1391. #else
  1392. if(!IsVIP(playerid,1)) return true;
  1393. #endif
  1394. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} {E81CC9}Chceš {FFFFFF}písa? {FF00FF}v chate farebne {00FFFF}ako {00FF00}to {0000FF}vidíš {99FFCC}tu ?");
  1395. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} {FFFFFF}Tak do chatu napíš tieto existujúce farby:");
  1396. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} {E81CC9}#PINK {DBED15}#YELLOW {8CED15}#LIGHTGREEN {15D4ED}#LIGHTBLUE {FF0000}#RED {BABABA}#GREY {1B1BE0}#BLUE");
  1397. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} {DB881A}#ORANGE {37DB45}#GREEN {00FFFF}#CYAN {FF00FF}#MAGENTA {FFD700}#GOLD {7340DB}#PURPLE {FFFFFF}#WHITE");
  1398. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} Výsledný text by mal vyzera? '{FFFFFF}#REDAhojte #GREENUž som#WHITE tu{FF0000}'");
  1399. return 1;
  1400. }
  1401. dcmd_vinvisible(playerid, params[]){
  1402. #pragma unused params
  1403. #if LEVELS == 0
  1404. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1405. #else
  1406. if(!IsVIP(playerid,2)) return true;
  1407. #endif
  1408. SetPVarInt(playerid, "OldColor", GetPlayerColor(playerid));
  1409. SetPlayerColor(playerid,0xFFFFFF00);
  1410. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} Si neviditelný na radaru, za 2 minuty se staneš opit viditelným !");
  1411. SetTimerEx("VisiblePlayer",60000,false,"i",playerid);
  1412. return 1;
  1413. }
  1414.  
  1415. forward VisiblePlayer(playerid);
  1416. public VisiblePlayer(playerid){
  1417. if(vip[playerid] == 0) return 0;
  1418. SetPlayerColor(playerid, GetPVarInt(playerid, "OldColor"));
  1419. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} Poíkaz /vinvisible právi vypršel, nyní jsi viditelný na radaru !");
  1420. return 1;
  1421. }
  1422. dcmd_vflip(playerid, params[]){
  1423. #pragma unused params
  1424.  
  1425. #if LEVELS == 0
  1426. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1427. #else
  1428. if(!IsVIP(playerid,1)) return true;
  1429. #endif
  1430. new Float:z;
  1431. if(IsPlayerInAnyVehicle(playerid)){
  1432. GetVehicleZAngle(GetPlayerVehicleID(playerid),z);
  1433. SetVehicleZAngle(GetPlayerVehicleID(playerid),z);
  1434. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} Auto úspišni otoeené zpátky na kolesa !");
  1435. }else{
  1436. SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} Nejsi ve vozidle !");
  1437. }
  1438. return 1;
  1439. }
  1440.  
  1441. //================================== SET VIP
  1442. dcmd_setvip(playerid, params[])
  1443. {
  1444. new string[128];
  1445. if(!IsPlayerAdmin(playerid)) return SCM(playerid,WHITE ,"Pouze Hlavní Administrátor poihlášený poez Rcon muže nastavit VIP úeet !");
  1446. new ID,DEN,level;
  1447. if(!IsPlayerAdmin(playerid)) return SCM(playerid, 0xFFFFFFFF, "Neisi admin !");
  1448. if(sscanf(params, "iii", ID,level,DEN)) return SCM(playerid, 0xFFFFFFFF, "/setvip [playerid] [level] [den]");
  1449. if(!IsPlayerConnected(ID)) return SCM(playerid, 0xFFFFFFFF, "ID nieje online!");
  1450. #if LEVELS == 0
  1451. if(level < 0 || level > 1) return SCM(playerid, WHITE, "Zlý level !");
  1452. #else
  1453. if(level < 0 || level > 3) return SCM(playerid, WHITE, "Zlý level !");
  1454. #endif
  1455.  
  1456. new DATE = gettime()+mktime(0,0,0,DEN,0,0);
  1457.  
  1458. new file[128];
  1459. format(file,sizeof(file),"VIP/%s.ini",Jmeno(ID));
  1460. if(level > 0) {
  1461. if(fexist(file)) return SCM(playerid, WHITE, "Tento hráe už VIP level má !");
  1462. #if LEVELS == 0
  1463. format(string, sizeof(string), "Hlavný Administrátor %s nastavil hráeovy %s VIP úeet do %s !", Jmeno(playerid),Jmeno(ID),date(DATE,1));
  1464. #else
  1465. if(level == 1) format(string, 128, "Admin %s nastavil hráeovy %s VIP {CD7F32}BRONZE{FF0000} úeet do %s !",Jmeno(playerid),Jmeno(ID),date(DATE,1));
  1466. else if(level == 2) format(string, 128, "Admin %s nastavil hráeovy %s VIP {C0C0C0}SILVER{FF0000} úeet do %s !",Jmeno(playerid),Jmeno(ID),date(DATE,1));
  1467. else if(level == 3) format(string, 128, "Admin %s nastavil hráeovy %s VIP {FFD700}GOLD{FF0000} úeet do %s !",Jmeno(playerid),Jmeno(ID),date(DATE,1));
  1468. #endif
  1469. RemoveTime[playerid] = DATE;
  1470. dini_Create(file);
  1471. dini_IntSet(file,"Time",DATE);
  1472. dini_IntSet(file,"VIP",level);
  1473. SCMTA(0xFF0000AA, string);
  1474. }
  1475. else if(level == 0){
  1476. if(!fexist(file)) return SCM(playerid, WHITE, "Tento hráe nemá VIP level!");
  1477. format(string, sizeof(string), "Hlavný Administrátor %s zobral hráeovy %s VIP úeet !", Jmeno(playerid),Jmeno(ID));
  1478. dini_Remove(file);
  1479.  
  1480. SCMTA(0xFF0000AA, string);
  1481. }
  1482. vip[ID] = level;
  1483. return true;
  1484. }
  1485. //================================== VIP
  1486. dcmd_vcredits(playerid,params[]){
  1487. #pragma unused params
  1488. ShowPlayerDialog(playerid,DIALOG_NEON-1,0,"{FFFFFF}VIP Systém {FF0000}Credits","{0000FF}QWER{FFFFFF} = Tvorca\n{00FF00}Ryder{FFFFFF} = Farebný chat\n{00FF00}TheWroxx{FFFFFF} = Nápady & Farby\n{00FF00}hospoda96{FFFFFF} = Nápady\n{00FF00}ADO{FFFFFF} aka{00FF00} ED.E{FFFFFF} = Nápady & Bugy\nIakujem že ste sa rozhodli pre tento {FF0000}VIP {FFFFFF}Systém {00FF00}v6","Ok","");
  1489. }
  1490. dcmd_vip(playerid, params[]){
  1491. #pragma unused params
  1492. new string[128];
  1493. SCM(playerid,WHITE ,"{FF0000}[ VIP ]{FFFFFF} On-Line hráei...");
  1494. for(new i=0;i<=MAX_PLAYERS;i++)
  1495. {
  1496. if(IsPlayerConnected(i))
  1497. {
  1498. if(vip[i] > 0)
  1499. {
  1500. #if LEVELS == 0
  1501. format(string, 128, "[ VIP hráe ] %s ",Jmeno(i));
  1502. #else
  1503. if(vip[i] == 1) format(string, 128, "{FF0000}[ VIP hráe ]{FFFFFF} %s [{CD7F32}BRONZE{FFFFFF}]",Jmeno(i));
  1504. else if(vip[i] == 2) format(string, 128, "{FF0000}[ VIP hráe ]{FFFFFF} %s [{C0C0C0}SILVER{FFFFFF}]",Jmeno(i));
  1505. else if(vip[i] == 3) format(string, 128, "{FF0000}[ VIP hráe ]{FFFFFF} %s [{FFD700}GOLD{FFFFFF}]",Jmeno(i));
  1506. #endif
  1507. SCM(playerid,WHITE,string);
  1508. }
  1509. }
  1510. }
  1511. return 1;
  1512. }
  1513.  
  1514.  
  1515. dcmd_vneon(playerid,params[]){
  1516. #pragma unused params
  1517. #if LEVELS == 0
  1518. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1519. #else
  1520. if(!IsVIP(playerid,1)) return true;
  1521. #endif
  1522. if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Niesi vodie !");
  1523. if(!Nitro(GetPlayerVehicleID(playerid))) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Toto vozidlo nepodporuje neony !");
  1524. ShowPlayerDialog(playerid,DIALOG_NEON,2,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{0000FF}Blue\n{00FF00}Green\n{FFFF00}Yellow\n{FFFFFF}White\n{FF40FF}Pink\n{FF0000}Zmaza?","Prida?","Zruši?");
  1525. return true;
  1526. }
  1527.  
  1528. dcmd_vglasses(playerid,params[]){
  1529. #pragma unused params
  1530. #if LEVELS == 0
  1531. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1532. #else
  1533. if(!IsVIP(playerid,2)) return true;
  1534. #endif
  1535. ShowPlayerDialog(playerid,DIALOG_SUNGLASS,1,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{FFFFFF}Napíš ID okuliarov id je od {FF0000}1{FFFFFF}-{FF0000}33{FFFFFF} a zadaj \"{FF0000}0{FFFFFF}\" pre {FF0000}zrušenie {FFFFFF}okuliarov","Zobra?","Zruši?");
  1536. return true;
  1537. }
  1538.  
  1539. dcmd_vcaps(playerid,params[]){
  1540. #pragma unused params
  1541. #if LEVELS == 0
  1542. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1543. #else
  1544. if(!IsVIP(playerid,1)) return true;
  1545. #endif
  1546. ShowPlayerDialog(playerid,DIALOG_CAPS,1,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{FFFFFF}Napíš ID eiapky id je od {FF0000}1{FFFFFF}-{FF0000}9{FFFFFF} a zadaj \"{FF0000}0{FFFFFF}\" pre {FF0000}zrušenie {FFFFFF}eiapky","Zobra?","Zruši?");
  1547. return true;
  1548. }
  1549.  
  1550. dcmd_vbackcaps(playerid,params[]){
  1551. #pragma unused params
  1552. #if LEVELS == 0
  1553. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1554. #else
  1555. if(!IsVIP(playerid,3)) return true;
  1556. #endif
  1557. ShowPlayerDialog(playerid,DIALOG_BACKCAPS,1,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{FFFFFF}Napíš ID eiapky id je od {FF0000}1{FFFFFF}-{FF0000}5{FFFFFF} a zadaj \"{FF0000}0{FFFFFF}\" pre {FF0000}zrušenie {FFFFFF}eiapky","Zobra?","Zruši?");
  1558. return true;
  1559. }
  1560. /*
  1561. new Neon[MAX_PLAYERS][2] = {-1,...};
  1562. new Sunglass[MAX_PLAYERS] = {-1,...};
  1563. new Caps[MAX_PLAYERS] = {-1,...};
  1564. */
  1565. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  1566. if(dialogid == DIALOG_NEON && response){
  1567. switch(listitem){
  1568. case 0:{
  1569. if(Neon1[playerid] != -1 && Neon2[playerid] != -1) return SCM(playerid,WHITE,"Už máš jeden neon, zmaž ho !");
  1570. Neon1[playerid] = CreateObject(18648,0,0,0,0,0,0);
  1571. Neon2[playerid] = CreateObject(18648,0,0,0,0,0,0);
  1572. AttachObjectToVehicle(Neon1[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1573. AttachObjectToVehicle(Neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1574. SCM(playerid,WHITE,"Modrý neon pridaný !");
  1575. }
  1576. case 1:{
  1577. if(Neon1[playerid] != -1 && Neon2[playerid] != -1) return SCM(playerid,WHITE,"Už máš jeden neon, zmaž ho !");
  1578. Neon1[playerid] = CreateObject(18649,0,0,0,0,0,0);
  1579. Neon2[playerid] = CreateObject(18649,0,0,0,0,0,0);
  1580. AttachObjectToVehicle(Neon1[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1581. AttachObjectToVehicle(Neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1582. SCM(playerid,WHITE,"Zelený neon pridaný !");
  1583.  
  1584. }
  1585. case 2:{
  1586. if(Neon1[playerid] != -1 && Neon2[playerid] != -1) return SCM(playerid,WHITE,"Už máš jeden neon, zmaž ho !");
  1587. Neon1[playerid] = CreateObject(18650,0,0,0,0,0,0);
  1588. Neon2[playerid] = CreateObject(18650,0,0,0,0,0,0);
  1589. AttachObjectToVehicle(Neon1[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1590. AttachObjectToVehicle(Neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1591. SCM(playerid,WHITE,"Žltý neon pridaný !");
  1592.  
  1593. }
  1594. case 3:{
  1595. if(Neon1[playerid] != -1 && Neon2[playerid] != -1) return SCM(playerid,WHITE,"Už máš jeden neon, zmaž ho !");
  1596. Neon1[playerid] = CreateObject(18652,0,0,0,0,0,0);
  1597. Neon2[playerid] = CreateObject(18652,0,0,0,0,0,0);
  1598. AttachObjectToVehicle(Neon1[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1599. AttachObjectToVehicle(Neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1600. SCM(playerid,WHITE,"Biely neon pridaný !");
  1601.  
  1602. }
  1603. case 4:{
  1604. if(Neon1[playerid] != -1 && Neon2[playerid] != -1) return SCM(playerid,WHITE,"Už máš jeden neon, zmaž ho !");
  1605. Neon1[playerid] = CreateObject(18651,0,0,0,0,0,0);
  1606. Neon2[playerid] = CreateObject(18651,0,0,0,0,0,0);
  1607. AttachObjectToVehicle(Neon1[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1608. AttachObjectToVehicle(Neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  1609. SCM(playerid,WHITE,"Fialový neon pridaný !");
  1610.  
  1611. }
  1612. case 5:{
  1613. DestroyObject(Neon1[playerid]);
  1614. DestroyObject(Neon2[playerid]);
  1615. Neon1[playerid] = -1;
  1616. Neon2[playerid] = -1;
  1617. }
  1618. }
  1619. }
  1620.  
  1621. if(dialogid == DIALOG_SUNGLASS && response){
  1622. new glass = strval(inputtext);
  1623. if(Sunglass[playerid] != -1 && glass != 0) return SCM(playerid,WHITE,"Už máš okuliare ! Pre zrušenie daj ID 0 !");
  1624. if(glass < 0 || glass > 33) return SCM(playerid,WHITE,"ID okuliarov sú od 0 do 33 !");
  1625. if(glass == 0) {
  1626. RemovePlayerAttachedObject(playerid, Sunglass[playerid]);
  1627. Sunglass[playerid] = -1;
  1628. return SCM(playerid,WHITE,"Okuliare odobraté !");
  1629. }
  1630. if(glass > 30){
  1631. //19138
  1632. new skin = GetPlayerSkin(playerid);
  1633. Sunglass[playerid] = GetEmptySlot(playerid);
  1634. SetPlayerAttachedObject(playerid, Sunglass[playerid], 19137+(glass - 31), 2, GlassSkins[skin][0], GlassSkins[skin][1], GlassSkins[skin][2], GlassSkins[skin][3], GlassSkins[skin][4], GlassSkins[skin][5]);
  1635. SCM(playerid,WHITE,"Okuliare pridané !");
  1636. }else{
  1637. new skin = GetPlayerSkin(playerid);
  1638. Sunglass[playerid] = GetEmptySlot(playerid);
  1639. SetPlayerAttachedObject(playerid, Sunglass[playerid], 19005+glass, 2, GlassSkins[skin][0], GlassSkins[skin][1], GlassSkins[skin][2], GlassSkins[skin][3], GlassSkins[skin][4], GlassSkins[skin][5]);
  1640. SCM(playerid,WHITE,"Okuliare pridané !");
  1641. }
  1642. }
  1643.  
  1644. if(dialogid == DIALOG_CAPS && response){
  1645. new caps = strval(inputtext);
  1646. if(Caps[playerid] != -1 && caps != 0) return SCM(playerid,WHITE,"Už máš eiapku ! Pre zmazanie daj ID 0 !");
  1647. if(caps < 0 || caps > 9) return SCM(playerid,WHITE,"ID eiapiek sú od 0 do 9 !");
  1648. if(caps == 0) {
  1649. RemovePlayerAttachedObject(playerid, Caps[playerid]);
  1650. Caps[playerid] = -1;
  1651. return SCM(playerid,WHITE,"Eiapky odobrané !");
  1652. }
  1653. //19138
  1654. new skin = GetPlayerSkin(playerid);
  1655. Caps[playerid] = GetEmptySlot(playerid);
  1656. SetPlayerAttachedObject(playerid, Caps[playerid], 18925+caps, 2, CapsSkins[skin][0], CapsSkins[skin][1], CapsSkins[skin][2], CapsSkins[skin][3], CapsSkins[skin][4], CapsSkins[skin][5]);
  1657. SCM(playerid,WHITE,"Eiapky pridané !");
  1658. }
  1659.  
  1660. if(dialogid == DIALOG_BACKCAPS && response){
  1661. new backcaps = strval(inputtext);
  1662. if(Caps[playerid] != -1 && backcaps != 0) return SCM(playerid,WHITE,"Už máš eiapku ! Pre zmazanie daj ID 0 !");
  1663. if(backcaps < 0 || backcaps > 5) return SCM(playerid,WHITE,"ID eiapiek sú od 0 do 9 !");
  1664. if(backcaps == 0) {
  1665. RemovePlayerAttachedObject(playerid, Caps[playerid]);
  1666. Caps[playerid] = -1;
  1667. return SCM(playerid,WHITE,"Obrátené eiapky odobrané !");
  1668. }
  1669. //19138
  1670. new skin = GetPlayerSkin(playerid);
  1671. Caps[playerid] = GetEmptySlot(playerid);
  1672. SetPlayerAttachedObject(playerid, Caps[playerid], 18938+backcaps, 2, BackSkins[skin][0], BackSkins[skin][1], BackSkins[skin][2], BackSkins[skin][3], BackSkins[skin][4], BackSkins[skin][5]);
  1673. SCM(playerid,WHITE,"Obrátené eiapky pridané !");
  1674. }
  1675.  
  1676. return true;
  1677. }
  1678. //================================= VIP CAR/
  1679.  
  1680. dcmd_vcar(playerid, params[])
  1681. {
  1682. #if LEVELS == 0
  1683. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1684. #else
  1685. if(!IsVIP(playerid,1)) return true;
  1686. #endif
  1687. new ID = strval(params);
  1688. if(!strlen(params)) return SCM(playerid, WHITE, "Použi poíkazu /vcar id auta");
  1689. if( ID < 400 || ID > 611 ) return SCM(playerid, WHITE, "Rozmezí aut je 400 - 611 !");
  1690. #if ZAKAZANE_AUTA == 1
  1691. if(BadVehicles(ID)) return SCM(playerid, WHITE, "Toto auto bolo zakázané!");
  1692. #endif
  1693. if(autacky[14][playerid] != 0) return SCM(playerid, COLOR_RED, "Na serveru je moc vozidel, maximum sou (15)! musíš je nejprv vymazat poíkazem /vdcar !");
  1694. new Float:X,Float:Y,Float:Z,Float:SVK,s[50];
  1695. GetPlayerPos(playerid, X,Y,Z);
  1696. SCM(playerid,COLOR_BILA,"Auto úspišni vytvooeno !");
  1697. for(new i;i < 15;i++){
  1698. if(autacky[i][playerid] == 0){
  1699. autacky[i][playerid] = CreateVehicle(ID,X,Y,Z,SVK,-1,-1,6000);
  1700. format(s,50,"*** Todle vozidlo patoí VIP hráei ***",Jmeno(playerid));
  1701. vehicletext[playerid] = Create3DTextLabel(s, WHITE, 0.0, 0.0, 0.0, 50.0, 0, 1 );
  1702. Attach3DTextLabelToVehicle(vehicletext[playerid],autacky[i][playerid], 0.0, 0.0, 1.0);
  1703. break;
  1704. }else{
  1705. continue;
  1706. }}
  1707.  
  1708. return 1;
  1709. }
  1710. dcmd_vdcar(playerid, params[])
  1711. {
  1712.  
  1713. #pragma unused params
  1714. #if LEVELS == 0
  1715. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1716. #else
  1717. if(!IsVIP(playerid,1)) return true;
  1718. #endif
  1719. new string[128];
  1720. format(string, sizeof(string), "VIP Hráe %s si vymazal všechny vozidla !",Jmeno(playerid));
  1721. SCMTA(COLOR_RED, string);
  1722.  
  1723. for(new i = 0; i < 15; i++)
  1724. {
  1725. DestroyVehicle(autacky[i][playerid]);
  1726. autacky[i][playerid] = 0;
  1727. }
  1728. return 1;
  1729. }
  1730.  
  1731. dcmd_vgoto(playerid, params[])
  1732. {
  1733. #pragma unused params
  1734. #if LEVELS == 0
  1735. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1736. #else
  1737. IsVIP(playerid,3);
  1738. #endif
  1739. if(!strlen(params)) return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: /vgoto [ID] hráee !");
  1740. if(vgoto[playerid])return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Tento poíkaz mužeš použít jednou za 10 minut !");
  1741. new play = strval(params);
  1742. if(!IsPlayerConnected(play)) return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Hráe neni poipojen !");
  1743. new string2[128],Float:x,Float:y,Float:z,inter,auto = GetPlayerVehicleID(playerid);
  1744. inter = GetPlayerInterior(play);
  1745. GetPlayerPos(play, x, y, z);
  1746. if(IsPlayerInAnyVehicle(playerid)){
  1747. SetVehiclePos(auto, x, y, z+1);
  1748. }else{
  1749. SetPlayerPos(playerid, x, y, z+1);
  1750. SetPlayerInterior(playerid, inter);
  1751. }
  1752. format(string2, sizeof(string2), "{FF0000}[ VIP ]{FFFFFF}: Hráe % se k tobi teleportoval!",Jmeno(playerid));
  1753. SCM(play, COLOR_ZELENA, string2);
  1754. vgoto[playerid] = true;
  1755. SetTimerEx("vgotoo",600000,false,"i",playerid);
  1756. return 1;
  1757. }
  1758.  
  1759. dcmd_vcolor(playerid, params[])
  1760. {
  1761. #if LEVELS == 0
  1762. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1763. #else
  1764. if(!IsVIP(playerid,1)) return true;
  1765. #endif
  1766. new farba,farba2;
  1767. if(sscanf(params, "ii",farba,farba2)) SCM(playerid,WHITE,"{FF0000}[ VIP ]{FFFFFF} /vcolor [farba] [farba]");
  1768. if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_BILA, "Chceš si zmenit barvu riti? nie? tak nastup do auta !");
  1769. if(farba > 128 || farba < 0) return SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF} Špatné id barvy ! 1-127");
  1770. if(farba2 > 128 || farba2 < 0) return SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF} Špatné id barvy ! 1-127");
  1771. ChangeVehicleColor(GetPlayerVehicleID(playerid), farba, farba2);
  1772. SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF}Barva bola zmenena");
  1773. return 1;
  1774. }
  1775.  
  1776. //================================ VIP SAY
  1777. dcmd_vme(playerid, params[]){
  1778. #if LEVELS == 0
  1779. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1780. #else
  1781. if(!IsVIP(playerid,1)) return true;
  1782. #endif
  1783. if(!strlen(params)) return SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF} /vme TEXT pro psaní do VIP chatu !");
  1784. if(message[playerid]) return SCM(playerid,COLOR_YELLOW,"{FF0000}[ VIP ]{FFFFFF} Jedna zpráva za 5 sekund !");
  1785. message[playerid] = true;
  1786. SetTimerEx("spam",5000,0,"i",playerid);
  1787. new string[128],jmeno[24];
  1788. GetPlayerName(playerid, jmeno, 24);
  1789. format(string, 255, "{FF0000}[ VIP ]{FFFFFF}%s piše:{FFFFFF} %s",Jmeno(playerid) , params);
  1790. SCMTA(WHITE,string);
  1791.  
  1792.  
  1793. return true;
  1794. }
  1795. //================================ FARBY
  1796. dcmd_vcolors(playerid, params[])
  1797. {
  1798. #pragma unused params
  1799.  
  1800. #if LEVELS == 0
  1801. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1802. #else
  1803. if(!IsVIP(playerid,1)) return true;
  1804. #endif
  1805. ShowMenuForPlayer(Farby,playerid);
  1806. return 1;
  1807. }
  1808. //================================ HEAL
  1809. dcmd_vrepair(playerid,params[]){
  1810.  
  1811. #pragma unused params
  1812. #if LEVELS == 0
  1813. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1814. #else
  1815. if(!IsVIP(playerid,2)) return true;
  1816. #endif
  1817. if(IsPlayerInAnyVehicle(playerid)){
  1818. RepairVehicle(GetPlayerVehicleID(playerid));
  1819. SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
  1820. }
  1821. GameTextForPlayer(playerid,"~r~[VIP] ~w~Opravil sis kompletne vozidlo !",3000,5);
  1822. return 1;
  1823. }
  1824. dcmd_vheal(playerid, params[])
  1825. {
  1826. #pragma unused params
  1827.  
  1828. #if LEVELS == 0
  1829. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1830. #else
  1831. if(!IsVIP(playerid,1)) return true;
  1832. #endif
  1833. if(heal[playerid])return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Tento poíkaz mužeš použít jednou za 5 minut !");
  1834. SetTimerEx("Heal",180000,false,"i",playerid);
  1835. heal[playerid] = true;
  1836. SetPlayerHealth(playerid,100);
  1837. GameTextForPlayer(playerid,"~r~[VIP] ~w~Dostal si zivot na maximum !",3000,5);
  1838. return 1;
  1839. }
  1840. //================================ MANY
  1841. dcmd_vmany(playerid, params[])
  1842. {
  1843.  
  1844. #pragma unused params
  1845. #if LEVELS == 0
  1846. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1847. #else
  1848. if(!IsVIP(playerid,1)) return true;
  1849. #endif
  1850. if(many[playerid])return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Tento poíkaz mužeš použít jednou za 5 minut !");
  1851. SetTimerEx("Many",300000,false,"i",playerid);
  1852. many[playerid] = true;//300000
  1853. GivePlayerMoney(playerid, 50000);
  1854. GameTextForPlayer(playerid,"~r~[VIP] ~w~Dostal si castku 50 000 KC!",3000,5);
  1855. return 1;
  1856. }
  1857. //================================ ZBRANE
  1858. dcmd_vzbrane(playerid, params[])
  1859. {
  1860.  
  1861. #pragma unused params
  1862. #if LEVELS == 0
  1863. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1864. #else
  1865. if(!IsVIP(playerid,1)) return true;
  1866. #endif
  1867. if(zbrane[playerid])return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Tento poíkaz mužeš použít jednou za 3 minuty !");
  1868. SetTimerEx("Zbrane",150000,false,"i",playerid);
  1869. zbrane[playerid] = true;
  1870. GivePlayerWeapon(playerid, 9, 1);
  1871. GivePlayerWeapon(playerid, 30, 700);
  1872. GivePlayerWeapon(playerid, 27, 370);
  1873. GivePlayerWeapon(playerid, 24, 453);
  1874. GameTextForPlayer(playerid,"~r~[VIP] ~w~Dostal si sadu zbraní!",3000,5);
  1875. return 1;
  1876. }
  1877. //================================ SAVE
  1878. dcmd_vsave(playerid, params[])
  1879. {
  1880.  
  1881. #pragma unused params
  1882. #if LEVELS == 0
  1883. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1884. #else
  1885. if(!IsVIP(playerid,2)) return true;
  1886. #endif
  1887. GetPlayerPos(playerid, xx[playerid], yy[playerid], zz[playerid]);
  1888. SCM(playerid, COLOR_BILA, "{FF0000}[ VIP ]{FFFFFF}: Tvá pozice úspišni uložená !");
  1889. return 1;
  1890. }
  1891. //================================ LOAD
  1892. dcmd_vload(playerid, params[])
  1893. {
  1894.  
  1895. #pragma unused params
  1896. #if LEVELS == 0
  1897. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1898. #else
  1899. if(!IsVIP(playerid,2)) return true;
  1900. #endif
  1901. if(vload[playerid])return SCM(playerid, COLOR_RED, "{FF0000}[ VIP ]{FFFFFF}: Tento poíkaz mužeš použít jednou za 1 minutu !");
  1902. vload[playerid] = true;
  1903. if(IsPlayerInAnyVehicle(playerid)){
  1904. new auto = GetPlayerVehicleID(playerid);
  1905. SetVehiclePos(auto, xx[playerid], yy[playerid], zz[playerid]);
  1906. }else{
  1907. SetPlayerPos(playerid, xx[playerid], yy[playerid], zz[playerid]);
  1908. }
  1909. SCM(playerid, COLOR_BILA, "{FF0000}[ VIP ]{FFFFFF}: Tvá pozice úspišni nahrána!");
  1910. SetTimerEx("vloadd",60000,false,"i",playerid);
  1911. return 1;
  1912. }
  1913.  
  1914. //================================ SPAWN
  1915.  
  1916.  
  1917. dcmd_vspawn(playerid, params[]) {
  1918. #if LEVELS == 0
  1919. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1920. #else
  1921. if(!IsVIP(playerid,1)) return true;
  1922. #endif
  1923. if(!strlen(params)) return SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF} /vspawn [on/off] (on => zbrani po spawnu | off => nic )");
  1924. if(strcmp(params, "on", true) == 0)
  1925. {
  1926. new string[128];
  1927. VIPZBRANE[playerid] = false;
  1928. format(string, sizeof(string), "{FF0000}[ VIP ]{FFFFFF} Hráe %s zapnul zbrani + vestu po spawnu !", Jmeno(playerid));//sprava
  1929. SCM(playerid,COLOR_RED, "{FF0000}[ VIP ]{FFFFFF} zapnul si zbrani + vestu po spawnu !");
  1930. //SCMToAdmins(COLOR_RED, string);
  1931. return 1;
  1932. }
  1933. if(strcmp(params, "off", true) == 0)
  1934. {
  1935. new str[100];
  1936. VIPZBRANE[playerid] = true;
  1937. format(str, sizeof(str), "{FF0000}[ VIP ]{FFFFFF} Hráe %s vypnul zbrani + vestu po spawnu !", Jmeno(playerid));//sprava
  1938. SCM(playerid,COLOR_RED, "{FF0000}[ VIP ]{FFFFFF} Vypnul si zbrani + vestu po spawnu !");
  1939. // SCMToAdmins(COLOR_RED, str);
  1940. return 1;
  1941. }
  1942. return 1;
  1943. }
  1944. //================================ ZBRANE
  1945. dcmd_azbrane(playerid, params[]) {
  1946. if(!IsPlayerAdmin(playerid)) return SCM(playerid,WHITE ,"Musíš být poihlášen za Rcon !");
  1947. if(!strlen(params)) return SCM(playerid, WHITE, "{FF0000}[ VIP ]{FFFFFF} /azbrane [on/off] (on => povolí | off => zakáže )");
  1948. if(strcmp(params, "on", true) == 0)
  1949. {
  1950. new string[128];
  1951. format(string, sizeof(string), "{FF0000}[ VIP ]{FFFFFF} Hlavní Administrátor %s povolil zbrani + vestu po spawnu !", Jmeno(playerid));
  1952. SCMTA(COLOR_RED, string);
  1953. ZAKAZ = true;
  1954. return 1;
  1955. }
  1956. if(strcmp(params, "off", true) == 0)
  1957. {
  1958. new string[100];
  1959. ZAKAZ = false;
  1960. format(string, sizeof(string), "{FF0000}[ VIP ]{FFFFFF} Hlavní Administrátor %s zakázal zbrani + vestu po spawnu !", Jmeno(playerid));//sprava
  1961. SCMTA(COLOR_RED, string);
  1962. return 1;
  1963. }
  1964. return 1;
  1965. }
  1966. //================================ NITRO
  1967. dcmd_vhydraulics(playerid, params[])
  1968. {
  1969. #pragma unused params
  1970. #if LEVELS == 0
  1971. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1972. #else
  1973. if(!IsVIP(playerid,1)) return true;
  1974. #endif
  1975. if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Nejsi ve vozidle !");
  1976. if(!Nitro(GetPlayerVehicleID(playerid))) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Toto vozidlo nepodporuje Hydrauliku !");
  1977. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  1978. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Do vozidla byla poidána Hydraulika !");
  1979. return 1;
  1980. }
  1981. dcmd_vnitro(playerid, params[])
  1982. {
  1983. #pragma unused params
  1984. #if LEVELS == 0
  1985. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  1986. #else
  1987. if(!IsVIP(playerid,1)) return true;
  1988. #endif
  1989. if(nnitro[playerid]) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Pouze 1x za 2 minuty !");
  1990. if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Nejsi ve vozidle !");
  1991. if(!Nitro(GetPlayerVehicleID(playerid))) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Toto vozidlo nepodporuje Nitro !");
  1992. nnitro[playerid] = true;
  1993. AddVehicleComponent(GetPlayerVehicleID(playerid), 1009);
  1994. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Do vozidla bylo poidáno Nitro !");
  1995. SetTimerEx("Nitroo",120000,false,"i",playerid);
  1996.  
  1997.  
  1998. return 1;
  1999. }
  2000. //================================ VFLASH CAR
  2001. dcmd_vflashcar(playerid, params[])
  2002. {
  2003. #pragma unused params
  2004. #if LEVELS == 0
  2005. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  2006. #else
  2007. if(!IsVIP(playerid,2)) return true;
  2008. #endif
  2009. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nejsi vlastníkem VIP úetu !");
  2010. if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Nejsi ve vozidle !");
  2011. if(!flashcar[playerid]){
  2012. flasht1[playerid] = SetTimer("FlashTimer1",1500,true);
  2013. flashcar[playerid] = true;
  2014. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Od této chvíle se ti bude každou sekundu minit barva vozidla !");
  2015. }else{
  2016. flashcar[playerid] = false;
  2017. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Vypnul si zminu barvy vozidla !");
  2018. }
  2019. return 1;
  2020. }
  2021. //================================ VFLASH NICK
  2022. dcmd_vflashnick(playerid, params[])
  2023. {
  2024. #pragma unused params
  2025. #if LEVELS == 0
  2026. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  2027. #else
  2028. if(!IsVIP(playerid,2)) return true;
  2029. #endif
  2030. if(!flashnick[playerid]){
  2031. flasht2[playerid] = SetTimer("FlashTimer2",1500,true);
  2032. flashnick[playerid] = true;
  2033. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Od této chvíle se ti bude každou sekundu minit barva nicku !");
  2034. }else{
  2035. flashnick[playerid] = false;
  2036. SCM(playerid, WHITE,"{FF0000}[ VIP ]{FFFFFF} Vypnul si zminu barvy nicku !");
  2037. }
  2038. return 1;
  2039. }
  2040. //================================ SKIN
  2041. dcmd_vskin(playerid, params[])
  2042. {
  2043. #if LEVELS == 0
  2044. if(vip[playerid] == 0) return SCM(playerid, WHITE,"Nevlastníš VIP úeet!");
  2045. #else
  2046. if(!IsVIP(playerid,1)) return true;
  2047. #endif
  2048. new string[100];
  2049. format(string, sizeof(string), "{FF0000}[ VIP ]{FFFFFF} Zminil si si skin na %d", strval(params));
  2050. SCM(playerid, WHITE,string);
  2051. SetPlayerSkin(playerid,strval(params));
  2052. return 1;
  2053. }
  2054.  
  2055. dcmd_vhelp(playerid, params[])
  2056. {
  2057. #pragma unused params
  2058. #if LEVELS == 0
  2059. ShowPlayerDialog(playerid,90,DIALOG_STYLE_MSGBOX,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{FFFFFF}/vip\t\t\t/vnitro\t\t\t/vme\n/vcar\t\t\t/vflip\t\t\t/vdcar\n/vheal\t\t\t/vspawn\t\t/vskin\n/vinvisible\t\t/vsave\t\t\t/vload\n\t\t\t/vzbrane\t\t/vhydraulics\n/vflashcar\t\t/vflashnick\t\t/vrepair\n/vcolor\t\t\t/vcolors\t\t/vchatcolor\n/vglasses\t\t/vcaps\t\t/backcaps\n/vneon","OK","Zavrit");
  2060. #else
  2061. /*
  2062. if(level == 1) format(str,7,"{CD7F32}BRONZE{FFFFFF}");
  2063. else if(level == 2) format(str,7,"{C0C0C0}SILVER{FFFFFF}");
  2064. else if(level == 3) format(str,7,"{FFd700AA}GOLD{FFFFFF}");
  2065. */
  2066. ShowPlayerDialog(playerid,90,DIALOG_STYLE_MSGBOX,"{FFFFFF}VIP Systém {00ff00}v6 {FFFFFF}by {0000FF}QWER","{CD7F32}BRONZE\t\t{C0C0C0}SILVER\t\t\t{FFD700}GOLD\n{FFFFFF}/vskin\t\t\t/vflashnick\t\t/vbackcaps\n/vnitro\t\t\t/vflashcar\t\t\n/vhydraulics\t\t/vsave\n/vzbrane\t\t/vload\n/vmany\t\t\t/vrepair\n/vheal\t\t\t/vglasses\n/vcolors\t\t/vinvisible\n/vdcar\n/vdcar\n/vcaps\n/vneon\n/vflip\n/vchatcolor\t\t\t\t\t{FF0000}© {FFFFFF}by{0000FF} QWER","OK","Zavrit");
  2067. // /vsave = minus /vinvisible = minus /vglasses = plus
  2068. // BRONZE vskin vnitro vhydraulics vzbrane vmany vheal vcolors vdcar vcar vcaps vneon vflip vchatcolor
  2069. // SILVER vflashnick vflashcar vsave vload vrepair vglasses vinvisible
  2070. // GOLD vgoto vbackcaps
  2071. #endif
  2072. return 1;
  2073. }
  2074. //=================================================== ADMIN PRIKAZY ================================================== //
  2075. #if LEVELS == 1
  2076. stock IsVIP(playerid,level){
  2077. if(vip[playerid] < level){
  2078. if(level == 1) SCM(playerid, WHITE,"Na použitie tohto príkazu potrebuješ VIP \"{CD7F32}BRONZE{FFFFFF}\"" );
  2079. else if(level == 2) SCM(playerid, WHITE, "Na použitie tohto príkazu potrebuješ VIP \"{C0C0C0}SILVER{FFFFFF}\"" );
  2080. else if(level == 3) SCM(playerid, WHITE,"Na použitie tohto príkazu potrebuješ VIP \"{FFD700}GOLD{FFFFFF}\"");
  2081. return false;
  2082. }else{
  2083. return true;
  2084. }
  2085. }
  2086.  
  2087. #endif
  2088. stock BadVehicles(id){
  2089. if(id == 425 || id == 430 || id == 432 || id == 447 || id == 464 || id == 476 || id == 520 || id == 601) return true;
  2090. return false;
  2091. }
  2092.  
  2093.  
  2094. GetEmptySlot(playerid)
  2095. {
  2096. for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; ++i)
  2097. {
  2098. if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
  2099. {
  2100. return i;
  2101. }
  2102. }
  2103. return -1;
  2104. }
  2105.  
  2106. public FlashTimer1(playerid) {
  2107. for(new i=0; i<GetMaxPlayers(); i++)
  2108. {
  2109. if(IsPlayerConnected(i)){
  2110. if(IsPlayerInAnyVehicle(i)){
  2111. if(flashcar[i]){
  2112. ChangeVehicleColor(GetPlayerVehicleID(i), random(126), random(126));
  2113. }else{
  2114. KillTimer(flasht1[playerid]);
  2115. }}}}
  2116. return true;
  2117. }
  2118.  
  2119. public FlashTimer2(playerid) {
  2120. for(new i=0; i<GetMaxPlayers(); i++)
  2121. {
  2122. if(IsPlayerConnected(i))
  2123. {
  2124.  
  2125. if(flashnick[i])
  2126. {
  2127. switch (random(25)){
  2128. case 0:SetPlayerColor(i, 0xFF0000FF);
  2129. case 1:SetPlayerColor(i, 0x33AA33AA);
  2130. case 2:SetPlayerColor(i, 0x0000FFFF);
  2131. case 3:SetPlayerColor(i, 0xFFFF00FF);
  2132. case 4:SetPlayerColor(i, 0x000000FF);
  2133. case 5:SetPlayerColor(i, 0xFFFFFFFF);
  2134. case 6:SetPlayerColor(i, COLOR_SVMODRA);
  2135. case 7:SetPlayerColor(i, COLOR_DARKGREEN);
  2136. case 8:SetPlayerColor(i, COLOR_CYAN);
  2137. case 9:SetPlayerColor(i, COLOR_SEDA);
  2138. case 10:SetPlayerColor(i, COLOR_RUZOVA);
  2139. case 11:SetPlayerColor(i,COLOR_FIALOVA);
  2140. case 12:SetPlayerColor(i, COLOR_CERVENA);
  2141. case 13:SetPlayerColor(i, COLOR_ORANZOVA);
  2142. case 14:SetPlayerColor(i, COLOR_DARKORANGE);
  2143. case 15:SetPlayerColor(i, COLOR_HNEDA);
  2144. case 16:SetPlayerColor(i, COLOR_HNEDA2);
  2145. case 17:SetPlayerColor(i, COLOR_CYAN);
  2146. case 18:SetPlayerColor(i, COLOR_MODRA);
  2147. case 19:SetPlayerColor(i, COLOR_MODRA2);
  2148. case 20:SetPlayerColor(i, COLOR_MODRA3);
  2149. case 21:SetPlayerColor(i, COLOR_LIGHTBLUE);
  2150. case 22:SetPlayerColor(i, COLOR_VIOLET);
  2151. case 23:SetPlayerColor(i, COLOR_DARKRED);
  2152. case 24:SetPlayerColor(i, COLOR_RUZOVA);
  2153. case 25:SetPlayerColor(i, WHITE);
  2154.  
  2155. }}}}
  2156. if(!flashnick[playerid]) return KillTimer(flasht2[playerid]);
  2157. return true;
  2158. }
  2159.  
  2160. Nitro(vehicleid)
  2161. {
  2162. new nos = GetVehicleModel(vehicleid);
  2163. switch(nos) {
  2164. case 444:
  2165. return 0;
  2166. case 581:
  2167. return 0;
  2168. case 586:
  2169. return 0;
  2170. case 481:
  2171. return 0;
  2172. case 509:
  2173. return 0;
  2174. case 446:
  2175. return 0;
  2176. case 556:
  2177. return 0;
  2178. case 443:
  2179. return 0;
  2180. case 452:
  2181. return 0;
  2182. case 453:
  2183. return 0;
  2184. case 454:
  2185. return 0;
  2186. case 472:
  2187. return 0;
  2188. case 473:
  2189. return 0;
  2190. case 484:
  2191. return 0;
  2192. case 493:
  2193. return 0;
  2194. case 595:
  2195. return 0;
  2196. case 462:
  2197. return 0;
  2198. case 463:
  2199. return 0;
  2200. case 468:
  2201. return 0;
  2202. case 521:
  2203. return 0;
  2204. case 522:
  2205. return 0;
  2206. case 417:
  2207. return 0;
  2208. case 425:
  2209. return 0;
  2210. case 447:
  2211. return 0;
  2212. case 487:
  2213. return 0;
  2214. case 488:
  2215. return 0;
  2216. case 497:
  2217. return 0;
  2218. case 501:
  2219. return 0;
  2220. case 548:
  2221. return 0;
  2222. case 563:
  2223. return 0;
  2224. case 406:
  2225. return 0;
  2226. case 520:
  2227. return 0;
  2228. case 539:
  2229. return 0;
  2230. case 553:
  2231. return 0;
  2232. case 557:
  2233. return 0;
  2234. case 573:
  2235. return 0;
  2236. case 460:
  2237. return 0;
  2238. case 593:
  2239. return 0;
  2240. case 464:
  2241. return 0;
  2242. case 476:
  2243. return 0;
  2244. case 511:
  2245. return 0;
  2246. case 512:
  2247. return 0;
  2248. case 577:
  2249. return 0;
  2250. case 592:
  2251. return 0;
  2252. case 471:
  2253. return 0;
  2254. case 448:
  2255. return 0;
  2256. case 461:
  2257. return 0;
  2258. case 523:
  2259. return 0;
  2260. case 510:
  2261. return 0;
  2262. case 430:
  2263. return 0;
  2264. case 465:
  2265. return 0;
  2266. case 469:
  2267. return 0;
  2268. case 513:
  2269. return 0;
  2270. case 519:
  2271. return 0;
  2272. }
  2273. return 1;
  2274. }
  2275.  
  2276.  
  2277.  
  2278. stock date( timestamp, _form=0 )
  2279. {
  2280. /*
  2281. ~ convert a Timestamp to a Date.
  2282. ~ 10.07.2009
  2283.  
  2284. date( 1247182451 ) will print >> 09.07.2009-23:34:11
  2285. date( 1247182451, 1) will print >> 09/07/2009, 23:34:11
  2286. date( 1247182451, 2) will print >> July 09, 2009, 23:34:11
  2287. date( 1247182451, 3) will print >> 9 Jul 2009, 23:34
  2288. */
  2289. new year=1970, day=0, month=0, hour=0, mins=0, sec=0;
  2290.  
  2291. new days_of_month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
  2292. new names_of_month[12][10] = {"Januar","Februar","Marec","April","Maj","Jun","Jul","August","September","Oktober","November","December"};
  2293. new returnstring[32];
  2294.  
  2295. while(timestamp>31622400){
  2296. timestamp -= 31536000;
  2297. if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) timestamp -= 86400;
  2298. year++;
  2299. }
  2300.  
  2301. if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) )
  2302. days_of_month[1] = 29;
  2303. else
  2304. days_of_month[1] = 28;
  2305.  
  2306.  
  2307. while(timestamp>86400){
  2308. timestamp -= 86400, day++;
  2309. if(day==days_of_month[month]) day=0, month++;
  2310. }
  2311.  
  2312. while(timestamp>60){
  2313. timestamp -= 60, mins++;
  2314. if( mins == 60) mins=0, hour++;
  2315. }
  2316.  
  2317. sec=timestamp;
  2318.  
  2319. switch( _form ){
  2320. case 1: format(returnstring, 31, "%02d/%02d/%d %02d:%02d:%02d", day+1, month+1, year, hour, mins, sec);
  2321. case 2: format(returnstring, 31, "%s %02d, %d, %02d:%02d:%02d", names_of_month[month],day+1,year, hour, mins, sec);
  2322. case 3: format(returnstring, 31, "%d %c%c%c %d, %02d:%02d", day+1,names_of_month[month][0],names_of_month[month][1],names_of_month[month][2], year,hour,mins);
  2323.  
  2324. default: format(returnstring, 31, "%02d.%02d.%d %02d:%02d:%02d", day+1, month+1, year, hour, mins, sec);
  2325. }
  2326.  
  2327. return returnstring;
  2328. }
  2329.  
  2330.  
  2331. stock sscanf(string[], format[], {Float,_}:...) // by Y_less
  2332. {
  2333. #if defined isnull
  2334. if (isnull(string))
  2335. #else
  2336. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  2337. #endif
  2338. {
  2339. return format[0];
  2340. }
  2341. #pragma tabsize 4
  2342. new
  2343. formatPos = 0,
  2344. stringPos = 0,
  2345. paramPos = 2,
  2346. paramCount = numargs(),
  2347. delim = ' ';
  2348. while (string[stringPos] && string[stringPos] <= ' ')
  2349. {
  2350. stringPos++;
  2351. }
  2352. while (paramPos < paramCount && string[stringPos])
  2353. {
  2354. switch (format[formatPos++])
  2355. {
  2356. case '\0':
  2357. {
  2358. return 0;
  2359. }
  2360. case 'i', 'd':
  2361. {
  2362. new
  2363. neg = 1,
  2364. num = 0,
  2365. ch = string[stringPos];
  2366. if (ch == '-')
  2367. {
  2368. neg = -1;
  2369. ch = string[++stringPos];
  2370. }
  2371. do
  2372. {
  2373. stringPos++;
  2374. if ('0' <= ch <= '9')
  2375. {
  2376. num = (num * 10) + (ch - '0');
  2377. }
  2378. else
  2379. {
  2380. return -1;
  2381. }
  2382. }
  2383. while ((ch = string[stringPos]) > ' ' && ch != delim);
  2384. setarg(paramPos, 0, num * neg);
  2385. }
  2386. case 'h', 'x':
  2387. {
  2388. new
  2389. num = 0,
  2390. ch = string[stringPos];
  2391. do
  2392. {
  2393. stringPos++;
  2394. switch (ch)
  2395. {
  2396. case 'x', 'X':
  2397. {
  2398. num = 0;
  2399. continue;
  2400. }
  2401. case '0' .. '9':
  2402. {
  2403. num = (num << 4) | (ch - '0');
  2404. }
  2405. case 'a' .. 'f':
  2406. {
  2407. num = (num << 4) | (ch - ('a' - 10));
  2408. }
  2409. case 'A' .. 'F':
  2410. {
  2411. num = (num << 4) | (ch - ('A' - 10));
  2412. }
  2413. default:
  2414. {
  2415. return -1;
  2416. }
  2417. }
  2418. }
  2419. while ((ch = string[stringPos]) > ' ' && ch != delim);
  2420. setarg(paramPos, 0, num);
  2421. }
  2422. case 'c':
  2423. {
  2424. setarg(paramPos, 0, string[stringPos++]);
  2425. }
  2426. case 'f':
  2427. {
  2428.  
  2429. new changestr[16], changepos = 0, strpos = stringPos;
  2430. while(changepos < 16 && string[strpos] && string[strpos] != delim)
  2431. {
  2432. changestr[changepos++] = string[strpos++];
  2433. }
  2434. changestr[changepos] = '\0';
  2435. setarg(paramPos,0,_:floatstr(changestr));
  2436. }
  2437. case 'p':
  2438. {
  2439. delim = format[formatPos++];
  2440. continue;
  2441. }
  2442. case '\'':
  2443. {
  2444. new
  2445. end = formatPos - 1,
  2446. ch;
  2447. while ((ch = format[++end]) && ch != '\'') {}
  2448. if (!ch)
  2449. {
  2450. return -1;
  2451. }
  2452. format[end] = '\0';
  2453. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  2454. {
  2455. if (format[end + 1])
  2456. {
  2457. return -1;
  2458. }
  2459. return 0;
  2460. }
  2461. format[end] = '\'';
  2462. stringPos = ch + (end - formatPos);
  2463. formatPos = end + 1;
  2464. }
  2465. case 'u':
  2466. {
  2467. new
  2468. end = stringPos - 1,
  2469. id = 0,
  2470. bool:num = true,
  2471. ch;
  2472. while ((ch = string[++end]) && ch != delim)
  2473. {
  2474. if (num)
  2475. {
  2476. if ('0' <= ch <= '9')
  2477. {
  2478. id = (id * 10) + (ch - '0');
  2479. }
  2480. else
  2481. {
  2482. num = false;
  2483. }
  2484. }
  2485. }
  2486. if (num && IsPlayerConnected(id))
  2487. {
  2488. setarg(paramPos, 0, id);
  2489. }
  2490. else
  2491. {
  2492. #if !defined foreach
  2493. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  2494. #define __SSCANF_FOREACH__
  2495. #endif
  2496. string[end] = '\0';
  2497. num = false;
  2498. new
  2499. name[MAX_PLAYER_NAME];
  2500. id = end - stringPos;
  2501. foreach (Player, playerid)
  2502. {
  2503. GetPlayerName(playerid, name, sizeof (name));
  2504. if (!strcmp(name, string[stringPos], true, id))
  2505. {
  2506. setarg(paramPos, 0, playerid);
  2507. num = true;
  2508. break;
  2509. }
  2510. }
  2511. if (!num)
  2512. {
  2513. setarg(paramPos, 0, INVALID_PLAYER_ID);
  2514. }
  2515. string[end] = ch;
  2516. #if defined __SSCANF_FOREACH__
  2517. #undef foreach
  2518. #undef __SSCANF_FOREACH__
  2519. #endif
  2520. }
  2521. stringPos = end;
  2522. }
  2523. case 's', 'z':
  2524. {
  2525. new
  2526. i = 0,
  2527. ch;
  2528. if (format[formatPos])
  2529. {
  2530. while ((ch = string[stringPos++]) && ch != delim)
  2531. {
  2532. setarg(paramPos, i++, ch);
  2533. }
  2534. if (!i)
  2535. {
  2536. return -1;
  2537. }
  2538. }
  2539. else
  2540. {
  2541. while ((ch = string[stringPos++]))
  2542. {
  2543. setarg(paramPos, i++, ch);
  2544. }
  2545. }
  2546. stringPos--;
  2547. setarg(paramPos, i, '\0');
  2548. }
  2549. default:
  2550. {
  2551. continue;
  2552. }
  2553. }
  2554. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  2555. {
  2556. stringPos++;
  2557. }
  2558. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  2559. {
  2560. stringPos++;
  2561. }
  2562. paramPos++;
  2563. }
  2564. do
  2565. {
  2566. if ((delim = format[formatPos++]) > ' ')
  2567. {
  2568. if (delim == '\'')
  2569. {
  2570. while ((delim = format[formatPos++]) && delim != '\'') {}
  2571. }
  2572. else if (delim != 'z')
  2573. {
  2574. return delim;
  2575. }
  2576. }
  2577. }
  2578. while (delim > ' ');
  2579. return 0;
  2580. }
  2581.  
  2582.  
  2583. stock dini_Exists(filename[]) {
  2584. if (fexist(filename)) return true;
  2585. return false;
  2586. }
  2587.  
  2588. stock dini_Remove(filename[]) {
  2589. if (!fexist(filename)) return false;
  2590. fremove(filename);
  2591. return true;
  2592. }
  2593.  
  2594. stock dini_Create(filename[]) {
  2595. new File:fhnd;
  2596. if (fexist(filename)) return false;
  2597. fhnd=fopen(filename,io_write);
  2598. fclose(fhnd);
  2599. return true;
  2600. }
  2601.  
  2602. stock dini_PRIVATE_ExtractKey(line[]) {
  2603. new tmp[MAX_STRING];
  2604. tmp[0]=0;
  2605. if (strfind(line,"=",true)==-1) return tmp;
  2606. set(tmp,strlower(ret_memcpy(line,0,strfind(line,"=",true))));
  2607. return tmp;
  2608. }
  2609.  
  2610. stock dini_PRIVATE_ExtractValue(line[]) {
  2611. new tmp[MAX_STRING];
  2612. tmp[0]=0;
  2613. if (strfind(line,"=",true)==-1) {
  2614. return tmp;
  2615. }
  2616. set(tmp,ret_memcpy(line,strfind(line,"=",true)+1,strlen(line)));
  2617. return tmp;
  2618. }
  2619.  
  2620. stock dini_Set(filename[],key[],value[]) {
  2621. new File:fohnd, File:fwhnd;
  2622. new bool:wasset=false;
  2623. new tmpres[MAX_STRING];
  2624. if (key[0]==0) return false; /* If we have no sign in key, it can't be set*/
  2625. format(tmpres,sizeof(tmpres),"%s.part",filename);
  2626. fohnd=fopen(filename,io_read);
  2627. if (!fohnd) return false;
  2628. fremove(tmpres);
  2629. fwhnd=fopen(tmpres,io_write);
  2630. // if (!fwhnd) return false;
  2631. while (fread(fohnd,tmpres)) {
  2632. StripNewLine(tmpres);
  2633. if ((!wasset)&&(equal(dini_PRIVATE_ExtractKey(tmpres),key,true))) {
  2634. /* We've got what needs to be replaced! */
  2635. format(tmpres,sizeof(tmpres),"%s=%s",key,value);
  2636. wasset=true;
  2637. }
  2638. fwrite(fwhnd,tmpres);
  2639. fwrite(fwhnd,"\r\n");
  2640. }
  2641.  
  2642. if (!wasset) {
  2643. format(tmpres,sizeof(tmpres),"%s=%s",key,value);
  2644. fwrite(fwhnd,tmpres);
  2645. fwrite(fwhnd,"\r\n");
  2646. }
  2647.  
  2648. fclose(fohnd);
  2649. fclose(fwhnd);
  2650.  
  2651. format(tmpres,sizeof(tmpres),"%s.part",filename);
  2652. if (fcopytextfile(tmpres,filename)) {
  2653. return fremove(tmpres);
  2654. }
  2655. return false;
  2656. }
  2657.  
  2658.  
  2659. stock dini_IntSet(filename[],key[],value) {
  2660. new valuestring[MAX_STRING];
  2661. format(valuestring,sizeof(valuestring),"%d",value);
  2662. return dini_Set(filename,key,valuestring);
  2663. }
  2664.  
  2665. stock dini_Int(filename[],key[]) {
  2666. return strval(dini_Get(filename,key));
  2667. }
  2668.  
  2669. stock dini_FloatSet(filename[],key[],Float:value) {
  2670. new valuestring[MAX_STRING];
  2671. format(valuestring,sizeof(valuestring),"%f",value);
  2672. return dini_Set(filename,key,valuestring);
  2673. }
  2674.  
  2675. stock Float:dini_Float(filename[],key[]) {
  2676. return floatstr(dini_Get(filename,key));
  2677. }
  2678.  
  2679. stock dini_Bool(filename[],key[]) {
  2680. return strval(dini_Get(filename,key));
  2681. }
  2682.  
  2683. stock dini_BoolSet(filename[],key[],value) {
  2684. new valuestring[MAX_STRING];
  2685. format(valuestring,sizeof(valuestring),"%d",value);
  2686. return dini_Set(filename,key,valuestring);
  2687. }
  2688.  
  2689. stock dini_Unset(filename[],key[]) {
  2690. new File:fohnd, File:fwhnd;
  2691. new tmpres[MAX_STRING];
  2692. format(tmpres,sizeof(tmpres),"%s.part",filename);
  2693. fohnd=fopen(filename,io_read);
  2694. if (!fohnd) return false;
  2695. fremove(tmpres);
  2696. fwhnd=fopen(tmpres,io_write);
  2697. // if (!fwhnd) return false;
  2698. while (fread(fohnd,tmpres)) {
  2699. StripNewLine(tmpres);
  2700. if (equal(dini_PRIVATE_ExtractKey(tmpres),key,true)) {
  2701. /* We've got what needs to be removed! */
  2702. } else {
  2703. format(tmpres,sizeof(tmpres),"%s",tmpres);
  2704. fwrite(fwhnd,tmpres);
  2705. fwrite(fwhnd,"\r\n");
  2706. }
  2707. }
  2708.  
  2709. fclose(fohnd);
  2710. fclose(fwhnd);
  2711.  
  2712. format(tmpres,sizeof(tmpres),"%s.part",filename);
  2713. if (fcopytextfile(tmpres,filename)) {
  2714. return fremove(tmpres);
  2715. }
  2716. return false;
  2717. }
  2718.  
  2719. stock dini_Get(filename[],key[]) {
  2720. new File:fohnd;
  2721. new tmpres[MAX_STRING];
  2722. new tmpres2[MAX_STRING];
  2723. tmpres[0]=0;
  2724. fohnd=fopen(filename,io_read);
  2725. if (!fohnd) return tmpres;
  2726. while (fread(fohnd,tmpres)) {
  2727. StripNewLine(tmpres);
  2728. if (equal(dini_PRIVATE_ExtractKey(tmpres),key,true)) {
  2729. /* We've got what we need */
  2730. tmpres2[0]=0;
  2731. strcat(tmpres2,dini_PRIVATE_ExtractValue(tmpres));
  2732. fclose(fohnd);
  2733. return tmpres2;
  2734. }
  2735. }
  2736. fclose(fohnd);
  2737. return tmpres;
  2738. }
  2739.  
  2740.  
  2741. stock dini_Isset(filename[],key[]) {
  2742. new File:fohnd;
  2743. new tmpres[MAX_STRING];
  2744. fohnd=fopen(filename,io_read);
  2745. if (!fohnd) return false;
  2746. while (fread(fohnd,tmpres)) {
  2747. StripNewLine(tmpres);
  2748. if (equal(dini_PRIVATE_ExtractKey(tmpres),key,true)) {
  2749. /* We've got what we need */
  2750. fclose(fohnd);
  2751. return true;
  2752. }
  2753. }
  2754. fclose(fohnd);
  2755. return false;
  2756. }
  2757.  
  2758. new PRIVATE_Last_Money[MAX_PLAYERS];
  2759.  
  2760. /*
  2761. * First version released by mike, this one created by DracoBlue
  2762. * Has also a fix to use "-" and "+" in the beginning of the number.
  2763. */
  2764. stock isNumeric(const string[]) {
  2765. new length=strlen(string);
  2766. if (length==0) return false;
  2767. for (new i = 0; i < length; i++) {
  2768. if (
  2769. (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
  2770. || (string[i]=='-' && i!=0) // A '-' but not at first.
  2771. || (string[i]=='+' && i!=0) // A '+' but not at first.
  2772. ) return false;
  2773. }
  2774. if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
  2775. return true;
  2776. }
  2777.  
  2778. /*
  2779. * Originally created by mabako, tuned by DracoBlue
  2780. */
  2781. stock mktime(hour,minute,second,day,month,year) {
  2782. new timestamp2;
  2783.  
  2784. timestamp2 = second + (minute * 60) + (hour * 3600);
  2785.  
  2786. new days_of_month[12];
  2787.  
  2788. if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) {
  2789. days_of_month = {31,29,31,30,31,30,31,31,30,31,30,31}; // Schaltjahr
  2790. } else {
  2791. days_of_month = {31,28,31,30,31,30,31,31,30,31,30,31}; // keins
  2792. }
  2793. new days_this_year = 0;
  2794. days_this_year = day;
  2795. if(month > 1) { // No January Calculation, because its always the 0 past months
  2796. for(new i=0; i<month-1;i++) {
  2797. days_this_year += days_of_month[i];
  2798. }
  2799. }
  2800. timestamp2 += days_this_year * 86400;
  2801.  
  2802. for(new j=1970;j<year;j++) {
  2803. timestamp2 += 31536000;
  2804. if ( ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) timestamp2 += 86400; // Schaltjahr + 1 Tag
  2805. }
  2806.  
  2807. return timestamp2;
  2808. }
  2809.  
  2810.  
  2811. /**
  2812. * Return if a Email is valid or not
  2813. * @param value
  2814. */
  2815. stock ValidEmail(email[]) {
  2816. new len=strlen(email);
  2817. new cstate=0;
  2818. new i;
  2819. for(i=0;i<len;i++) {
  2820. if ((cstate==0 || cstate==1) && (email[i]>='A' && email[i]<='Z') || (email[i]>='a' && email[i]<='z') || (email[i]=='.') || (email[i]=='-') || (email[i]=='_'))
  2821. {
  2822. } else {
  2823. // Ok no A..Z,a..z,_,.,-
  2824. if ((cstate==0) &&(email[i]=='@')) {
  2825. // its an @ after the name, ok state=1;
  2826. cstate=1;
  2827. } else {
  2828. // Its stuff which is not allowed
  2829. return false;
  2830. }
  2831. }
  2832. }
  2833. if (cstate<1) return false;
  2834. if (len<6) return false;
  2835. // A toplevel domain has only 3 to 4 signs :-)
  2836. if ((email[len-3]=='.') || (email[len-4]=='.') || (email[len-5]=='.')) return true;
  2837. return false;
  2838. }
  2839.  
  2840. /**
  2841. * Return a timestamp
  2842. */
  2843. stock Time() {
  2844. new hour,minute,second;
  2845. new year, month,day;
  2846. gettime(hour, minute, second);
  2847. getdate(year, month, day);
  2848. return mktime(hour,minute,second,day,month,year);
  2849. }
  2850.  
  2851.  
  2852. /**
  2853. * Return a timestamp
  2854. */
  2855. stock Now() {
  2856. new hour,minute,second;
  2857. new year, month,day;
  2858. gettime(hour, minute, second);
  2859. getdate(year, month, day);
  2860. return mktime(hour,minute,second,day,month,year);
  2861. }
  2862.  
  2863.  
  2864. /**
  2865. * Return the value of an hex-string
  2866. * @param string
  2867. */
  2868. stock HexToInt(string[]) {
  2869. if (string[0]==0) return 0;
  2870. new i;
  2871. new cur=1;
  2872. new res=0;
  2873. for (i=strlen(string);i>0;i--) {
  2874. if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);
  2875. cur=cur*16;
  2876. }
  2877. return res;
  2878. }
  2879.  
  2880. /**
  2881. * Return the int as string
  2882. * @param number
  2883. */
  2884. stock IntToHex(number)
  2885. {
  2886. new m=1;
  2887. new depth=0;
  2888. while (number>=m) {
  2889. m = m*16;
  2890. depth++;
  2891. }
  2892. depth--;
  2893. new str[MAX_STRING];
  2894. for (new i = depth; i >= 0; i--)
  2895. {
  2896. str[i] = ( number & 0x0F) + 0x30; // + (tmp > 9 ? 0x07 : 0x00)
  2897. str[i] += (str[i] > '9') ? 0x07 : 0x00;
  2898. number >>= 4;
  2899. }
  2900. str[8] = '\0';
  2901. return str;
  2902. }
  2903.  
  2904. /**
  2905. * Return the string as int
  2906. * @param string
  2907. */
  2908. stock StrToInt(string[]) {
  2909. return strval(string);
  2910. }
  2911.  
  2912. /**
  2913. * Return the value as string
  2914. * @param value
  2915. */
  2916. stock IntToStr(value) {
  2917. new tmp[MAX_STRING];
  2918. valstr(tmp, value);
  2919. return tmp;
  2920. }
  2921.  
  2922. /**
  2923. * Return the truncated value
  2924. * @param Float:value
  2925. */
  2926. stock trunc(Float:value) {
  2927. return floatround(value,floatround_floor);
  2928. }
  2929.  
  2930. /**
  2931. * Sets money for player
  2932. * @param playerid
  2933. * howmuch
  2934. */
  2935. stock SetPlayerMoney(playerid,howmuch) {
  2936. PRIVATE_Last_Money[playerid]=howmuch;
  2937. return GivePlayerMoney(playerid,howmuch-GetPlayerMoney(playerid));
  2938. }
  2939.  
  2940. /**
  2941. * Copies a file (Source file won't be deleted!)
  2942. * @param oldname
  2943. * newname
  2944. * @requires WINDOWS
  2945. */
  2946. stock fcopy(oldname[],newname[]) {
  2947. new File:ohnd,File:nhnd;
  2948. if (!fexist(oldname)) return false;
  2949. ohnd=fopen(oldname,io_read);
  2950. nhnd=fopen(newname,io_write);
  2951. new buf2[1];
  2952. new i;
  2953. for (i=flength(ohnd);i>0;i--) {
  2954. fputchar(nhnd, fgetchar(ohnd, buf2[0],false),false);
  2955. }
  2956. fclose(ohnd);
  2957. fclose(nhnd);
  2958. return true;
  2959. }
  2960.  
  2961.  
  2962. /**
  2963. * Copies a textfile (Source file won't be deleted!)
  2964. * @param oldname
  2965. * newname
  2966. */
  2967. stock fcopytextfile(oldname[],newname[]) {
  2968. new File:ohnd,File:nhnd;
  2969. if (!fexist(oldname)) return false;
  2970. ohnd=fopen(oldname,io_read);
  2971. nhnd=fopen(newname,io_write);
  2972. new tmpres[MAX_STRING];
  2973. while (fread(ohnd,tmpres)) {
  2974. StripNewLine(tmpres);
  2975. format(tmpres,sizeof(tmpres),"%s\r\n",tmpres);
  2976. fwrite(nhnd,tmpres);
  2977. }
  2978. fclose(ohnd);
  2979. fclose(nhnd);
  2980. return true;
  2981. }
  2982.  
  2983.  
  2984. /**
  2985. * Renames a file (Source file will be deleted!)
  2986. * @param oldname
  2987. * newname
  2988. * @requires WINDOWS (because fcopy does)
  2989. */
  2990. stock frename(oldname[],newname[]) {
  2991. if (!fexist(oldname)) return false;
  2992. fremove(newname);
  2993. if (!fcopy(oldname,newname)) return false;
  2994. fremove(oldname);
  2995. return true;
  2996. }
  2997.  
  2998. /**
  2999. * Renames a file (Source file will be deleted!)
  3000. * @param oldname
  3001. * newname
  3002. */
  3003. stock frenametextfile(oldname[],newname[]) {
  3004. if (!fexist(oldname)) return false;
  3005. fremove(newname);
  3006. if (!fcopytextfile(oldname,newname)) return false;
  3007. fremove(oldname);
  3008. return true;
  3009. }
  3010.  
  3011. /**
  3012. * Strips Newline from the end of a string.
  3013. * Idea: Y_Less, Bugfixing (when length=1) by DracoBlue
  3014. * @param string
  3015. */
  3016. stock StripNewLine(string[])
  3017. {
  3018. new len = strlen(string);
  3019. if (string[0]==0) return ;
  3020. if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) {
  3021. string[len - 1] = 0;
  3022. if (string[0]==0) return ;
  3023. if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0;
  3024. }
  3025. }
  3026.  
  3027. /**
  3028. * Copies items from one array/string into return.
  3029. * @param source
  3030. * index (where to start, 0 is first)
  3031. * numbytes (how much)
  3032. */
  3033. ret_memcpy(source[],index=0,numbytes) {
  3034. new tmp[MAX_STRING];
  3035. new i=0;
  3036. tmp[0]=0;
  3037. if (index>=strlen(source)) return tmp;
  3038. if (numbytes+index>=strlen(source)) numbytes=strlen(source)-index;
  3039. if (numbytes<=0) return tmp;
  3040. for (i=index;i<numbytes+index;i++) {
  3041. tmp[i-index]=source[i];
  3042. if (source[i]==0) return tmp;
  3043. }
  3044. tmp[numbytes]=0;
  3045. return tmp;
  3046. }
  3047.  
  3048. /**
  3049. * Copies items from one array/string into another.
  3050. * @param dest
  3051. * source
  3052. * count
  3053. */
  3054. stock copy(dest[],source[],count) {
  3055. dest[0]=0;
  3056. if (count<0) return false;
  3057. if (count>strlen(source)) count=strlen(source);
  3058. new i=0;
  3059. for (i=0;i<count;i++) {
  3060. dest[i]=source[i];
  3061. if (source[i]==0) return true;
  3062. }
  3063. dest[count]=0;
  3064. return true;
  3065. }
  3066.  
  3067.  
  3068. /**
  3069. * Deletes the first 'count' items of a array/string
  3070. * @param string[]
  3071. * count
  3072. */
  3073. stock delete(string[],count) {
  3074. new tmp[MAX_STRING];
  3075. tmp[0]=0;
  3076. if (count<=0) {
  3077. format(tmp,sizeof(tmp),"%s",string);
  3078. return tmp;
  3079. }
  3080. tmp=ret_memcpy(string,count,strlen(string));
  3081. return tmp;
  3082. }
  3083.  
  3084. /**
  3085. * Sets a string's value to source.
  3086. * @param dest
  3087. * source
  3088. * count
  3089. */
  3090. stock set(dest[],source[]) {
  3091. new count = strlen(source);
  3092. new i=0;
  3093. for (i=0;i<count;i++) {
  3094. dest[i]=source[i];
  3095. }
  3096. dest[count]=0;
  3097. }
  3098.  
  3099. /**
  3100. * Checks wether two strings are equal (case insensetive)
  3101. * @param str1
  3102. * str2
  3103. */
  3104. stock equal(str1[],str2[],bool:ignorecase) {
  3105. if (strlen(str1)!=strlen(str2)) return false;
  3106. if (strcmp(str1,str2,ignorecase)==0) return true;
  3107. return false;
  3108. }
  3109.  
  3110. /**
  3111. * Returns an element of a string splitted by ' ', default index is 0.
  3112. * @param string
  3113. * index
  3114. */
  3115. stock strtok(const string[], &index,seperator=' ')
  3116. {
  3117. new length = strlen(string);
  3118. new offset = index;
  3119. new result[32];
  3120. while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
  3121. {
  3122. result[index - offset] = string[index];
  3123. index++;
  3124. }
  3125.  
  3126. result[index - offset] = EOS;
  3127. if ((index < length) && (string[index] == seperator))
  3128. {
  3129. index++;
  3130. }
  3131. return result;
  3132. }
  3133.  
  3134. stock mod(up,down) {
  3135. return up-(floatround((up/down),floatround_floor))*down;
  3136. }
  3137.  
  3138. stock div(up,down) {
  3139. return (floatround((up/down),floatround_floor));
  3140. }
  3141.  
  3142.  
  3143.  
  3144. /**
  3145. * Returns a string which has 'newstr' where 'trg' was before
  3146. * @param trg
  3147. * newstr
  3148. * src
  3149. */
  3150. stock strreplace(trg[],newstr[],src[]) {
  3151. new f=0;
  3152. new s1[MAX_STRING];
  3153. new tmp[MAX_STRING];
  3154. format(s1,sizeof(s1),"%s",src);
  3155. f = strfind(s1,trg);
  3156. tmp[0]=0;
  3157. while (f>=0) {
  3158. strcat(tmp,ret_memcpy(s1, 0, f));
  3159. strcat(tmp,newstr);
  3160. format(s1,sizeof(s1),"%s",ret_memcpy(s1, f+strlen(trg), strlen(s1)-f));
  3161. f = strfind(s1,trg);
  3162. }
  3163. strcat(tmp,s1);
  3164. return tmp;
  3165. }
  3166.  
  3167. /**
  3168. * Returns the string with lowercase
  3169. * @param txt
  3170. */
  3171. stock strlower(txt[]) {
  3172. new tmp[MAX_STRING];
  3173. tmp[0]=0;
  3174. if (txt[0]==0) return tmp;
  3175. new i=0;
  3176. for (i=0;i<strlen(txt);i++) {
  3177. tmp[i]=tolower(txt[i]);
  3178. }
  3179. tmp[strlen(txt)]=0;
  3180. return tmp;
  3181. }
  3182.  
  3183. /**
  3184. * Returns the string with uppercase
  3185. * @param txt
  3186. */
  3187. stock strupper(txt[]) {
  3188. new tmp[MAX_STRING];
  3189. tmp[0]=0;
  3190. if (txt[0]==0) return tmp;
  3191. new i=0;
  3192. for (i=0;i<strlen(txt);i++) {
  3193. tmp[i]=toupper(txt[i]);
  3194. }
  3195. tmp[strlen(txt)]=0;
  3196. return tmp;
  3197. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement