Advertisement
Guest User

Untitled

a guest
Aug 14th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.98 KB | None | 0 0
  1. /*
  2. World Evolution RPG
  3.  
  4. Versao: BETA 2;
  5. Autor : Diego Rodrigues;
  6.  
  7. Modulo Inventario
  8. */
  9. #include a_samp
  10. #include zcmd
  11. #include sscanf
  12.  
  13. #define MAX_ITENS 300
  14. #define MAX_SERVER_ITENS 300
  15. #define DIALOG_COMPRAR_INVENTARIO 1
  16.  
  17.  
  18. enum {
  19. ITEM_TIPO_NADA,
  20. ITEM_TIPO_ARMA,
  21. ITEM_TIPO_FOME,
  22. ITEM_TIPO_SEDE,
  23. ITEM_TIPO_COLETE,
  24. ITEM_TIPO_VEICULOMOD,
  25. ITEM_TIPO_DROGA,
  26. ITEM_TIPO_REMEDIO,
  27. ITEM_TIPO_MATERIAL
  28. }
  29. enum enum_serverItens {
  30. sItem_id,
  31. sItem_tipo,
  32. sItem_modelo,
  33. sItem_nome[128],
  34. //ITEM_TIPO_ARMA
  35. sItem_arma_model,
  36. }
  37. enum enum_pInventario {
  38. bool:inv_item_ativo, //se o item existe ou nao;
  39. inv_item_index, //id global do item;
  40.  
  41. inv_armaIndex, //usado para armas; (arma id)
  42. inv_armaBalas, //usado para armas; (quantidade de balas)
  43.  
  44. Float:inv_coleteStatus, //usado para coletes; (quantidade do colete)
  45. }
  46. enum enum_mundoItens {
  47. bool:mItem_ativo,
  48. mItem_tipo,
  49. mItem_index,
  50. //mItem tipo ARMA :
  51. mItem_armaIndex,
  52. mItem_armaBalas,
  53. //mItem tipo COLETE:
  54. Float:mItem_coleteStatus,
  55. //mItem tipo FOME e SEDE :
  56. mItem_objeto,
  57. mItem_quantidade,
  58.  
  59. Float:mItem_x,
  60. Float:mItem_y,
  61. Float:mItem_z,
  62.  
  63. Text3D:mItem_text3d,
  64. mItem_createObject
  65. }
  66. enum enum_pInfo {
  67. bool:pMochilaAtiva, //comprada
  68. pMochila, //numero de slot
  69.  
  70. pMarijuana,
  71. pCocaina,
  72. pCrack,
  73. pEcstasy,
  74. pMateriais,
  75. pRemedios
  76. }
  77.  
  78. new pInventario[MAX_PLAYERS][15][enum_pInventario];
  79. new mundoItens[MAX_ITENS][enum_mundoItens];
  80. new pInfo[MAX_PLAYERS][enum_pInfo];
  81.  
  82. new PlayerText:inventario_fundo[MAX_PLAYERS];
  83. new PlayerText:inventario_aba[MAX_PLAYERS][2];
  84. new PlayerText:inventario_index[MAX_PLAYERS][15];
  85. new PlayerText:inventario_fechar[MAX_PLAYERS];
  86. new PlayerText:inventario_usar[MAX_PLAYERS];
  87. new PlayerText:inventario_drop[MAX_PLAYERS];
  88. new PlayerText:inventario_opcoes[MAX_PLAYERS][5];
  89. new PlayerText:inventario_opcoes_fechar[MAX_PLAYERS];
  90. new PlayerText:inventario_opcoes_equipar[MAX_PLAYERS];
  91. new PlayerText:inventario_opcoes_guardar[MAX_PLAYERS];
  92. new PlayerText:backgroundinv[MAX_PLAYERS][15];
  93. new PlayerText:inventario_item_nome[MAX_PLAYERS];
  94. new PlayerText:inventario_item_info[MAX_PLAYERS][15];
  95. new PlayerText:inventario_tamanho_show[MAX_PLAYERS];
  96. new PlayerText:inventario_aba_equipam[MAX_PLAYERS];
  97. new PlayerText:inventario_aba_outros[MAX_PLAYERS];
  98. new PlayerText:inventario_outros_info[MAX_PLAYERS][6];
  99.  
  100. new serverItens[][enum_serverItens] = {
  101.  
  102. //{0, ITEM_TIPO_ARMA, 331, "Brass Knuckles", 1},
  103. {0, ITEM_TIPO_ARMA, 18631, "erro", 0},
  104. {1, ITEM_TIPO_ARMA, 333, "Golf Club", 2},
  105. {2, ITEM_TIPO_ARMA, 334, "Nitestick", 3},
  106. {3, ITEM_TIPO_ARMA, 335, "Knife", 4},
  107. {4, ITEM_TIPO_ARMA, 336, "Baseball Bat", 5},
  108. {5, ITEM_TIPO_ARMA, 337, "Showel", 6},
  109. {6, ITEM_TIPO_ARMA, 338, "Pool Cue", 7},
  110. {7, ITEM_TIPO_ARMA, 339, "Katana", 8},
  111. {8, ITEM_TIPO_ARMA, 341, "Chainsaw", 9},
  112. {9, ITEM_TIPO_ARMA, 321, "Purple Dildo", 10},
  113. {10, ITEM_TIPO_ARMA, 322, "Small White Dildo", 11},
  114. {11, ITEM_TIPO_ARMA, 323, "Long White Dildo", 12},
  115. {12, ITEM_TIPO_ARMA, 324, "Vibrator", 13},
  116. {13, ITEM_TIPO_ARMA, 325, "Flowers", 14},
  117. {14, ITEM_TIPO_ARMA, 326, "Cane", 15},
  118. {15, ITEM_TIPO_ARMA, 342, "Grenade", 16},
  119. {16, ITEM_TIPO_ARMA, 343, "Tear Gas", 17},
  120. {17, ITEM_TIPO_ARMA, 344, "Molotov", 18},
  121. {18, ITEM_TIPO_ARMA, 346, "Glock", 22},
  122. {19, ITEM_TIPO_ARMA, 347, "Silenced Colt", 23},
  123. {20, ITEM_TIPO_ARMA, 348, "Desert Eagle", 24},
  124. {21, ITEM_TIPO_ARMA, 349, "Shotgun", 25},
  125. {22, ITEM_TIPO_ARMA, 350, "Sawn Off", 26},
  126. {23, ITEM_TIPO_ARMA, 351, "Combat Shotgun", 27},
  127. {24, ITEM_TIPO_ARMA, 352, "Micro UZI", 28},
  128. {25, ITEM_TIPO_ARMA, 353, "MP5", 29},
  129. {26, ITEM_TIPO_ARMA, 355, "AK47", 30},
  130. {27, ITEM_TIPO_ARMA, 356, "M4", 31},
  131. {28, ITEM_TIPO_ARMA, 372, "Tec9", 32},
  132. {29, ITEM_TIPO_ARMA, 357, "Rifle", 33},
  133. {30, ITEM_TIPO_ARMA, 358, "Sniper Rifle", 34},
  134. {31, ITEM_TIPO_ARMA, 359, "Rocket Launcher", 35},
  135. {32, ITEM_TIPO_ARMA, 360, "HS Rocket Launcher", 36},
  136. {33, ITEM_TIPO_ARMA, 361, "Flamethrower", 37},
  137. {34, ITEM_TIPO_ARMA, 362, "Minigun", 38},
  138. {35, ITEM_TIPO_ARMA, 363, "Satchel Charge", 39},
  139. {36, ITEM_TIPO_ARMA, 365, "Spraycan", 41},
  140. {37, ITEM_TIPO_ARMA, 366, "Fire Extinguisher", 42},
  141. {38, ITEM_TIPO_ARMA, 367, "Camera", 43},
  142. {39, ITEM_TIPO_ARMA, 371, "Parachute", 46},
  143. //
  144. {40, ITEM_TIPO_COLETE, 19142, "Colete", 0},
  145. //car parts
  146. {41, ITEM_TIPO_VEICULOMOD, 1000, "Spoiler Pro Certain Transfender cars", 0},
  147. {42, ITEM_TIPO_VEICULOMOD, 1001, "Spoiler Win Certain Transfender cars", 0},
  148. {43, ITEM_TIPO_VEICULOMOD, 1002, "Spoiler DragCertain Transfender cars", 0},
  149. {44, ITEM_TIPO_VEICULOMOD, 1003, "Spoiler AlphaCertain Transfender cars", 0},
  150. {45, ITEM_TIPO_VEICULOMOD, 1004, "Hood Champ Scoop Certain Transfender cars", 0},
  151. {46, ITEM_TIPO_VEICULOMOD, 1005, "Hood Fury Scoop Certain Transfender cars", 0},
  152. {47, ITEM_TIPO_VEICULOMOD, 1006, "Roof Scoop Certain Transfender cars", 0},
  153. {48, ITEM_TIPO_VEICULOMOD, 1007, "kSideskirtRight Sideskirt Certain Transfender cars", 0},
  154. {49, ITEM_TIPO_VEICULOMOD, 1008, "Nitro5 Most cars", 0},
  155. {50, ITEM_TIPO_VEICULOMOD, 0, "ERRO ERRO ERRO ERRO FFF", 0},
  156. {51, ITEM_TIPO_VEICULOMOD, 1009, "Nitro2 Most cars", 0},
  157. {52, ITEM_TIPO_VEICULOMOD, 1010, "Nitro10 Most cars", 0},
  158. {53, ITEM_TIPO_VEICULOMOD, 1011, "Hood Race Scoop Certain Transfender cars", 0},
  159. {54, ITEM_TIPO_VEICULOMOD, 1012, "Hood Worx Scoop Certain Transfender cars", 0},
  160. {55, ITEM_TIPO_VEICULOMOD, 1013, "Lamps Round Fog Certain Transfender cars", 0},
  161. {56, ITEM_TIPO_VEICULOMOD, 1014, "Spoiler Champ Certain Transfender cars", 0},
  162. {57, ITEM_TIPO_VEICULOMOD, 1015, "Spoiler Race Certain Transfender cars", 0},
  163. {58, ITEM_TIPO_VEICULOMOD, 1016, "Spoiler Worx Certain Transfender cars", 0},
  164. {59, ITEM_TIPO_VEICULOMOD, 1017, "Sideskirt Left Sideskirt Certain Transfender cars", 0},
  165. {60, ITEM_TIPO_VEICULOMOD, 1018, "Exhaust Upswept Most cars", 0},
  166. {61, ITEM_TIPO_VEICULOMOD, 1019, "Exhaust Twin Most cars", 0},
  167. {62, ITEM_TIPO_VEICULOMOD, 1020, "Exhaust Large Most cars", 0},
  168. {63, ITEM_TIPO_VEICULOMOD, 1021, "Exhaust Medium Most cars", 0},
  169. {64, ITEM_TIPO_VEICULOMOD, 1022, "Exhaust Small Most cars", 0},
  170. {65, ITEM_TIPO_VEICULOMOD, 1023, "Spoiler Fury Certain Transfender cars", 0},
  171. {66, ITEM_TIPO_VEICULOMOD, 1024, "Lamps Square Fog Certain Transfender cars", 0},
  172. {67, ITEM_TIPO_VEICULOMOD, 1025, "Wheels Offroad Certain Transfender cars", 0},
  173. {68, ITEM_TIPO_VEICULOMOD, 1026, "Sideskirt Right Alien Sideskirt Sultan", 0},
  174. {69, ITEM_TIPO_VEICULOMOD, 1027, "Sideskirt Left Alien Sideskirt Sultan", 0},
  175. {70, ITEM_TIPO_VEICULOMOD, 1028, "Exhaust Alien Sultan", 0},
  176. {71, ITEM_TIPO_VEICULOMOD, 1029, "Exhaust X-Flow Sultan", 0},
  177. {72, ITEM_TIPO_VEICULOMOD, 1030, "Sideskirt Left X-Flow Sideskirt Sultan", 0},
  178. {73, ITEM_TIPO_VEICULOMOD, 1031, "Sideskirt Right X-Flow Sideskirt Sultan", 0},
  179. {74, ITEM_TIPO_VEICULOMOD, 1032, "RoofAlien Roof VentSultan", 0},
  180. {75, ITEM_TIPO_VEICULOMOD, 1033, "RoofX-Flow Roof VentSultan", 0},
  181. {76, ITEM_TIPO_VEICULOMOD, 1034, "Exhaust Alien Elegy", 0},
  182. {77, ITEM_TIPO_VEICULOMOD, 1035, "RoofX-Flow Roof VentElegy", 0},
  183. {78, ITEM_TIPO_VEICULOMOD, 1036, "Side Skirt Right Alien Sideskirt Elegy", 0},
  184. {79, ITEM_TIPO_VEICULOMOD, 1037, "Exhaust X-Flow Elegy", 0},
  185. {80, ITEM_TIPO_VEICULOMOD, 1038, "RoofAlien Roof Vent Elegy", 0},
  186. {81, ITEM_TIPO_VEICULOMOD, 1039, "SkirtLeft X-Flow Sideskirt Elegy", 0},
  187. {82, ITEM_TIPO_VEICULOMOD, 1040, "SkirtLeft Alien Sideskirt Elegy", 0},
  188. {83, ITEM_TIPO_VEICULOMOD, 1041, "SkirtRight X-Flow Sideskirt Elegy", 0},
  189. {84, ITEM_TIPO_VEICULOMOD, 1042, "SideSkirt Right Chrome Sideskirt Broadway", 0},
  190. {85, ITEM_TIPO_VEICULOMOD, 1043, "Exhaust Slamin Broadway", 0},
  191. {86, ITEM_TIPO_VEICULOMOD, 1044, "Exhaust Chrome Broadway", 0},
  192. {87, ITEM_TIPO_VEICULOMOD, 1045, "Exhaust X-Flow Flash", 0},
  193. {88, ITEM_TIPO_VEICULOMOD, 1046, "Exhaust Alien Flash", 0},
  194. {89, ITEM_TIPO_VEICULOMOD, 1047, "Side Skirt Right Alien Sideskirt Flash", 0},
  195. {90, ITEM_TIPO_NADA, 0, "ERRO", 0},
  196. {91, ITEM_TIPO_VEICULOMOD, 1048, "Side Skirt Right X-Flow Sideskirt Flash", 0},
  197. {92, ITEM_TIPO_VEICULOMOD, 1049, "Spoiler Alien Flash", 0},
  198. {93, ITEM_TIPO_VEICULOMOD, 1050, "Spoiler X-Flow Flash", 0},
  199. {94, ITEM_TIPO_VEICULOMOD, 1051, "SideSkirt Left Alien Sideskirt Flash", 0},
  200. {95, ITEM_TIPO_VEICULOMOD, 1052, "SideSkirt Left X-Flow Sideskirt Flash", 0},
  201. {96, ITEM_TIPO_VEICULOMOD, 1053, "Roof X-Flow Flash", 0},
  202. {97, ITEM_TIPO_VEICULOMOD, 1054, "Roof Alien Flash", 0},
  203. {98, ITEM_TIPO_VEICULOMOD, 1055, "Roof Alien Stratum", 0},
  204. {99, ITEM_TIPO_VEICULOMOD, 1056, "Sideskirt Right Alien Sideskirt Stratum", 0},
  205. {100, ITEM_TIPO_VEICULOMOD, 1057, "Sideskirt Right X-Flow Sideskirt Stratum", 0},
  206. {101, ITEM_TIPO_VEICULOMOD, 1058, "Spoiler Alien Stratum", 0},
  207. {102, ITEM_TIPO_VEICULOMOD, 1059, "ExhaustX-Flow Stratum", 0},
  208. {103, ITEM_TIPO_VEICULOMOD, 1060, "SpoilerX-Flow Stratum", 0},
  209. {104, ITEM_TIPO_VEICULOMOD, 1061, "RoofX-Flow Stratum", 0},
  210. {105, ITEM_TIPO_VEICULOMOD, 1062, "Sideskirt Left Alien Sideskirt Stratum", 0},
  211. {106, ITEM_TIPO_VEICULOMOD, 1063, "Sideskirt Left X-Flow Sideskirt Stratum", 0},
  212. {107, ITEM_TIPO_VEICULOMOD, 1064, "Exhaust Alien Stratum", 0},
  213. {108, ITEM_TIPO_VEICULOMOD, 1065, "Exhaust Alien Jester", 0},
  214. {109, ITEM_TIPO_VEICULOMOD, 1066, "Exhaust X-Flow Jester", 0},
  215. {110, ITEM_TIPO_VEICULOMOD, 1067, "Roof Alien Jester", 0},
  216. {111, ITEM_TIPO_VEICULOMOD, 1068, "Roof X-Flow Jester", 0},
  217. {112, ITEM_TIPO_VEICULOMOD, 1069, "Sideskirt Right Alien Sideskirt Jester", 0},
  218. {113, ITEM_TIPO_VEICULOMOD, 1070, "Sideskirt Right X-Flow Sideskirt Jester", 0},
  219. {114, ITEM_TIPO_VEICULOMOD, 1071, "Sideskirt Left Alien Sideskirt Jester", 0},
  220. {115, ITEM_TIPO_VEICULOMOD, 1072, "Sideskirt Left X-Flow Sideskirt Jester", 0},
  221. {116, ITEM_TIPO_VEICULOMOD, 1073, "Wheels Shadow Most cars", 0},
  222. {117, ITEM_TIPO_VEICULOMOD, 1074, "Wheels Mega Most cars", 0},
  223. {118, ITEM_TIPO_VEICULOMOD, 1075, "Wheels Rimshine Most cars", 0},
  224. {119, ITEM_TIPO_VEICULOMOD, 1076, "Wheels Wires Most cars", 0},
  225. {120, ITEM_TIPO_VEICULOMOD, 1077, "Wheels Classic Most cars", 0},
  226. {121, ITEM_TIPO_VEICULOMOD, 1078, "Wheels Twist Most cars", 0},
  227. {122, ITEM_TIPO_VEICULOMOD, 1079, "Wheels Cutter Most cars", 0},
  228. {123, ITEM_TIPO_VEICULOMOD, 1080, "Wheels Switch Most cars", 0},
  229. {124, ITEM_TIPO_VEICULOMOD, 1081, "Wheels Grove Most cars", 0},
  230. {125, ITEM_TIPO_VEICULOMOD, 1082, "Wheels Import Most cars", 0},
  231. {126, ITEM_TIPO_VEICULOMOD, 1083, "Wheels Dollar Most cars", 0},
  232. {127, ITEM_TIPO_VEICULOMOD, 1084, "Wheels Trance Most cars", 0},
  233. {128, ITEM_TIPO_VEICULOMOD, 1085, "Wheels Atomic Most cars", 0},
  234. {129, ITEM_TIPO_VEICULOMOD, 1086, "Stereo Stereo Most cars", 0},
  235. {130, ITEM_TIPO_VEICULOMOD, 1087, "Hydraulics Hydraulics Most cars", 0},
  236. {131, ITEM_TIPO_VEICULOMOD, 1088, "Roof Alien Uranus", 0},
  237. {132, ITEM_TIPO_VEICULOMOD, 1089, "ExhaustX-Flow Uranus", 0},
  238. {133, ITEM_TIPO_VEICULOMOD, 1090, "Sideskirt Right Alien Sideskirt Uranus", 0},
  239. {134, ITEM_TIPO_VEICULOMOD, 1091, "RoofX-Flow Uranus", 0},
  240. {135, ITEM_TIPO_VEICULOMOD, 1092, "Exhaust Alien Uranus", 0},
  241. {136, ITEM_TIPO_VEICULOMOD, 1093, "Sideskirt Right X-Flow Sideskirt Uranus", 0},
  242. {137, ITEM_TIPO_VEICULOMOD, 1094, "Sideskirt Left Alien Sideskirt Uranus", 0},
  243. {138, ITEM_TIPO_VEICULOMOD, 1095, "Sideskirt Right X-Flow Sideskirt Uranus", 0},
  244. {139, ITEM_TIPO_VEICULOMOD, 1096, "Wheels Ahab Most cars", 0},
  245. {140, ITEM_TIPO_VEICULOMOD, 1097, "Wheels Virtual Most cars", 0},
  246. {141, ITEM_TIPO_VEICULOMOD, 1098, "Wheels Access Most cars", 0},
  247. {142, ITEM_TIPO_VEICULOMOD, 1099, "Sideskirt Left Chrome Sideskirt Broadway", 0},
  248. {143, ITEM_TIPO_VEICULOMOD, 1100, "Bullbar Chrome Grill Remington", 0},
  249. {144, ITEM_TIPO_VEICULOMOD, 1101, "Sideskirt Left `Chrome Flames` Sideskirt Remington", 0},
  250. {145, ITEM_TIPO_VEICULOMOD, 1102, "Sideskirt Left `Chrome Strip` Sideskirt Savanna", 0},
  251. {146, ITEM_TIPO_VEICULOMOD, 1103, "Roof Covertible Blade", 0},
  252. {147, ITEM_TIPO_VEICULOMOD, 1104, "Exhaust Chrome Blade", 0},
  253. {148, ITEM_TIPO_VEICULOMOD, 1105, "Exhaust Slamin Blade", 0},
  254. {149, ITEM_TIPO_VEICULOMOD, 1106, "Sideskirt Right `Chrome Arches` Remington", 0},
  255. {150, ITEM_TIPO_VEICULOMOD, 1107, "Sideskirt Left `Chrome Strip` Sideskirt Blade", 0},
  256. {151, ITEM_TIPO_VEICULOMOD, 1108, "Sideskirt Right `Chrome Strip` Sideskirt Blade", 0},
  257. {152, ITEM_TIPO_VEICULOMOD, 1109, "Rear Bullbars Chrome Slamvan", 0},
  258. {153, ITEM_TIPO_VEICULOMOD, 1110, "Rear Bullbars Slamin Slamvan", 0},
  259. {154, ITEM_TIPO_VEICULOMOD, 1111, "Front Sign Little Sign Slamvan", 0},
  260. {155, ITEM_TIPO_VEICULOMOD, 1112, "Front Sign Little Sign Slamvan", 0},
  261. {156, ITEM_TIPO_VEICULOMOD, 1113, "Exhaust Chrome Slamvan", 0},
  262. {157, ITEM_TIPO_VEICULOMOD, 1114, "Exhaust Slamin Slamvan", 0},
  263. {158, ITEM_TIPO_VEICULOMOD, 1115, "Front Bullbars Chrome Slamvan", 0},
  264. {159, ITEM_TIPO_VEICULOMOD, 1116, "Front Bullbars Slamin Slamvan", 0},
  265. {160, ITEM_TIPO_VEICULOMOD, 1117, "Front Bumper Chrome Slamvan", 0},
  266. {161, ITEM_TIPO_VEICULOMOD, 1118, "Sideskirt Right `Chrome Trim` Sideskirt Slamvan", 0},
  267. {162, ITEM_TIPO_VEICULOMOD, 1119, "Sideskirt Right `Wheelcovers` Sideskirt Slamvan", 0},
  268. {163, ITEM_TIPO_VEICULOMOD, 1120, "Sideskirt Left `Chrome Trim` Sideskirt Slamvan", 0},
  269. {164, ITEM_TIPO_VEICULOMOD, 1121, "Sideskirt Left `Wheelcovers` Sideskirt Slamvan", 0},
  270. {165, ITEM_TIPO_VEICULOMOD, 1122, "Sideskirt Right `Chrome Flames` SideskirtRemington", 0},
  271. {166, ITEM_TIPO_VEICULOMOD, 1123, "Bullbars Bullbar Chrome Bars Remington", 0},
  272. {167, ITEM_TIPO_VEICULOMOD, 1124, "Sideskirt Left `Chrome Arches` Sideskirt Remington", 0},
  273. {168, ITEM_TIPO_VEICULOMOD, 1125, "Bullbars Bullbar Chrome Lights Remington", 0},
  274. {169, ITEM_TIPO_VEICULOMOD, 1126, "Exhaust Chrome Exhaust Remington", 0},
  275. {170, ITEM_TIPO_VEICULOMOD, 1127, "Exhaust Slamin Exhaust Remington", 0},
  276. {171, ITEM_TIPO_VEICULOMOD, 1128, "RoofVinyl HardtopBlade", 0},
  277. {172, ITEM_TIPO_VEICULOMOD, 1129, "Exhaust Chrome Savanna", 0},
  278. {173, ITEM_TIPO_VEICULOMOD, 1130, "Roof Hardtop Savanna", 0},
  279. {174, ITEM_TIPO_VEICULOMOD, 1131, "Roof Softtop Savanna", 0},
  280. {175, ITEM_TIPO_VEICULOMOD, 1132, "Exhaust Slamin Savanna", 0},
  281. {176, ITEM_TIPO_VEICULOMOD, 1133, "Sideskirt Right `Chrome Strip` Sideskirt Savanna", 0},
  282. {177, ITEM_TIPO_VEICULOMOD, 1134, "Side Skirt Right `Chrome Strip` Sideskirt Tornado", 0},
  283. {178, ITEM_TIPO_VEICULOMOD, 1135, "Exhaust Slamin Tornado", 0},
  284. {179, ITEM_TIPO_VEICULOMOD, 1136, "Exhaust Chrome Tornado", 0},
  285. {180, ITEM_TIPO_VEICULOMOD, 1137, "SideskirtLeft `Chrome Strip` SideskirtTornado", 0},
  286. {181, ITEM_TIPO_VEICULOMOD, 1138, "Spoiler Alien Sultan", 0},
  287. {182, ITEM_TIPO_VEICULOMOD, 1139, "Spoiler X-Flow Sultan", 0},
  288. {183, ITEM_TIPO_VEICULOMOD, 1140, "Bumper X-Flow Sultan", 0},
  289. {184, ITEM_TIPO_VEICULOMOD, 1141, "Bumper Alien Sultan", 0},
  290. {185, ITEM_TIPO_VEICULOMOD, 1142, "Vents Left Oval Vents Certain Transfender Cars", 0},
  291. {186, ITEM_TIPO_VEICULOMOD, 1143, "Vents Right Oval Vents Certain Transfender Cars", 0},
  292. {187, ITEM_TIPO_VEICULOMOD, 1144, "Vents Left Square Vents Certain Transfender Cars", 0},
  293. {188, ITEM_TIPO_VEICULOMOD, 1145, "Vents Right Square Vents Certain Transfender Cars", 0},
  294. {189, ITEM_TIPO_VEICULOMOD, 1146, "Spoiler X-Flow Elegy", 0},
  295. {190, ITEM_TIPO_VEICULOMOD, 1147, "Spoiler Alien Elegy", 0},
  296. {191, ITEM_TIPO_VEICULOMOD, 1148, "Rear Bumper X-Flow Elegy", 0},
  297. {192, ITEM_TIPO_VEICULOMOD, 1149, "Rear Bumper Alien Elegy", 0},
  298. {193, ITEM_TIPO_VEICULOMOD, 1150, "Rear Bumper Alien Flash", 0},
  299. {194, ITEM_TIPO_VEICULOMOD, 1151, "Rear Bumper X-Flow Flash", 0},
  300. {195, ITEM_TIPO_VEICULOMOD, 1152, "Front Bumper X-Flow Flash", 0},
  301. {196, ITEM_TIPO_VEICULOMOD, 1153, "Front Bumper Alien Flash", 0},
  302. {197, ITEM_TIPO_VEICULOMOD, 1154, "Rear Bumper Alien Stratum", 0},
  303. {198, ITEM_TIPO_VEICULOMOD, 1155, "Front Bumper Alien Stratum", 0},
  304. {199, ITEM_TIPO_VEICULOMOD, 1156, "Rear Bumper X-Flow Stratum", 0},
  305. {200, ITEM_TIPO_VEICULOMOD, 1157, "Front Bumper X-Flow Stratum", 0},
  306. {201, ITEM_TIPO_VEICULOMOD, 1158, "Spoiler X-Flow Jester", 0},
  307. {202, ITEM_TIPO_VEICULOMOD, 1159, "Rear Bumper Alien Jester", 0},
  308. {203, ITEM_TIPO_VEICULOMOD, 1160, "Front Bumper Alien Jester", 0},
  309. {204, ITEM_TIPO_VEICULOMOD, 1161, "Rear Bumper X-Flow Jester", 0},
  310. {205, ITEM_TIPO_VEICULOMOD, 1162, "Spoiler Alien Jester", 0},
  311. {206, ITEM_TIPO_VEICULOMOD, 1163, "Spoiler X-Flow Uranus", 0},
  312. {207, ITEM_TIPO_VEICULOMOD, 1164, "Spoiler Alien Uranus", 0},
  313. {208, ITEM_TIPO_VEICULOMOD, 1165, "Front Bumper X-Flow Uranus", 0},
  314. {209, ITEM_TIPO_VEICULOMOD, 1166, "Front Bumper Alien Uranus", 0},
  315. {210, ITEM_TIPO_VEICULOMOD, 1167, "Rear Bumper X-Flow Uranus", 0},
  316. {211, ITEM_TIPO_VEICULOMOD, 1168, "Rear Bumper Alien Uranus", 0},
  317. {212, ITEM_TIPO_VEICULOMOD, 1169, "Front Bumper Alien Sultan", 0},
  318. {213, ITEM_TIPO_VEICULOMOD, 1170, "Front Bumper X-Flow Sultan", 0},
  319. {214, ITEM_TIPO_VEICULOMOD, 1171, "Front Bumper Alien Elegy", 0},
  320. {215, ITEM_TIPO_VEICULOMOD, 1172, "Front Bumper X-Flow Elegy", 0},
  321. {216, ITEM_TIPO_VEICULOMOD, 1173, "Front Bumper X-Flow Jester", 0},
  322. {217, ITEM_TIPO_VEICULOMOD, 1174, "Front Bumper Chrome Broadway", 0},
  323. {218, ITEM_TIPO_VEICULOMOD, 1175, "Front Bumper Slamin Broadway", 0},
  324. {219, ITEM_TIPO_VEICULOMOD, 1176, "Rear Bumper Chrome Broadway", 0},
  325. {220, ITEM_TIPO_VEICULOMOD, 1177, "Rear Bumper Slamin Broadway", 0},
  326. {221, ITEM_TIPO_VEICULOMOD, 1178, "Rear Bumper Slamin Remington", 0},
  327. {222, ITEM_TIPO_VEICULOMOD, 1179, "Front Bumper Chrome Remington", 0},
  328. {223, ITEM_TIPO_VEICULOMOD, 1180, "Rear Bumper Chrome Remington", 0},
  329. {224, ITEM_TIPO_VEICULOMOD, 1181, "Front Bumper Slamin Blade", 0},
  330. {225, ITEM_TIPO_VEICULOMOD, 1182, "Front Bumper Chrome Blade", 0},
  331. {226, ITEM_TIPO_VEICULOMOD, 1183, "Rear Bumper Slamin Blade", 0},
  332. {227, ITEM_TIPO_VEICULOMOD, 1184, "Rear Bumper Chrome Blade", 0},
  333. {228, ITEM_TIPO_VEICULOMOD, 1185, "Front Bumper Slamin Remington", 0},
  334. {229, ITEM_TIPO_VEICULOMOD, 1186, "Rear Bumper Slamin Savanna", 0},
  335. {230, ITEM_TIPO_VEICULOMOD, 1187, "Rear Bumper Chrome Savanna", 0},
  336. {231, ITEM_TIPO_VEICULOMOD, 1188, "Front Bumper Slamin Savanna", 0},
  337. {232, ITEM_TIPO_VEICULOMOD, 1189, "Front Bumper Chrome Savanna", 0},
  338. {233, ITEM_TIPO_VEICULOMOD, 1190, "Front Bumper Slamin Tornado", 0},
  339. {234, ITEM_TIPO_VEICULOMOD, 1191, "Front Bumper Chrome Tornado", 0},
  340. {235, ITEM_TIPO_VEICULOMOD, 1192, "Rear Bumper Chrome Tornado", 0},
  341. {236, ITEM_TIPO_VEICULOMOD, 1193, "Rear Bumper Slamin Tornado", 0},
  342.  
  343. {237, ITEM_TIPO_DROGA, 1578, "Marijuana", 0},
  344. {238, ITEM_TIPO_DROGA, 1575, "Cocaina", 0},
  345. {239, ITEM_TIPO_DROGA, 1580, "Crack", 0},
  346. {240, ITEM_TIPO_DROGA, 1579, "Ecstasy", 0},
  347. {241, ITEM_TIPO_MATERIAL, 1271, "Material", 0},
  348. {242, ITEM_TIPO_MATERIAL, 1241, "Remedio", 0}
  349. };
  350.  
  351.  
  352. command(ajudainv, playerid, params []) {
  353. SendClientMessage(playerid, -1, "ignorem a ma organizacao do comando, é apenas para ajudar no beta.. Axl agradece!");
  354. SendClientMessage(playerid, -1, "os itens vao de 0 a 242, nao crie um item com o id 0, pois por enquanto é o id nulo");
  355. SendClientMessage(playerid, -1, "Não é possivel selecionar na aba outros, use /comprarinv para pegar um inventario");
  356. SendClientMessage(playerid, -1, "para abrir o inventario aperte a letra Y, para pegar um item do chao se abaixei (c) e use left alt");
  357. SendClientMessage(playerid, -1, "outros comandos /guardar /comprarinv /criaritem [id do jogador onde vai spawnar] [itemid]");
  358. return true;
  359. }
  360. command(abrir, playerid, params[])
  361. {
  362. return 1;
  363. }
  364. command(guardar, playerid, params []) {
  365. new string[256], stringCmd[32], armaBalas, armaIndex;
  366. if(sscanf(params, "s", stringCmd)) {
  367. SendClientMessage(playerid, -1, " {FFFFFF}[{F44336}!]{FFFFFF} Lista de itens: {F44336}colete{FFFFFF}, {F44336}arma{FFFFFF} e {F44336}alimento{FFFFFF}.");
  368. SendClientMessage(playerid, -1, " {FFFFFF}[{4CAF50}?]{FFFFFF} Para guardar use o comando e em seguida o nome do item que deseja guardar, {4CAF50}veja o exemplo{FFFFFF}:");
  369. SendClientMessage(playerid, -1, " {FFFFFF}[{F44336}exemplo]{FFFFFF} /guardar {F44336}arma {BDBDBD}(ou seja ira guardar sua arma atual, que voce possue em sua mao.)");
  370. return true;
  371. }
  372.  
  373. if(!strcmp(stringCmd, "arma", true)) {
  374. if(GetPlayerWeapon(playerid) == 0) return true;
  375. armaIndex = GetPlayerWeapon(playerid);
  376. armaBalas = GetPlayerAmmo(playerid);
  377.  
  378. for(new i = 0; i < 15; i++) {
  379. if(pInventario[playerid][i][inv_item_ativo] == true) continue;
  380. pInventario[playerid][i][inv_item_ativo] = true;
  381.  
  382. for(new armaId = 0; armaId < MAX_SERVER_ITENS; armaId++) {
  383. if(armaIndex == serverItens[armaId][sItem_arma_model]) {
  384. pInventario[playerid][i][inv_item_index] = armaId;
  385. break;
  386. }
  387. }
  388.  
  389. pInventario[playerid][i][inv_armaIndex] = armaIndex;
  390. pInventario[playerid][i][inv_armaBalas] = armaBalas;
  391.  
  392. RemovePlayerWeapon(playerid, armaIndex);
  393.  
  394. format(string, sizeof string, "Voce {4CAF50}colocou{FFFFFF} uma {F44336}%s{FFFFFF} com {F44336}%d{FFFFFF} balas no slot {F44336}%d{FFFFFF} do seu inventario.", serverItens[pInventario[playerid][i][inv_item_index]][sItem_nome], armaBalas, i);
  395. SendClientMessage(playerid, -1, string);
  396. break;
  397. }
  398. return true;
  399. }
  400. else if(!strcmp(stringCmd, "colete", true)) {
  401. new Float:armour;
  402. GetPlayerArmour(playerid, armour);
  403. if(armour < 1) return SendClientMessage(playerid, -1, "Voce nao possue um colete.");
  404. for(new i = 0; i < 15; i++) {
  405. if(pInventario[playerid][i][inv_item_ativo] == true) continue;
  406. pInventario[playerid][i][inv_item_ativo] = true;
  407.  
  408. pInventario[playerid][i][inv_item_index] = 40;
  409. pInventario[playerid][i][inv_coleteStatus] = armour;
  410.  
  411. SetPlayerArmour(playerid, 0);
  412. break;
  413. }
  414. return true;
  415. }
  416. else if(!strcmp(stringCmd, "alimento", true)) return SendClientMessage(playerid, -1, "[erro 404] ++info.Desculpe mas este sistema ainda nao foi implantado.");
  417. return true;
  418. }
  419. command(comprarinv, playerid, params []) {
  420. ShowPlayerDialog(playerid, DIALOG_COMPRAR_INVENTARIO, DIALOG_STYLE_LIST, "Escolha o tamanho do seu inventario", "{FFFFFF}Inventario {EC407A}Pequeno\n{FFFFFF}Inventario {2196F3}Medio\n{FFFFFF}Inventario {F44336}Grande", "Comprar", "Cancelar/fechar");
  421. return true;
  422. }
  423. command(criaritem, playerid, params []) {
  424. new indexPlayeridCommand, indexCommand;
  425. if(sscanf(params, "dd", indexPlayeridCommand, indexCommand)) {
  426. return true;
  427. }
  428. GivePlayerPositionItem(indexPlayeridCommand, indexCommand);
  429. return true;
  430. }
  431.  
  432. invOnFilterScriptInit() {
  433. for(new i = 0; i < 350; i++) {
  434. if(serverItens[i][sItem_modelo] > 0) printf("[ %d ] >> %s >> (%d)", i, serverItens[i][sItem_nome], serverItens[i][sItem_modelo]);
  435. else printf("[ %d ] < empty slot > ]", i);
  436. }
  437. return true;
  438. }
  439. invOnPlayerConnect(playerid) {
  440. inventario_item_nome[playerid] = CreatePlayerTextDraw(playerid, 129.765731, 352.166534, "nome do item");
  441. PlayerTextDrawLetterSize(playerid, inventario_item_nome[playerid], 0.222430, 0.829998);
  442. PlayerTextDrawTextSize(playerid, inventario_item_nome[playerid], 477.255004, 0.000000);
  443. PlayerTextDrawAlignment(playerid, inventario_item_nome[playerid], 1);
  444. PlayerTextDrawColor(playerid, inventario_item_nome[playerid], -1);
  445. PlayerTextDrawUseBox(playerid, inventario_item_nome[playerid], 1);
  446. PlayerTextDrawBoxColor(playerid, inventario_item_nome[playerid], 555819397);
  447. PlayerTextDrawSetShadow(playerid, inventario_item_nome[playerid], 0);
  448. PlayerTextDrawSetOutline(playerid, inventario_item_nome[playerid], 0);
  449. PlayerTextDrawBackgroundColor(playerid, inventario_item_nome[playerid], 255);
  450. PlayerTextDrawFont(playerid, inventario_item_nome[playerid], 2);
  451. PlayerTextDrawSetProportional(playerid, inventario_item_nome[playerid], 1);
  452. PlayerTextDrawSetShadow(playerid, inventario_item_nome[playerid], 0);
  453.  
  454. inventario_fundo[playerid] = CreatePlayerTextDraw(playerid, 129.765762, 87.916656, "box");
  455. PlayerTextDrawLetterSize(playerid, inventario_fundo[playerid], 0.000000, 28.693992);
  456. PlayerTextDrawTextSize(playerid, inventario_fundo[playerid], 477.437713, 0.000000);
  457. PlayerTextDrawAlignment(playerid, inventario_fundo[playerid], 1);
  458. PlayerTextDrawColor(playerid, inventario_fundo[playerid], -16777094);
  459. PlayerTextDrawUseBox(playerid, inventario_fundo[playerid], 1);
  460. PlayerTextDrawBoxColor(playerid, inventario_fundo[playerid], 0x00000047);
  461. PlayerTextDrawSetShadow(playerid, inventario_fundo[playerid], 0);
  462. PlayerTextDrawSetOutline(playerid, inventario_fundo[playerid], 0);
  463. PlayerTextDrawBackgroundColor(playerid, inventario_fundo[playerid], 0x00000047);
  464. PlayerTextDrawFont(playerid, inventario_fundo[playerid], 1);
  465. PlayerTextDrawSetProportional(playerid, inventario_fundo[playerid], 1);
  466. PlayerTextDrawSetShadow(playerid, inventario_fundo[playerid], 0);
  467.  
  468. inventario_aba[playerid][0] = CreatePlayerTextDraw(playerid, 129.765762, 87.916656, "box");
  469. PlayerTextDrawLetterSize(playerid, inventario_aba[playerid][0], 0.000000, 1.941436);
  470. PlayerTextDrawTextSize(playerid, inventario_aba[playerid][0], 477.438110, 0.000000);
  471. PlayerTextDrawAlignment(playerid, inventario_aba[playerid][0], 1);
  472. PlayerTextDrawColor(playerid, inventario_aba[playerid][0], -1);
  473. PlayerTextDrawUseBox(playerid, inventario_aba[playerid][0], 1);
  474. PlayerTextDrawBoxColor(playerid, inventario_aba[playerid][0], -6815489);
  475. PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][0], 0);
  476. PlayerTextDrawSetOutline(playerid, inventario_aba[playerid][0], 0);
  477. PlayerTextDrawBackgroundColor(playerid, inventario_aba[playerid][0], 255);
  478. PlayerTextDrawFont(playerid, inventario_aba[playerid][0], 1);
  479. PlayerTextDrawSetProportional(playerid, inventario_aba[playerid][0], 1);
  480. PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][0], 0);
  481.  
  482. inventario_aba[playerid][1] = CreatePlayerTextDraw(playerid, 131.171279, 89.083351, "Inventario");
  483. PlayerTextDrawLetterSize(playerid, inventario_aba[playerid][1], 0.250072, 1.617500);
  484. PlayerTextDrawAlignment(playerid, inventario_aba[playerid][1], 1);
  485. PlayerTextDrawColor(playerid, inventario_aba[playerid][1], -1);
  486. PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][1], 0);
  487. PlayerTextDrawSetOutline(playerid, inventario_aba[playerid][1], 0);
  488. PlayerTextDrawBackgroundColor(playerid, inventario_aba[playerid][1], 255);
  489. PlayerTextDrawFont(playerid, inventario_aba[playerid][1], 2);
  490. PlayerTextDrawSetProportional(playerid, inventario_aba[playerid][1], 1);
  491. PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][1], 0);
  492.  
  493. backgroundinv[playerid][0] = CreatePlayerTextDraw(playerid, 132.500000, 112.999984, "box");
  494. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][0], 0.000000, 7.999998);
  495. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][0], 196.000000, 0.000000);
  496. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][0], 1);
  497. PlayerTextDrawColor(playerid, backgroundinv[playerid][0], -1);
  498. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][0], 1);
  499. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][0], -1633771777);
  500. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][0], 0);
  501. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][0], 0);
  502. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][0], 255);
  503. PlayerTextDrawFont(playerid, backgroundinv[playerid][0], 1);
  504. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][0], 1);
  505. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][0], 0);
  506.  
  507. backgroundinv[playerid][1] = CreatePlayerTextDraw(playerid, 202.000000, 113.000007, "box");
  508. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][1], 0.000000, 7.999998);
  509. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][1], 265.500000, 0.000000);
  510. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][1], 1);
  511. PlayerTextDrawColor(playerid, backgroundinv[playerid][1], -1);
  512. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][1], 1);
  513. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][1], -1633771777);
  514. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][1], 0);
  515. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][1], 0);
  516. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][1], 255);
  517. PlayerTextDrawFont(playerid, backgroundinv[playerid][1], 1);
  518. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][1], 1);
  519. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][1], 0);
  520.  
  521. backgroundinv[playerid][2] = CreatePlayerTextDraw(playerid, 272.000000, 113.000015, "box");
  522. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][2], 0.000000, 7.999998);
  523. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][2], 335.500000, 0.000000);
  524. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][2], 1);
  525. PlayerTextDrawColor(playerid, backgroundinv[playerid][2], -1);
  526. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][2], 1);
  527. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][2], -1633771777);
  528. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][2], 0);
  529. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][2], 0);
  530. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][2], 255);
  531. PlayerTextDrawFont(playerid, backgroundinv[playerid][2], 1);
  532. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][2], 1);
  533. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][2], 0);
  534.  
  535. backgroundinv[playerid][3] = CreatePlayerTextDraw(playerid, 342.000000, 112.999984, "box");
  536. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][3], 0.000000, 7.999998);
  537. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][3], 405.500000, 0.000000);
  538. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][3], 1);
  539. PlayerTextDrawColor(playerid, backgroundinv[playerid][3], -1);
  540. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][3], 1);
  541. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][3], -1633771777);
  542. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][3], 0);
  543. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][3], 0);
  544. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][3], 255);
  545. PlayerTextDrawFont(playerid, backgroundinv[playerid][3], 1);
  546. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][3], 1);
  547. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][3], 0);
  548.  
  549. backgroundinv[playerid][4] = CreatePlayerTextDraw(playerid, 411.500000, 112.999984, "box");
  550. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][4], 0.000000, 7.999998);
  551. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][4], 475.000000, 0.000000);
  552. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][4], 1);
  553. PlayerTextDrawColor(playerid, backgroundinv[playerid][4], -1);
  554. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][4], 1);
  555. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][4], -1633771777);
  556. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][4], 0);
  557. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][4], 0);
  558. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][4], 255);
  559. PlayerTextDrawFont(playerid, backgroundinv[playerid][4], 1);
  560. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][4], 1);
  561. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][4], 0);
  562.  
  563. backgroundinv[playerid][5] = CreatePlayerTextDraw(playerid, 132.500000, 191.750030, "box");
  564. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][5], 0.000000, 7.999998);
  565. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][5], 196.000000, 0.000000);
  566. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][5], 1);
  567. PlayerTextDrawColor(playerid, backgroundinv[playerid][5], -1);
  568. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][5], 1);
  569. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][5], -1633771777);
  570. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][5], 0);
  571. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][5], 0);
  572. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][5], 255);
  573. PlayerTextDrawFont(playerid, backgroundinv[playerid][5], 1);
  574. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][5], 1);
  575. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][5], 0);
  576.  
  577. backgroundinv[playerid][6] = CreatePlayerTextDraw(playerid, 202.000000, 191.750045, "box");
  578. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][6], 0.000000, 7.999998);
  579. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][6], 265.500000, 0.000000);
  580. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][6], 1);
  581. PlayerTextDrawColor(playerid, backgroundinv[playerid][6], -1);
  582. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][6], 1);
  583. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][6], -1633771777);
  584. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][6], 0);
  585. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][6], 0);
  586. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][6], 255);
  587. PlayerTextDrawFont(playerid, backgroundinv[playerid][6], 1);
  588. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][6], 1);
  589. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][6], 0);
  590.  
  591. backgroundinv[playerid][7] = CreatePlayerTextDraw(playerid, 272.000000, 191.750045, "box");
  592. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][7], 0.000000, 7.999998);
  593. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][7], 335.500000, 0.000000);
  594. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][7], 1);
  595. PlayerTextDrawColor(playerid, backgroundinv[playerid][7], -1);
  596. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][7], 1);
  597. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][7], -1633771777);
  598. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][7], 0);
  599. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][7], 0);
  600. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][7], 255);
  601. PlayerTextDrawFont(playerid, backgroundinv[playerid][7], 1);
  602. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][7], 1);
  603. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][7], 0);
  604.  
  605. backgroundinv[playerid][8] = CreatePlayerTextDraw(playerid, 341.500000, 191.750045, "box");
  606. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][8], 0.000000, 7.999998);
  607. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][8], 405.000000, 0.000000);
  608. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][8], 1);
  609. PlayerTextDrawColor(playerid, backgroundinv[playerid][8], -1);
  610. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][8], 1);
  611. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][8], -1633771777);
  612. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][8], 0);
  613. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][8], 0);
  614. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][8], 255);
  615. PlayerTextDrawFont(playerid, backgroundinv[playerid][8], 1);
  616. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][8], 1);
  617. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][8], 0);
  618.  
  619. backgroundinv[playerid][9] = CreatePlayerTextDraw(playerid, 411.500000, 191.750076, "box");
  620. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][9], 0.000000, 7.999998);
  621. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][9], 475.000000, 0.000000);
  622. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][9], 1);
  623. PlayerTextDrawColor(playerid, backgroundinv[playerid][9], -1);
  624. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][9], 1);
  625. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][9], -1633771777);
  626. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][9], 0);
  627. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][9], 0);
  628. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][9], 255);
  629. PlayerTextDrawFont(playerid, backgroundinv[playerid][9], 1);
  630. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][9], 1);
  631. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][9], 0);
  632.  
  633. backgroundinv[playerid][10] = CreatePlayerTextDraw(playerid, 132.500000, 270.499969, "box");
  634. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][10], 0.000000, 7.999998);
  635. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][10], 196.000000, 0.000000);
  636. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][10], 1);
  637. PlayerTextDrawColor(playerid, backgroundinv[playerid][10], -1);
  638. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][10], 1);
  639. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][10], -1633771777);
  640. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][10], 0);
  641. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][10], 0);
  642. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][10], 255);
  643. PlayerTextDrawFont(playerid, backgroundinv[playerid][10], 1);
  644. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][10], 1);
  645. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][10], 0);
  646.  
  647. backgroundinv[playerid][11] = CreatePlayerTextDraw(playerid, 202.000000, 270.499938, "box");
  648. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][11], 0.000000, 7.999998);
  649. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][11], 265.500000, 0.000000);
  650. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][11], 1);
  651. PlayerTextDrawColor(playerid, backgroundinv[playerid][11], -1);
  652. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][11], 1);
  653. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][11], -1633771777);
  654. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][11], 0);
  655. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][11], 0);
  656. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][11], 255);
  657. PlayerTextDrawFont(playerid, backgroundinv[playerid][11], 1);
  658. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][11], 1);
  659. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][11], 0);
  660.  
  661. backgroundinv[playerid][12] = CreatePlayerTextDraw(playerid, 272.000000, 270.499908, "box");
  662. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][12], 0.000000, 7.999998);
  663. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][12], 335.500000, 0.000000);
  664. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][12], 1);
  665. PlayerTextDrawColor(playerid, backgroundinv[playerid][12], -1);
  666. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][12], 1);
  667. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][12], -1633771777);
  668. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][12], 0);
  669. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][12], 0);
  670. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][12], 255);
  671. PlayerTextDrawFont(playerid, backgroundinv[playerid][12], 1);
  672. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][12], 1);
  673. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][12], 0);
  674.  
  675. backgroundinv[playerid][13] = CreatePlayerTextDraw(playerid, 341.500000, 270.499908, "box");
  676. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][13], 0.000000, 7.999998);
  677. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][13], 405.000000, 0.000000);
  678. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][13], 1);
  679. PlayerTextDrawColor(playerid, backgroundinv[playerid][13], -1);
  680. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][13], 1);
  681. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][13], -1633771777);
  682. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][13], 0);
  683. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][13], 0);
  684. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][13], 255);
  685. PlayerTextDrawFont(playerid, backgroundinv[playerid][13], 1);
  686. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][13], 1);
  687. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][13], 0);
  688.  
  689. backgroundinv[playerid][14] = CreatePlayerTextDraw(playerid, 411.500000, 270.499877, "box");
  690. PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][14], 0.000000, 7.999998);
  691. PlayerTextDrawTextSize(playerid, backgroundinv[playerid][14], 475.000000, 0.000000);
  692. PlayerTextDrawAlignment(playerid, backgroundinv[playerid][14], 1);
  693. PlayerTextDrawColor(playerid, backgroundinv[playerid][14], -1);
  694. PlayerTextDrawUseBox(playerid, backgroundinv[playerid][14], 1);
  695. PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][14], -1633771777);
  696. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][14], 0);
  697. PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][14], 0);
  698. PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][14], 255);
  699. PlayerTextDrawFont(playerid, backgroundinv[playerid][14], 1);
  700. PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][14], 1);
  701. PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][14], 0);
  702.  
  703. inventario_index[playerid][0] = CreatePlayerTextDraw(playerid, 130.065917, 110.666687, "");
  704. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][0], 0.000000, 0.000000);
  705. PlayerTextDrawTextSize(playerid, inventario_index[playerid][0], 67.979507, 76.583335);
  706. PlayerTextDrawAlignment(playerid, inventario_index[playerid][0], 1);
  707. PlayerTextDrawColor(playerid, inventario_index[playerid][0], -1);
  708. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][0], 0);
  709. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][0], 0);
  710. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][0], -1633771777);
  711. PlayerTextDrawFont(playerid, inventario_index[playerid][0], 5);
  712. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][0], 1);
  713. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][0], 0);
  714. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][0], true);
  715. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], 18631);
  716. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][0], 0.000000, -30, 0.000000, 2.2);
  717.  
  718. inventario_index[playerid][1] = CreatePlayerTextDraw(playerid, 199.875564, 110.666687, "");
  719. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][1], 0.000000, 0.000000);
  720. PlayerTextDrawTextSize(playerid, inventario_index[playerid][1], 67.979507, 76.583335);
  721. PlayerTextDrawAlignment(playerid, inventario_index[playerid][1], 1);
  722. PlayerTextDrawColor(playerid, inventario_index[playerid][1], -1);
  723. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][1], 0);
  724. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][1], 0);
  725. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][1], -1633771777);
  726. PlayerTextDrawFont(playerid, inventario_index[playerid][1], 5);
  727. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][1], 1);
  728. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][1], 0);
  729. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][1], true);
  730. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], 18631);
  731. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][1], 0.000000, -30, 0.000000, 2.2);
  732.  
  733. inventario_index[playerid][2] = CreatePlayerTextDraw(playerid, 269.685333, 110.666679, "");
  734. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][2], 0.000000, 0.000000);
  735. PlayerTextDrawTextSize(playerid, inventario_index[playerid][2], 67.979507, 76.583335);
  736. PlayerTextDrawAlignment(playerid, inventario_index[playerid][2], 1);
  737. PlayerTextDrawColor(playerid, inventario_index[playerid][2], -1);
  738. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][2], 0);
  739. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][2], 0);
  740. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][2], -1633771777);
  741. PlayerTextDrawFont(playerid, inventario_index[playerid][2], 5);
  742. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][2], 1);
  743. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][2], 0);
  744. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][2], true);
  745. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], 18631);
  746. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][2], 0.000000, -30, 0.000000, 2.2);
  747.  
  748. inventario_index[playerid][3] = CreatePlayerTextDraw(playerid, 339.495361, 110.666687, "");
  749. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][3], 0.000000, 0.000000);
  750. PlayerTextDrawTextSize(playerid, inventario_index[playerid][3], 67.979507, 76.583335);
  751. PlayerTextDrawAlignment(playerid, inventario_index[playerid][3], 1);
  752. PlayerTextDrawColor(playerid, inventario_index[playerid][3], -1);
  753. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][3], 0);
  754. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][3], 0);
  755. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][3], -1633771777);
  756. PlayerTextDrawFont(playerid, inventario_index[playerid][3], 5);
  757. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][3], 1);
  758. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][3], 0);
  759. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][3], true);
  760. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], 18631);
  761. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][3], 0.000000, -30, 0.000000, 2.2);
  762.  
  763. inventario_index[playerid][4] = CreatePlayerTextDraw(playerid, 409.305206, 110.666694, "");
  764. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][4], 0.000000, 0.000000);
  765. PlayerTextDrawTextSize(playerid, inventario_index[playerid][4], 67.979507, 76.583335);
  766. PlayerTextDrawAlignment(playerid, inventario_index[playerid][4], 1);
  767. PlayerTextDrawColor(playerid, inventario_index[playerid][4], -1);
  768. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][4], 0);
  769. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][4], 0);
  770. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][4], -1633771777);
  771. PlayerTextDrawFont(playerid, inventario_index[playerid][4], 5);
  772. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][4], 1);
  773. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][4], 0);
  774. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][4], true);
  775. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], 18631);
  776. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][4], 0.000000, -30, 0.000000, 2.2);
  777.  
  778. inventario_index[playerid][5] = CreatePlayerTextDraw(playerid, 130.066528, 189.416717, "");
  779. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][5], 0.000000, 0.000000);
  780. PlayerTextDrawTextSize(playerid, inventario_index[playerid][5], 67.979507, 76.583335);
  781. PlayerTextDrawAlignment(playerid, inventario_index[playerid][5], 1);
  782. PlayerTextDrawColor(playerid, inventario_index[playerid][5], -1);
  783. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][5], 0);
  784. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][5], 0);
  785. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][5], -1633771777);
  786. PlayerTextDrawFont(playerid, inventario_index[playerid][5], 5);
  787. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][5], 1);
  788. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][5], 0);
  789. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][5], true);
  790. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], 18631);
  791. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][5], 0.000000, -30, 0.000000, 2.2);
  792.  
  793. inventario_index[playerid][6] = CreatePlayerTextDraw(playerid, 199.876174, 189.416717, "");
  794. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][6], 0.000000, 0.000000);
  795. PlayerTextDrawTextSize(playerid, inventario_index[playerid][6], 67.979507, 76.583335);
  796. PlayerTextDrawAlignment(playerid, inventario_index[playerid][6], 1);
  797. PlayerTextDrawColor(playerid, inventario_index[playerid][6], -1);
  798. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][6], 0);
  799. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][6], 0);
  800. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][6], -1633771777);
  801. PlayerTextDrawFont(playerid, inventario_index[playerid][6], 5);
  802. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][6], 1);
  803. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][6], 0);
  804. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][6], true);
  805. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][6], 18631);
  806. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][6], 0.000000, -30, 0.000000, 2.2);
  807.  
  808. inventario_index[playerid][7] = CreatePlayerTextDraw(playerid, 269.685821, 189.416717, "");
  809. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][7], 0.000000, 0.000000);
  810. PlayerTextDrawTextSize(playerid, inventario_index[playerid][7], 67.979507, 76.583335);
  811. PlayerTextDrawAlignment(playerid, inventario_index[playerid][7], 1);
  812. PlayerTextDrawColor(playerid, inventario_index[playerid][7], -1);
  813. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][7], 0);
  814. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][7], 0);
  815. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][7], -1633771777);
  816. PlayerTextDrawFont(playerid, inventario_index[playerid][7], 5);
  817. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][7], 1);
  818. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][7], 0);
  819. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][7], true);
  820. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][7], 18631);
  821. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][7], 0.000000, -30, 0.000000, 2.2);
  822.  
  823. inventario_index[playerid][8] = CreatePlayerTextDraw(playerid, 339.495788, 189.416717, "");
  824. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][8], 0.000000, 0.000000);
  825. PlayerTextDrawTextSize(playerid, inventario_index[playerid][8], 67.979507, 76.583335);
  826. PlayerTextDrawAlignment(playerid, inventario_index[playerid][8], 1);
  827. PlayerTextDrawColor(playerid, inventario_index[playerid][8], -1);
  828. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][8], 0);
  829. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][8], 0);
  830. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][8], -1633771777);
  831. PlayerTextDrawFont(playerid, inventario_index[playerid][8], 5);
  832. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][8], 1);
  833. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][8], 0);
  834. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][8], true);
  835. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][8], 18631);
  836. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][8], 0.000000, -30, 0.000000, 2.2);
  837.  
  838. inventario_index[playerid][9] = CreatePlayerTextDraw(playerid, 409.305450, 189.416732, "");
  839. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][9], 0.000000, 0.000000);
  840. PlayerTextDrawTextSize(playerid, inventario_index[playerid][9], 67.979507, 76.583335);
  841. PlayerTextDrawAlignment(playerid, inventario_index[playerid][9], 1);
  842. PlayerTextDrawColor(playerid, inventario_index[playerid][9], -1);
  843. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][9], 0);
  844. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][9], 0);
  845. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][9], -1633771777);
  846. PlayerTextDrawFont(playerid, inventario_index[playerid][9], 5);
  847. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][9], 1);
  848. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][9], 0);
  849. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][9], true);
  850. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][9], 18631);
  851. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][9], 0.000000, -30, 0.000000, 2.2);
  852.  
  853. inventario_index[playerid][10] = CreatePlayerTextDraw(playerid, 130.066772, 268.166717, "");
  854. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][10], 0.000000, 0.000000);
  855. PlayerTextDrawTextSize(playerid, inventario_index[playerid][10], 67.979507, 76.583335);
  856. PlayerTextDrawAlignment(playerid, inventario_index[playerid][10], 1);
  857. PlayerTextDrawColor(playerid, inventario_index[playerid][10], -1);
  858. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][10], 0);
  859. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][10], 0);
  860. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][10], -1633771777);
  861. PlayerTextDrawFont(playerid, inventario_index[playerid][10], 5);
  862. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][10], 1);
  863. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][10], 0);
  864. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][10], true);
  865. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][10], 18631);
  866. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][10], 0.000000, -30, 0.000000, 2.2);
  867.  
  868. inventario_index[playerid][11] = CreatePlayerTextDraw(playerid, 199.876419, 268.166687, "");
  869. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][11], 0.000000, 0.000000);
  870. PlayerTextDrawTextSize(playerid, inventario_index[playerid][11], 67.979507, 76.583335);
  871. PlayerTextDrawAlignment(playerid, inventario_index[playerid][11], 1);
  872. PlayerTextDrawColor(playerid, inventario_index[playerid][11], -1);
  873. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][11], 0);
  874. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][11], 0);
  875. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][11], -1633771777);
  876. PlayerTextDrawFont(playerid, inventario_index[playerid][11], 5);
  877. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][11], 1);
  878. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][11], 0);
  879. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][11], true);
  880. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][11], 18631);
  881. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][11], 0.000000, -30, 0.000000, 2.2);
  882.  
  883. inventario_index[playerid][12] = CreatePlayerTextDraw(playerid, 269.686096, 268.166656, "");
  884. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][12], 0.000000, 0.000000);
  885. PlayerTextDrawTextSize(playerid, inventario_index[playerid][12], 67.979507, 76.583335);
  886. PlayerTextDrawAlignment(playerid, inventario_index[playerid][12], 1);
  887. PlayerTextDrawColor(playerid, inventario_index[playerid][12], -1);
  888. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][12], 0);
  889. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][12], 0);
  890. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][12], -1633771777);
  891. PlayerTextDrawFont(playerid, inventario_index[playerid][12], 5);
  892. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][12], 1);
  893. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][12], 0);
  894. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][12], true);
  895. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][12], 18631);
  896. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][12], 0.000000, -30, 0.000000, 2.2);
  897.  
  898. inventario_index[playerid][13] = CreatePlayerTextDraw(playerid, 339.495819, 268.166717, "");
  899. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][13], 0.000000, 0.000000);
  900. PlayerTextDrawTextSize(playerid, inventario_index[playerid][13], 67.979507, 76.583335);
  901. PlayerTextDrawAlignment(playerid, inventario_index[playerid][13], 1);
  902. PlayerTextDrawColor(playerid, inventario_index[playerid][13], -1);
  903. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][13], 0);
  904. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][13], 0);
  905. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][13], -1633771777);
  906. PlayerTextDrawFont(playerid, inventario_index[playerid][13], 5);
  907. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][13], 1);
  908. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][13], 0);
  909. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][13], true);
  910. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][13], 18631);
  911. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][13], 0.000000, -30, 0.000000, 2.2);
  912.  
  913. inventario_index[playerid][14] = CreatePlayerTextDraw(playerid, 409.305450, 268.166778, "");
  914. PlayerTextDrawLetterSize(playerid, inventario_index[playerid][14], 0.000000, 0.000000);
  915. PlayerTextDrawTextSize(playerid, inventario_index[playerid][14], 67.979507, 76.583335);
  916. PlayerTextDrawAlignment(playerid, inventario_index[playerid][14], 1);
  917. PlayerTextDrawColor(playerid, inventario_index[playerid][14], -1);
  918. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][14], 0);
  919. PlayerTextDrawSetOutline(playerid, inventario_index[playerid][14], 0);
  920. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][14], -1633771777);
  921. PlayerTextDrawFont(playerid, inventario_index[playerid][14], 5);
  922. PlayerTextDrawSetProportional(playerid, inventario_index[playerid][14], 1);
  923. PlayerTextDrawSetShadow(playerid, inventario_index[playerid][14], 0);
  924. PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][14], true);
  925. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][14], 18631);
  926. PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][14], 0.000000, -30, 0.000000, 2.2);
  927.  
  928. inventario_fechar[playerid] = CreatePlayerTextDraw(playerid, 482.562377, 322.416503, "Fechar");
  929. PlayerTextDrawLetterSize(playerid, inventario_fechar[playerid], 0.236954, 1.681666);
  930. PlayerTextDrawTextSize(playerid, inventario_fechar[playerid], 521.282897, 10.000000);
  931. PlayerTextDrawAlignment(playerid, inventario_fechar[playerid], 1);
  932. PlayerTextDrawColor(playerid, inventario_fechar[playerid], -1);
  933. PlayerTextDrawUseBox(playerid, inventario_fechar[playerid], 1);
  934. PlayerTextDrawBoxColor(playerid, inventario_fechar[playerid], -196921601);
  935. PlayerTextDrawSetShadow(playerid, inventario_fechar[playerid], 0);
  936. PlayerTextDrawSetOutline(playerid, inventario_fechar[playerid], 0);
  937. PlayerTextDrawBackgroundColor(playerid, inventario_fechar[playerid], 255);
  938. PlayerTextDrawFont(playerid, inventario_fechar[playerid], 2);
  939. PlayerTextDrawSetProportional(playerid, inventario_fechar[playerid], 1);
  940. PlayerTextDrawSetShadow(playerid, inventario_fechar[playerid], 0);
  941. PlayerTextDrawSetSelectable(playerid, inventario_fechar[playerid], true);
  942.  
  943. inventario_usar[playerid] = CreatePlayerTextDraw(playerid, 482.562469, 301.416625, "usar");
  944. PlayerTextDrawLetterSize(playerid, inventario_usar[playerid], 0.236954, 1.681666);
  945. PlayerTextDrawTextSize(playerid, inventario_usar[playerid], 521.282653, 10.000000);
  946. PlayerTextDrawAlignment(playerid, inventario_usar[playerid], 1);
  947. PlayerTextDrawColor(playerid, inventario_usar[playerid], -1);
  948. PlayerTextDrawUseBox(playerid, inventario_usar[playerid], 1);
  949. PlayerTextDrawBoxColor(playerid, inventario_usar[playerid], -6815489);
  950. PlayerTextDrawSetShadow(playerid, inventario_usar[playerid], 0);
  951. PlayerTextDrawSetOutline(playerid, inventario_usar[playerid], 0);
  952. PlayerTextDrawBackgroundColor(playerid, inventario_usar[playerid], 255);
  953. PlayerTextDrawFont(playerid, inventario_usar[playerid], 2);
  954. PlayerTextDrawSetProportional(playerid, inventario_usar[playerid], 1);
  955. PlayerTextDrawSetShadow(playerid, inventario_usar[playerid], 0);
  956. PlayerTextDrawSetSelectable(playerid, inventario_usar[playerid], true);
  957.  
  958. inventario_drop[playerid] = CreatePlayerTextDraw(playerid, 482.562561, 280.416503, "drop");
  959. PlayerTextDrawLetterSize(playerid, inventario_drop[playerid], 0.236954, 1.681666);
  960. PlayerTextDrawTextSize(playerid, inventario_drop[playerid], 521.282714, 10.000000);
  961. PlayerTextDrawAlignment(playerid, inventario_drop[playerid], 1);
  962. PlayerTextDrawColor(playerid, inventario_drop[playerid], -1);
  963. PlayerTextDrawUseBox(playerid, inventario_drop[playerid], 1);
  964. PlayerTextDrawBoxColor(playerid, inventario_drop[playerid], -1633771777);
  965. PlayerTextDrawSetShadow(playerid, inventario_drop[playerid], 0);
  966. PlayerTextDrawSetOutline(playerid, inventario_drop[playerid], 0);
  967. PlayerTextDrawBackgroundColor(playerid, inventario_drop[playerid], 255);
  968. PlayerTextDrawFont(playerid, inventario_drop[playerid], 2);
  969. PlayerTextDrawSetProportional(playerid, inventario_drop[playerid], 1);
  970. PlayerTextDrawSetShadow(playerid, inventario_drop[playerid], 0);
  971. PlayerTextDrawSetSelectable(playerid, inventario_drop[playerid], true);
  972. ///
  973. inventario_opcoes[playerid][0] = CreatePlayerTextDraw(playerid, 213.630889, 162.000015, "box");
  974. PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][0], 0.000000, 10.702780);
  975. PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][0], 414.186737, 0.000000);
  976. PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][0], 1);
  977. PlayerTextDrawColor(playerid, inventario_opcoes[playerid][0], -1);
  978. PlayerTextDrawUseBox(playerid, inventario_opcoes[playerid][0], 1);
  979. PlayerTextDrawBoxColor(playerid, inventario_opcoes[playerid][0], -1633771777);
  980. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][0], 0);
  981. PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][0], 0);
  982. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][0], 255);
  983. PlayerTextDrawFont(playerid, inventario_opcoes[playerid][0], 1);
  984. PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][0], 1);
  985. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][0], 0);
  986.  
  987. inventario_opcoes[playerid][1] = CreatePlayerTextDraw(playerid, 213.931106, 180.083328, "");
  988. PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][1], 0.000000, 0.000000);
  989. PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][1], 69.853591, 77.749946);
  990. PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][1], 1);
  991. PlayerTextDrawColor(playerid, inventario_opcoes[playerid][1], -1);
  992. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][1], 0);
  993. PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][1], 0);
  994. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][1], -1633771777);
  995. PlayerTextDrawFont(playerid, inventario_opcoes[playerid][1], 5);
  996. PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][1], 1);
  997. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][1], 0);
  998. PlayerTextDrawSetPreviewModel(playerid, inventario_opcoes[playerid][1], 336);
  999. PlayerTextDrawSetPreviewRot(playerid, inventario_opcoes[playerid][1], 0.000000, 50.000000, 0.000000, 2.000000);
  1000.  
  1001. inventario_opcoes[playerid][2] = CreatePlayerTextDraw(playerid, 213.631027, 162.000045, "box");
  1002. PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][2], 0.000000, 1.566619);
  1003. PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][2], 414.187805, 0.000000);
  1004. PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][2], 1);
  1005. PlayerTextDrawColor(playerid, inventario_opcoes[playerid][2], -1);
  1006. PlayerTextDrawUseBox(playerid, inventario_opcoes[playerid][2], 1);
  1007. PlayerTextDrawBoxColor(playerid, inventario_opcoes[playerid][2], -6815489);
  1008. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][2], 0);
  1009. PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][2], 0);
  1010. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][2], 255);
  1011. PlayerTextDrawFont(playerid, inventario_opcoes[playerid][2], 1);
  1012. PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][2], 1);
  1013. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][2], 0);
  1014.  
  1015. inventario_opcoes_fechar[playerid] = CreatePlayerTextDraw(playerid, 362.621032, 238.999969, "fechar");
  1016. PlayerTextDrawLetterSize(playerid, inventario_opcoes_fechar[playerid], 0.208373, 1.856665);
  1017. PlayerTextDrawTextSize(playerid, inventario_opcoes_fechar[playerid], 412.599639, 10.000000);
  1018. PlayerTextDrawAlignment(playerid, inventario_opcoes_fechar[playerid], 1);
  1019. PlayerTextDrawColor(playerid, inventario_opcoes_fechar[playerid], -1);
  1020. PlayerTextDrawUseBox(playerid, inventario_opcoes_fechar[playerid], 1);
  1021. PlayerTextDrawBoxColor(playerid, inventario_opcoes_fechar[playerid], -196921601);
  1022. PlayerTextDrawSetShadow(playerid, inventario_opcoes_fechar[playerid], 0);
  1023. PlayerTextDrawSetOutline(playerid, inventario_opcoes_fechar[playerid], 0);
  1024. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_fechar[playerid], 255);
  1025. PlayerTextDrawFont(playerid, inventario_opcoes_fechar[playerid], 2);
  1026. PlayerTextDrawSetProportional(playerid, inventario_opcoes_fechar[playerid], 1);
  1027. PlayerTextDrawSetShadow(playerid, inventario_opcoes_fechar[playerid], 0);
  1028. PlayerTextDrawSetSelectable(playerid, inventario_opcoes_fechar[playerid], true);
  1029.  
  1030. inventario_opcoes_equipar[playerid] = CreatePlayerTextDraw(playerid, 362.621032, 215.083358, "EQUIPAR");
  1031. PlayerTextDrawLetterSize(playerid, inventario_opcoes_equipar[playerid], 0.208373, 1.856665);
  1032. PlayerTextDrawTextSize(playerid, inventario_opcoes_equipar[playerid], 412.599639, 10.000000);
  1033. PlayerTextDrawAlignment(playerid, inventario_opcoes_equipar[playerid], 1);
  1034. PlayerTextDrawColor(playerid, inventario_opcoes_equipar[playerid], -1);
  1035. PlayerTextDrawUseBox(playerid, inventario_opcoes_equipar[playerid], 1);
  1036. PlayerTextDrawBoxColor(playerid, inventario_opcoes_equipar[playerid], 1286557951);
  1037. PlayerTextDrawSetShadow(playerid, inventario_opcoes_equipar[playerid], 0);
  1038. PlayerTextDrawSetOutline(playerid, inventario_opcoes_equipar[playerid], 0);
  1039. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_equipar[playerid], 255);
  1040. PlayerTextDrawFont(playerid, inventario_opcoes_equipar[playerid], 2);
  1041. PlayerTextDrawSetProportional(playerid, inventario_opcoes_equipar[playerid], 1);
  1042. PlayerTextDrawSetShadow(playerid, inventario_opcoes_equipar[playerid], 0);
  1043. PlayerTextDrawSetSelectable(playerid, inventario_opcoes_equipar[playerid], true);
  1044.  
  1045. inventario_opcoes_guardar[playerid] = CreatePlayerTextDraw(playerid, 362.621124, 191.166671, "guardar");
  1046. PlayerTextDrawLetterSize(playerid, inventario_opcoes_guardar[playerid], 0.208373, 1.856665);
  1047. PlayerTextDrawTextSize(playerid, inventario_opcoes_guardar[playerid], 412.599731, 10.000000);
  1048. PlayerTextDrawAlignment(playerid, inventario_opcoes_guardar[playerid], 1);
  1049. PlayerTextDrawColor(playerid, inventario_opcoes_guardar[playerid], -1);
  1050. PlayerTextDrawUseBox(playerid, inventario_opcoes_guardar[playerid], 1);
  1051. PlayerTextDrawBoxColor(playerid, inventario_opcoes_guardar[playerid], 563540991);
  1052. PlayerTextDrawSetShadow(playerid, inventario_opcoes_guardar[playerid], 0);
  1053. PlayerTextDrawSetOutline(playerid, inventario_opcoes_guardar[playerid], 0);
  1054. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_guardar[playerid], 255);
  1055. PlayerTextDrawFont(playerid, inventario_opcoes_guardar[playerid], 2);
  1056. PlayerTextDrawSetProportional(playerid, inventario_opcoes_guardar[playerid], 1);
  1057. PlayerTextDrawSetShadow(playerid, inventario_opcoes_guardar[playerid], 0);
  1058. PlayerTextDrawSetSelectable(playerid, inventario_opcoes_guardar[playerid], true);
  1059.  
  1060. inventario_opcoes[playerid][3] = CreatePlayerTextDraw(playerid, 215.973541, 160.833312, "Inventario");
  1061. PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][3], 0.228989, 1.594166);
  1062. PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][3], 1);
  1063. PlayerTextDrawColor(playerid, inventario_opcoes[playerid][3], -1);
  1064. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][3], 0);
  1065. PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][3], 0);
  1066. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][3], 255);
  1067. PlayerTextDrawFont(playerid, inventario_opcoes[playerid][3], 2);
  1068. PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][3], 1);
  1069. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][3], 0);
  1070.  
  1071. inventario_opcoes[playerid][4] = CreatePlayerTextDraw(playerid, 269.385192, 204.583374, "O que deseja fazer~n~com este item?");
  1072. PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][4], 0.271156, 1.745833);
  1073. PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][4], 1);
  1074. PlayerTextDrawColor(playerid, inventario_opcoes[playerid][4], -1);
  1075. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][4], 0);
  1076. PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][4], 0);
  1077. PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][4], 255);
  1078. PlayerTextDrawFont(playerid, inventario_opcoes[playerid][4], 1);
  1079. PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][4], 1);
  1080. PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][4], 0);
  1081.  
  1082. inventario_item_info[playerid][0] = CreatePlayerTextDraw(playerid, 131.639831, 174.249984, "municao 342");
  1083. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][0], 0.199941, 1.174165);
  1084. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][0], 197.079055, 0.000000);
  1085. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][0], 1);
  1086. PlayerTextDrawColor(playerid, inventario_item_info[playerid][0], -1);
  1087. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][0], 1);
  1088. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][0], 555819397);
  1089. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][0], 0);
  1090. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][0], 0);
  1091. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][0], 255);
  1092. PlayerTextDrawFont(playerid, inventario_item_info[playerid][0], 1);
  1093. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][0], 1);
  1094. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][0], 0);
  1095.  
  1096. inventario_item_info[playerid][1] = CreatePlayerTextDraw(playerid, 200.980957, 174.249938, "municao 342");
  1097. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][1], 0.199941, 1.174165);
  1098. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][1], 266.420104, 0.000000);
  1099. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][1], 1);
  1100. PlayerTextDrawColor(playerid, inventario_item_info[playerid][1], -1);
  1101. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][1], 1);
  1102. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][1], 555819397);
  1103. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][1], 0);
  1104. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][1], 0);
  1105. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][1], 255);
  1106. PlayerTextDrawFont(playerid, inventario_item_info[playerid][1], 1);
  1107. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][1], 1);
  1108. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][1], 0);
  1109.  
  1110. inventario_item_info[playerid][2] = CreatePlayerTextDraw(playerid, 270.322143, 174.249954, "municao 342");
  1111. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][2], 0.199941, 1.174165);
  1112. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][2], 335.761413, 0.000000);
  1113. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][2], 1);
  1114. PlayerTextDrawColor(playerid, inventario_item_info[playerid][2], -1);
  1115. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][2], 1);
  1116. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][2], 555819397);
  1117. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][2], 0);
  1118. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][2], 0);
  1119. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][2], 255);
  1120. PlayerTextDrawFont(playerid, inventario_item_info[playerid][2], 1);
  1121. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][2], 1);
  1122. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][2], 0);
  1123.  
  1124. inventario_item_info[playerid][3] = CreatePlayerTextDraw(playerid, 340.600555, 174.249969, "municao 342");
  1125. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][3], 0.199941, 1.174165);
  1126. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][3], 406.039825, 0.000000);
  1127. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][3], 1);
  1128. PlayerTextDrawColor(playerid, inventario_item_info[playerid][3], -1);
  1129. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][3], 1);
  1130. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][3], 555819397);
  1131. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][3], 0);
  1132. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][3], 0);
  1133. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][3], 255);
  1134. PlayerTextDrawFont(playerid, inventario_item_info[playerid][3], 1);
  1135. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][3], 1);
  1136. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][3], 0);
  1137.  
  1138. inventario_item_info[playerid][4] = CreatePlayerTextDraw(playerid, 409.941955, 174.250000, "municao 342");
  1139. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][4], 0.199941, 1.174165);
  1140. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][4], 475.381225, 0.000000);
  1141. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][4], 1);
  1142. PlayerTextDrawColor(playerid, inventario_item_info[playerid][4], -1);
  1143. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][4], 1);
  1144. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][4], 555819397);
  1145. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][4], 0);
  1146. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][4], 0);
  1147. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][4], 255);
  1148. PlayerTextDrawFont(playerid, inventario_item_info[playerid][4], 1);
  1149. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][4], 1);
  1150. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][4], 0);
  1151.  
  1152. inventario_item_info[playerid][5] = CreatePlayerTextDraw(playerid, 131.640304, 253.583267, "municao 342");
  1153. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][5], 0.199941, 1.174165);
  1154. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][5], 197.079513, 0.000000);
  1155. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][5], 1);
  1156. PlayerTextDrawColor(playerid, inventario_item_info[playerid][5], -1);
  1157. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][5], 1);
  1158. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][5], 555819397);
  1159. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][5], 0);
  1160. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][5], 0);
  1161. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][5], 255);
  1162. PlayerTextDrawFont(playerid, inventario_item_info[playerid][5], 1);
  1163. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][5], 1);
  1164. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][5], 0);
  1165.  
  1166. inventario_item_info[playerid][6] = CreatePlayerTextDraw(playerid, 200.512908, 253.583267, "municao 342");
  1167. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][6], 0.199941, 1.174165);
  1168. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][6], 265.952178, 0.000000);
  1169. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][6], 1);
  1170. PlayerTextDrawColor(playerid, inventario_item_info[playerid][6], -1);
  1171. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][6], 1);
  1172. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][6], 555819397);
  1173. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][6], 0);
  1174. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][6], 0);
  1175. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][6], 255);
  1176. PlayerTextDrawFont(playerid, inventario_item_info[playerid][6], 1);
  1177. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][6], 1);
  1178. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][6], 0);
  1179.  
  1180. inventario_item_info[playerid][7] = CreatePlayerTextDraw(playerid, 270.322631, 253.583236, "municao 342");
  1181. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][7], 0.199941, 1.174165);
  1182. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][7], 335.762023, 0.000000);
  1183. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][7], 1);
  1184. PlayerTextDrawColor(playerid, inventario_item_info[playerid][7], -1);
  1185. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][7], 1);
  1186. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][7], 555819397);
  1187. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][7], 0);
  1188. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][7], 0);
  1189. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][7], 255);
  1190. PlayerTextDrawFont(playerid, inventario_item_info[playerid][7], 1);
  1191. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][7], 1);
  1192. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][7], 0);
  1193.  
  1194. inventario_item_info[playerid][8] = CreatePlayerTextDraw(playerid, 340.600921, 253.583236, "municao 342");
  1195. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][8], 0.199941, 1.174165);
  1196. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][8], 406.040313, 0.000000);
  1197. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][8], 1);
  1198. PlayerTextDrawColor(playerid, inventario_item_info[playerid][8], -1);
  1199. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][8], 1);
  1200. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][8], 555819397);
  1201. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][8], 0);
  1202. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][8], 0);
  1203. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][8], 255);
  1204. PlayerTextDrawFont(playerid, inventario_item_info[playerid][8], 1);
  1205. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][8], 1);
  1206. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][8], 0);
  1207.  
  1208. inventario_item_info[playerid][9] = CreatePlayerTextDraw(playerid, 410.879150, 253.583236, "municao 342");
  1209. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][9], 0.199941, 1.174165);
  1210. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][9], 476.318542, 0.000000);
  1211. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][9], 1);
  1212. PlayerTextDrawColor(playerid, inventario_item_info[playerid][9], -1);
  1213. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][9], 1);
  1214. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][9], 555819397);
  1215. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][9], 0);
  1216. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][9], 0);
  1217. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][9], 255);
  1218. PlayerTextDrawFont(playerid, inventario_item_info[playerid][9], 1);
  1219. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][9], 1);
  1220. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][9], 0);
  1221.  
  1222. inventario_item_info[playerid][10] = CreatePlayerTextDraw(playerid, 131.640457, 332.333160, "municao 342");
  1223. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][10], 0.199941, 1.174165);
  1224. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][10], 197.079788, 0.000000);
  1225. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][10], 1);
  1226. PlayerTextDrawColor(playerid, inventario_item_info[playerid][10], -1);
  1227. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][10], 1);
  1228. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][10], 555819397);
  1229. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][10], 0);
  1230. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][10], 0);
  1231. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][10], 255);
  1232. PlayerTextDrawFont(playerid, inventario_item_info[playerid][10], 1);
  1233. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][10], 1);
  1234. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][10], 0);
  1235.  
  1236. inventario_item_info[playerid][11] = CreatePlayerTextDraw(playerid, 200.981582, 332.333190, "municao 342");
  1237. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][11], 0.199941, 1.174165);
  1238. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][11], 266.420959, 0.000000);
  1239. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][11], 1);
  1240. PlayerTextDrawColor(playerid, inventario_item_info[playerid][11], -1);
  1241. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][11], 1);
  1242. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][11], 555819397);
  1243. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][11], 0);
  1244. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][11], 0);
  1245. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][11], 255);
  1246. PlayerTextDrawFont(playerid, inventario_item_info[playerid][11], 1);
  1247. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][11], 1);
  1248. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][11], 0);
  1249.  
  1250. inventario_item_info[playerid][12] = CreatePlayerTextDraw(playerid, 271.259918, 332.333160, "municao 342");
  1251. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][12], 0.199941, 1.174165);
  1252. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][12], 336.699432, 0.000000);
  1253. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][12], 1);
  1254. PlayerTextDrawColor(playerid, inventario_item_info[playerid][12], -1);
  1255. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][12], 1);
  1256. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][12], 555819397);
  1257. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][12], 0);
  1258. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][12], 0);
  1259. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][12], 255);
  1260. PlayerTextDrawFont(playerid, inventario_item_info[playerid][12], 1);
  1261. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][12], 1);
  1262. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][12], 0);
  1263.  
  1264. inventario_item_info[playerid][13] = CreatePlayerTextDraw(playerid, 340.132720, 332.333099, "municao 342");
  1265. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][13], 0.199941, 1.174165);
  1266. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][13], 405.572235, 0.000000);
  1267. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][13], 1);
  1268. PlayerTextDrawColor(playerid, inventario_item_info[playerid][13], -1);
  1269. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][13], 1);
  1270. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][13], 555819397);
  1271. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][13], 0);
  1272. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][13], 0);
  1273. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][13], 255);
  1274. PlayerTextDrawFont(playerid, inventario_item_info[playerid][13], 1);
  1275. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][13], 1);
  1276. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][13], 0);
  1277.  
  1278. inventario_item_info[playerid][14] = CreatePlayerTextDraw(playerid, 410.879364, 332.333190, "municao 342");
  1279. PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][14], 0.199941, 1.174165);
  1280. PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][14], 476.318878, 0.000000);
  1281. PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][14], 1);
  1282. PlayerTextDrawColor(playerid, inventario_item_info[playerid][14], -1);
  1283. PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][14], 1);
  1284. PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][14], 555819397);
  1285. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][14], 0);
  1286. PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][14], 0);
  1287. PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][14], 255);
  1288. PlayerTextDrawFont(playerid, inventario_item_info[playerid][14], 1);
  1289. PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][14], 1);
  1290. PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][14], 0);
  1291.  
  1292. inventario_tamanho_show[playerid] = CreatePlayerTextDraw(playerid, 130.234085, 94.916633, "TAMANHO > MEDIO");
  1293. PlayerTextDrawLetterSize(playerid, inventario_tamanho_show[playerid], 0.123571, 0.864997);
  1294. PlayerTextDrawAlignment(playerid, inventario_tamanho_show[playerid], 1);
  1295. PlayerTextDrawColor(playerid, inventario_tamanho_show[playerid], 255);
  1296. PlayerTextDrawSetShadow(playerid, inventario_tamanho_show[playerid], 0);
  1297. PlayerTextDrawSetOutline(playerid, inventario_tamanho_show[playerid], 0);
  1298. PlayerTextDrawBackgroundColor(playerid, inventario_tamanho_show[playerid], 255);
  1299. PlayerTextDrawFont(playerid, inventario_tamanho_show[playerid], 2);
  1300. PlayerTextDrawSetProportional(playerid, inventario_tamanho_show[playerid], 1);
  1301. PlayerTextDrawSetShadow(playerid, inventario_tamanho_show[playerid], 0);
  1302.  
  1303. inventario_aba_equipam[playerid] = CreatePlayerTextDraw(playerid, 419.311981, 87.916656, "Equipamentos");
  1304. PlayerTextDrawLetterSize(playerid, inventario_aba_equipam[playerid], 0.191507, 1.214999);
  1305. PlayerTextDrawTextSize(playerid, inventario_aba_equipam[playerid], 477.423614, 10.000000);
  1306. PlayerTextDrawAlignment(playerid, inventario_aba_equipam[playerid], 1);
  1307. PlayerTextDrawColor(playerid, inventario_aba_equipam[playerid], -6815489);
  1308. PlayerTextDrawUseBox(playerid, inventario_aba_equipam[playerid], 1);
  1309. PlayerTextDrawBoxColor(playerid, inventario_aba_equipam[playerid], -1);
  1310. PlayerTextDrawSetShadow(playerid, inventario_aba_equipam[playerid], 0);
  1311. PlayerTextDrawSetOutline(playerid, inventario_aba_equipam[playerid], 0);
  1312. PlayerTextDrawBackgroundColor(playerid, inventario_aba_equipam[playerid], 255);
  1313. PlayerTextDrawFont(playerid, inventario_aba_equipam[playerid], 2);
  1314. PlayerTextDrawSetProportional(playerid, inventario_aba_equipam[playerid], 1);
  1315. PlayerTextDrawSetShadow(playerid, inventario_aba_equipam[playerid], 0);
  1316. PlayerTextDrawSetSelectable(playerid, inventario_aba_equipam[playerid], true);
  1317.  
  1318. inventario_aba_outros[playerid] = CreatePlayerTextDraw(playerid, 386.515625, 87.916679, "OUTROS");
  1319. PlayerTextDrawLetterSize(playerid, inventario_aba_outros[playerid], 0.191507, 1.214999);
  1320. PlayerTextDrawTextSize(playerid, inventario_aba_outros[playerid], 10.000000, 56.222793);
  1321. PlayerTextDrawAlignment(playerid, inventario_aba_outros[playerid], 2);
  1322. PlayerTextDrawColor(playerid, inventario_aba_outros[playerid], -6815489);
  1323. PlayerTextDrawUseBox(playerid, inventario_aba_outros[playerid], 1);
  1324. PlayerTextDrawBoxColor(playerid, inventario_aba_outros[playerid], -1);
  1325. PlayerTextDrawSetShadow(playerid, inventario_aba_outros[playerid], 0);
  1326. PlayerTextDrawSetOutline(playerid, inventario_aba_outros[playerid], 0);
  1327. PlayerTextDrawBackgroundColor(playerid, inventario_aba_outros[playerid], 255);
  1328. PlayerTextDrawFont(playerid, inventario_aba_outros[playerid], 2);
  1329. PlayerTextDrawSetProportional(playerid, inventario_aba_outros[playerid], 1);
  1330. PlayerTextDrawSetShadow(playerid, inventario_aba_outros[playerid], 0);
  1331. PlayerTextDrawSetSelectable(playerid, inventario_aba_outros[playerid], true);
  1332.  
  1333. inventario_outros_info[playerid][0] = CreatePlayerTextDraw(playerid, 163.968643, 112.999839, "COCAINA");
  1334. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][0], 0.199940, 1.174165);
  1335. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][0], 0.000000, 64.020156);
  1336. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][0], 2);
  1337. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][0], -6815489);
  1338. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][0], 1);
  1339. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][0], 555819397);
  1340. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][0], 0);
  1341. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][0], 0);
  1342. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][0], 255);
  1343. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][0], 2);
  1344. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][0], 1);
  1345. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][0], 0);
  1346.  
  1347. inventario_outros_info[playerid][1] = CreatePlayerTextDraw(playerid, 233.778289, 112.999847, "marijuana");
  1348. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][1], 0.199940, 1.174165);
  1349. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][1], 0.000000, 64.020156);
  1350. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][1], 2);
  1351. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][1], -6815489);
  1352. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][1], 1);
  1353. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][1], 555819397);
  1354. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][1], 0);
  1355. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][1], 0);
  1356. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][1], 255);
  1357. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][1], 2);
  1358. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][1], 1);
  1359. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][1], 0);
  1360.  
  1361. inventario_outros_info[playerid][2] = CreatePlayerTextDraw(playerid, 303.588287, 112.999847, "CRACK");
  1362. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][2], 0.199940, 1.174165);
  1363. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][2], 0.000000, 64.020156);
  1364. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][2], 2);
  1365. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][2], -6815489);
  1366. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][2], 1);
  1367. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][2], 555819397);
  1368. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][2], 0);
  1369. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][2], 0);
  1370. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][2], 255);
  1371. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][2], 2);
  1372. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][2], 1);
  1373. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][2], 0);
  1374.  
  1375. inventario_outros_info[playerid][3] = CreatePlayerTextDraw(playerid, 373.397827, 112.999847, "Ecstasy");
  1376. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][3], 0.199940, 1.174165);
  1377. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][3], 0.000000, 64.020156);
  1378. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][3], 2);
  1379. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][3], -6815489);
  1380. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][3], 1);
  1381. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][3], 555819397);
  1382. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][3], 0);
  1383. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][3], 0);
  1384. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][3], 255);
  1385. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][3], 2);
  1386. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][3], 1);
  1387. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][3], 0);
  1388.  
  1389. inventario_outros_info[playerid][4] = CreatePlayerTextDraw(playerid, 443.207580, 112.999839, "MATERIAIS");
  1390. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][4], 0.199940, 1.174165);
  1391. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][4], 0.000000, 64.020156);
  1392. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][4], 2);
  1393. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][4], -65281);
  1394. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][4], 1);
  1395. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][4], 555819397);
  1396. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][4], 0);
  1397. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][4], 0);
  1398. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][4], 255);
  1399. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][4], 2);
  1400. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][4], 1);
  1401. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][4], 0);
  1402.  
  1403. inventario_outros_info[playerid][5] = CreatePlayerTextDraw(playerid, 163.968780, 191.749877, "REMEDIOS");
  1404. PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][5], 0.199940, 1.174165);
  1405. PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][5], 0.000000, 64.020156);
  1406. PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][5], 2);
  1407. PlayerTextDrawColor(playerid, inventario_outros_info[playerid][5], -1);
  1408. PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][5], 1);
  1409. PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][5], 555819397);
  1410. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][5], 0);
  1411. PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][5], 0);
  1412. PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][5], 255);
  1413. PlayerTextDrawFont(playerid, inventario_outros_info[playerid][5], 2);
  1414. PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][5], 1);
  1415. PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][5], 0);
  1416. return true;
  1417. }
  1418. invOnDialogResponse(playerid, dialogid, listitem) {
  1419. switch(dialogid) {
  1420. case DIALOG_COMPRAR_INVENTARIO: {
  1421. switch(listitem) {
  1422. case 0: {
  1423. pInfo[playerid][pMochila] = 1;
  1424. pInfo[playerid][pMochilaAtiva] = true;
  1425. return true;
  1426. }
  1427. case 1: {
  1428. pInfo[playerid][pMochila] = 2;
  1429. pInfo[playerid][pMochilaAtiva] = true;
  1430. return true;
  1431. }
  1432. case 2: {
  1433. pInfo[playerid][pMochila] = 3;
  1434. pInfo[playerid][pMochilaAtiva] = true;
  1435. return true;
  1436. }
  1437. }
  1438. }
  1439. }
  1440. return false;
  1441. }
  1442. invOnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
  1443. new string[128];
  1444. if(GetPVarInt(playerid, "inventario_aba") == 0) {
  1445. for(new i = 0; i < 15; i++) {
  1446. if(playertextid == inventario_index[playerid][i]) {
  1447. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")], -1633771777);
  1448. PlayerTextDrawBackgroundColor(playerid, playertextid, 0x00FF00FF);
  1449.  
  1450. //atualizar
  1451. PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
  1452. PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1453. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1454. PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1455.  
  1456. format(string, sizeof string, "%s", serverItens[pInventario[playerid][i][inv_item_index]][sItem_nome]);
  1457. PlayerTextDrawSetString(playerid, inventario_item_nome[playerid], string);
  1458.  
  1459. SetPVarInt(playerid, "inventario_item_slot_ativo", i);
  1460. break;
  1461. }
  1462. }
  1463. } else SendClientMessage(playerid, -1, "Ainda não é possivel selecionar nessa aba!!");
  1464. if(playertextid == inventario_aba_outros[playerid]) {
  1465. if(GetPVarInt(playerid, "inventario_aba") == 1) return true;
  1466. SetPVarInt(playerid, "inventario_aba", 1);
  1467.  
  1468. format(string, sizeof string, "%s", serverItens[238][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][0], string);
  1469. format(string, sizeof string, "%s", serverItens[237][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][1], string);
  1470. format(string, sizeof string, "%s", serverItens[239][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][2], string);
  1471. format(string, sizeof string, "%s", serverItens[240][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][3], string);
  1472. format(string, sizeof string, "%s", serverItens[241][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][4], string);
  1473. format(string, sizeof string, "%s", serverItens[242][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][5], string);
  1474.  
  1475. format(string, sizeof string, "quant %d", pInventario[playerid][pMarijuana]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][0], string);
  1476. format(string, sizeof string, "quant %d", pInventario[playerid][pCocaina]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][1], string);
  1477. format(string, sizeof string, "quant %d", pInventario[playerid][pCrack]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][2], string);
  1478. format(string, sizeof string, "quant %d", pInventario[playerid][pEcstasy]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][3], string);
  1479. format(string, sizeof string, "quant %d", pInventario[playerid][pMateriais]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][4], string);
  1480. format(string, sizeof string, "quant %d", pInventario[playerid][pRemedios]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][5], string);
  1481.  
  1482. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], serverItens[238][sItem_modelo]);
  1483. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], serverItens[237][sItem_modelo]);
  1484. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], serverItens[239][sItem_modelo]);
  1485. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], serverItens[240][sItem_modelo]);
  1486. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], serverItens[241][sItem_modelo]);
  1487. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], serverItens[242][sItem_modelo]);
  1488.  
  1489. for(new i = 0; i < 15; i++) {
  1490. PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
  1491. PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
  1492. PlayerTextDrawHide(playerid, backgroundinv[playerid][i]);
  1493. }
  1494.  
  1495. for(new i = 0; i < 6; i++) {
  1496. //PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], "quant 0");
  1497. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1498. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1499. PlayerTextDrawShow(playerid, inventario_outros_info[playerid][i]);
  1500. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1501. }
  1502. }
  1503. else if(playertextid == inventario_aba_equipam[playerid]) {
  1504. if(GetPVarInt(playerid, "inventario_aba") == 0) return true;
  1505. SetPVarInt(playerid, "inventario_aba", 0);
  1506. for(new i = 0; i < 15; i++) {
  1507. if(i < 6) PlayerTextDrawHide(playerid, inventario_outros_info[playerid][i]);
  1508. PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
  1509. PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
  1510. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][i], serverItens[pInventario[playerid][i][inv_item_index]][sItem_modelo]);
  1511. if(pInventario[playerid][i][inv_item_ativo] == true) {
  1512. switch(serverItens[pInventario[playerid][i][inv_item_index]][sItem_tipo]) {
  1513. case ITEM_TIPO_ARMA: format(string, sizeof(string), "Municao %d", pInventario[playerid][i][inv_armaBalas]);
  1514. case ITEM_TIPO_COLETE: format(string, sizeof(string), "Colete %f", pInventario[playerid][i][inv_coleteStatus]);
  1515. case ITEM_TIPO_FOME: format(string, sizeof(string), "erro");
  1516. case ITEM_TIPO_SEDE: format(string, sizeof(string), "erro");
  1517. case ITEM_TIPO_VEICULOMOD: format(string, sizeof(string), "VEICULO MOD");
  1518. }
  1519. } else format(string, sizeof(string), "vazio");
  1520. PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], string);
  1521. }
  1522. for(new i = 0; i < 15; i++) { //show text draw
  1523. if(pInfo[playerid][pMochila] == 1) {
  1524. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1525. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1526. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1527. if(i == 4) break;
  1528. }
  1529. else if(pInfo[playerid][pMochila] == 2) {
  1530. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1531. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1532. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1533. if(i == 9) break;
  1534. }
  1535. else if(pInfo[playerid][pMochila] == 3) {
  1536. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1537. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1538. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1539. if(i == 14) break;
  1540. }
  1541. }
  1542. return true;
  1543. }
  1544. else if(playertextid == inventario_fechar[playerid]) {
  1545. SetPVarInt(playerid, "inventario", 0);
  1546. esconderInventario(playerid);
  1547. CancelSelectTextDraw(playerid);
  1548. /*for(new i = 0; i < 15; i++) {
  1549. PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][i], -1633771777);
  1550. }*/
  1551. }
  1552. else if(playertextid == inventario_usar[playerid]) {
  1553. if(pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] == true) {
  1554. esconderInventario(playerid);
  1555. CancelSelectTextDraw(playerid);
  1556. switch(serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo]) {
  1557. case ITEM_TIPO_ARMA: {
  1558. GivePlayerWeapon(playerid, pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaIndex], pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaBalas]);
  1559. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
  1560. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
  1561. return true;
  1562. }
  1563. case ITEM_TIPO_COLETE: {
  1564. SetPlayerArmour(playerid, pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_coleteStatus]);
  1565. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
  1566. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
  1567. return true;
  1568. }
  1569. }
  1570. return true;
  1571. }
  1572. else {
  1573. SendClientMessage(playerid, -1, "O slot selecionado nao possue nenhum item");
  1574. return true;
  1575. }
  1576. }
  1577. else if(playertextid == inventario_drop[playerid]) {
  1578. if(pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] == true) {
  1579. for(new i = 0; i < MAX_ITENS; i++) {
  1580. if(mundoItens[i][mItem_ativo] == true) continue;
  1581.  
  1582. switch(serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo]) {
  1583. case ITEM_TIPO_ARMA: {
  1584. GetPlayerPos(playerid, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]);
  1585. mundoItens[i][mItem_armaIndex] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaIndex];
  1586. mundoItens[i][mItem_armaBalas] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaBalas];
  1587. mundoItens[i][mItem_tipo] = serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo];
  1588. mundoItens[i][mItem_index] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index];
  1589.  
  1590. mundoItens[i][mItem_createObject] = CreateObject(serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_modelo], mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 93.7, 120.0, 120.0);
  1591. format(string, sizeof string, "%s", serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_nome]);
  1592. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 5.0, 0, 0);
  1593.  
  1594. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
  1595. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
  1596. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")], serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_modelo]);
  1597. PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1598. PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1599. ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
  1600. mundoItens[i][mItem_ativo] = true;
  1601. break;
  1602. }
  1603. case ITEM_TIPO_COLETE: {
  1604. mundoItens[i][mItem_tipo] = ITEM_TIPO_COLETE;
  1605. mundoItens[i][mItem_index] = 40;
  1606. mundoItens[i][mItem_coleteStatus] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_coleteStatus];
  1607.  
  1608. GetPlayerPos(playerid, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]);
  1609. mundoItens[i][mItem_createObject] = CreateObject(serverItens[mundoItens[i][mItem_index]][sItem_modelo], mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 93.7, 120.0, 120.0);
  1610. format(string, sizeof string, "%s", serverItens[mundoItens[i][mItem_index]][sItem_nome]);
  1611. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 5.0, 0, 0);
  1612.  
  1613. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
  1614. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
  1615. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")], serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_modelo]);
  1616. PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1617. PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1618. ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
  1619. mundoItens[i][mItem_ativo] = true;
  1620. break;
  1621. }
  1622. case ITEM_TIPO_VEICULOMOD: {
  1623. new Float:x, Float:y, Float:z;
  1624. GetPlayerPos(playerid, x, y, z);
  1625. mundoItens[i][mItem_x] = x;
  1626. mundoItens[i][mItem_y] = y;
  1627. mundoItens[i][mItem_z] = z;
  1628.  
  1629. mundoItens[i][mItem_index] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index];
  1630. mundoItens[i][mItem_tipo] = ITEM_TIPO_VEICULOMOD;
  1631. mundoItens[i][mItem_createObject] = CreateObject(serverItens[mundoItens[i][mItem_index]][sItem_modelo], x, y, z-0.8, 0.0, 0.0, 0.0);
  1632. format(string, sizeof string, "%s", serverItens[mundoItens[i][mItem_index]][sItem_nome]);
  1633. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
  1634. mundoItens[i][mItem_ativo] = true;
  1635. ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
  1636. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
  1637. pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
  1638. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")], serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_modelo]);
  1639. PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1640. PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
  1641. break;
  1642. }
  1643. }
  1644. }
  1645. }
  1646. return true;
  1647. }
  1648. ////
  1649. else if(playertextid == inventario_opcoes_guardar[playerid]) {
  1650. for(new i = 0; i < 15; i++) {
  1651. if(pInventario[playerid][i][inv_item_ativo] == true) continue;
  1652. pInventario[playerid][i][inv_item_ativo] = true;
  1653. mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
  1654.  
  1655. switch(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_tipo]) {
  1656. case ITEM_TIPO_ARMA: {
  1657. pInventario[playerid][i][inv_armaIndex] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaIndex];
  1658. pInventario[playerid][i][inv_armaBalas] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaBalas];
  1659. pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
  1660.  
  1661. DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
  1662. Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
  1663.  
  1664. format(string, sizeof string, "Voce colocou uma %s com %d balas no slot %d do seu inventario.", serverItens[pInventario[playerid][i][inv_item_index]][sItem_nome], pInventario[playerid][i][inv_armaBalas], i);
  1665. SendClientMessage(playerid, -1, string);
  1666.  
  1667. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1668. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1669. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1670. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1671. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1672.  
  1673. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1674. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1675. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1676. CancelSelectTextDraw(playerid);
  1677. }
  1678. case ITEM_TIPO_COLETE: {
  1679. pInventario[playerid][i][inv_coleteStatus] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_coleteStatus];
  1680. pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
  1681.  
  1682. DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
  1683. Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
  1684.  
  1685. SendClientMessage(playerid, -1, "Voce colocou um colete no inventario.");
  1686.  
  1687. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1688. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1689. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1690. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1691. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1692.  
  1693. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1694. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1695. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1696. CancelSelectTextDraw(playerid);
  1697. }
  1698. case ITEM_TIPO_VEICULOMOD: {
  1699. pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
  1700.  
  1701. DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
  1702. Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
  1703.  
  1704. SendClientMessage(playerid, -1, "Voce colocou uma peça de veiculo no inventario.");
  1705.  
  1706. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1707. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1708. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1709. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1710. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1711.  
  1712. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1713. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1714. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1715. CancelSelectTextDraw(playerid);
  1716. }
  1717. }
  1718. break;
  1719. }
  1720. return true;
  1721. }
  1722. else if(playertextid == inventario_opcoes_equipar[playerid]) {
  1723.  
  1724. switch(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_tipo]) {
  1725. case ITEM_TIPO_ARMA: {
  1726. GivePlayerWeapon(playerid, mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaIndex], mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaBalas]);
  1727. mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
  1728. DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
  1729. Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
  1730.  
  1731. format(string, sizeof string, "Voce equipou uma %s com %d balas.", serverItens[mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaIndex]][sItem_nome], mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaBalas]);
  1732. SendClientMessage(playerid, -1, string);
  1733.  
  1734. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1735. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1736. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1737. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1738. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1739.  
  1740. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1741. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1742. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1743. CancelSelectTextDraw(playerid);
  1744. }
  1745. case ITEM_TIPO_COLETE: {
  1746. SetPlayerArmour(playerid, mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_coleteStatus]);
  1747. mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
  1748. DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
  1749. Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
  1750.  
  1751. SendClientMessage(playerid, -1, "Voce colocou um colete.");
  1752.  
  1753. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1754. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1755. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1756. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1757. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1758.  
  1759. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1760. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1761. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1762. CancelSelectTextDraw(playerid);
  1763. }
  1764. case ITEM_TIPO_VEICULOMOD: {
  1765. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1766. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1767. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1768. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1769. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1770.  
  1771. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1772. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1773. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1774. CancelSelectTextDraw(playerid);
  1775. SendClientMessage(playerid, -1, "Voce nao pode equipar esse item");
  1776. return true;
  1777. }
  1778. }
  1779. return true;
  1780. }
  1781. else if(playertextid == inventario_opcoes_fechar[playerid]) {
  1782. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
  1783. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
  1784. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
  1785. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
  1786. PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
  1787.  
  1788. PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
  1789. PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
  1790. PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
  1791. CancelSelectTextDraw(playerid);
  1792. return true;
  1793. }
  1794. return true;
  1795. }
  1796.  
  1797. invOnPlayerKeyStateChange(playerid, newkeys) {
  1798.  
  1799. if(newkeys == KEY_WALK) {
  1800. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return true;
  1801. for(new i = 0; i < MAX_SERVER_ITENS; i++) {
  1802. if(mundoItens[i][mItem_ativo] == false) continue;
  1803. if(!IsPlayerInRangeOfPoint(playerid, 1.0, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z])) continue;
  1804. PlayerTextDrawSetPreviewModel(playerid, inventario_opcoes[playerid][1], serverItens[mundoItens[i][mItem_index]][sItem_modelo]);
  1805. SetPVarInt(playerid, "mundoItens_index_ativo", i);
  1806.  
  1807. SelectTextDraw(playerid, 0x00FF00FF);
  1808. PlayerTextDrawShow(playerid, inventario_opcoes[playerid][0]);
  1809. PlayerTextDrawShow(playerid, inventario_opcoes[playerid][1]);
  1810. PlayerTextDrawShow(playerid, inventario_opcoes[playerid][2]);
  1811. PlayerTextDrawShow(playerid, inventario_opcoes[playerid][3]);
  1812. PlayerTextDrawShow(playerid, inventario_opcoes[playerid][4]);
  1813.  
  1814. PlayerTextDrawShow(playerid, inventario_opcoes_equipar[playerid]);
  1815. PlayerTextDrawShow(playerid, inventario_opcoes_fechar[playerid]);
  1816. PlayerTextDrawShow(playerid, inventario_opcoes_guardar[playerid]);
  1817. ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_IN", 10000.0, 0, 0, 0, 0, 0);
  1818. break;
  1819. }
  1820. }
  1821. else if(newkeys == KEY_YES) {
  1822. if(pInfo[playerid][pMochilaAtiva] == false) return SendClientMessage(playerid, -1, "Voce nao possue uma mochila, compre uma na 24/7.");
  1823. if(GetPVarInt(playerid, "inventario") == 0) {
  1824. mostrarInventario(playerid);
  1825. SelectTextDraw(playerid, 0x00FF00FF);
  1826. SetPVarInt(playerid, "inventario", 1);
  1827. return true;
  1828. }
  1829. else if(GetPVarInt(playerid, "inventario") == 1) {
  1830. CancelSelectTextDraw(playerid);
  1831. esconderInventario(playerid);
  1832. SetPVarInt(playerid, "inventario", 0);
  1833. SetPVarInt(playerid, "inventario_aba", 0);
  1834. return true;
  1835. }
  1836. }
  1837. return true;
  1838. }
  1839. invOnPlayerUpdate(playerid) {
  1840. new Float:armour;
  1841. GetPlayerArmour(playerid, armour);
  1842. if(armour > 0) return SetPlayerAttachedObject(playerid, 9, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
  1843. else if(armour <= 0) return RemovePlayerAttachedObject(playerid, 9);
  1844. return true;
  1845. }
  1846.  
  1847. stock GivePlayerPositionItem(playerid, item) {
  1848. new Float:x, Float:y, Float:z, string[128];
  1849. GetPlayerPos(playerid, x, y, z);
  1850. if(serverItens[item][sItem_modelo] == 0) return true;
  1851. for(new i = 0; i < MAX_ITENS; i++) {
  1852. if(mundoItens[i][mItem_ativo] == true) continue;
  1853. switch(serverItens[item][sItem_tipo]) {
  1854. case ITEM_TIPO_ARMA: {
  1855. mundoItens[i][mItem_x] = x;
  1856. mundoItens[i][mItem_y] = y;
  1857. mundoItens[i][mItem_z] = z;
  1858.  
  1859. mundoItens[i][mItem_armaIndex] = serverItens[item][sItem_arma_model];
  1860. mundoItens[i][mItem_armaBalas] = 100;
  1861. mundoItens[i][mItem_tipo] = ITEM_TIPO_ARMA;
  1862. mundoItens[i][mItem_index] = item;
  1863. mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-1, 93.7, 120.0, 120.0);
  1864. format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
  1865. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
  1866. mundoItens[i][mItem_ativo] = true;
  1867. break;
  1868. }
  1869. case ITEM_TIPO_COLETE: {
  1870. mundoItens[i][mItem_x] = x;
  1871. mundoItens[i][mItem_y] = y;
  1872. mundoItens[i][mItem_z] = z;
  1873.  
  1874. mundoItens[i][mItem_index] = item;
  1875. mundoItens[i][mItem_coleteStatus] = 100.0;
  1876. mundoItens[i][mItem_tipo] = ITEM_TIPO_COLETE;
  1877. mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-1, 93.7, 120.0, 120.0);
  1878. format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
  1879. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
  1880. mundoItens[i][mItem_ativo] = true;
  1881. break;
  1882. }
  1883. case ITEM_TIPO_VEICULOMOD: {
  1884. mundoItens[i][mItem_x] = x;
  1885. mundoItens[i][mItem_y] = y;
  1886. mundoItens[i][mItem_z] = z;
  1887.  
  1888. mundoItens[i][mItem_index] = item;
  1889. mundoItens[i][mItem_tipo] = ITEM_TIPO_VEICULOMOD;
  1890. mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-0.8, 0.0, 0.0, 0.0);
  1891. format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
  1892. mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
  1893. mundoItens[i][mItem_ativo] = true;
  1894. break;
  1895. }
  1896. }
  1897. }
  1898. return true;
  1899. }
  1900.  
  1901. stock mostrarInventario(playerid) {
  1902. new string[128];
  1903.  
  1904. PlayerTextDrawShow(playerid, inventario_aba_equipam[playerid]);
  1905. PlayerTextDrawShow(playerid, inventario_aba_outros[playerid]);
  1906.  
  1907. PlayerTextDrawShow(playerid, inventario_fundo[playerid]);
  1908. PlayerTextDrawShow(playerid, inventario_aba[playerid][0]);
  1909. PlayerTextDrawShow(playerid, inventario_aba[playerid][1]);
  1910. PlayerTextDrawShow(playerid, inventario_fechar[playerid]);
  1911. PlayerTextDrawShow(playerid, inventario_usar[playerid]);
  1912. PlayerTextDrawShow(playerid, inventario_drop[playerid]);
  1913. PlayerTextDrawSetString(playerid, inventario_item_nome[playerid], "Nenhum item selecionado.");
  1914. PlayerTextDrawShow(playerid, inventario_item_nome[playerid]);
  1915.  
  1916. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], serverItens[pInventario[playerid][0][inv_item_index]][sItem_modelo]);
  1917. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], serverItens[pInventario[playerid][1][inv_item_index]][sItem_modelo]);
  1918. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], serverItens[pInventario[playerid][2][inv_item_index]][sItem_modelo]);
  1919. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], serverItens[pInventario[playerid][3][inv_item_index]][sItem_modelo]);
  1920. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], serverItens[pInventario[playerid][4][inv_item_index]][sItem_modelo]);
  1921. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], serverItens[pInventario[playerid][5][inv_item_index]][sItem_modelo]);
  1922. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][6], serverItens[pInventario[playerid][6][inv_item_index]][sItem_modelo]);
  1923. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][7], serverItens[pInventario[playerid][7][inv_item_index]][sItem_modelo]);
  1924. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][8], serverItens[pInventario[playerid][8][inv_item_index]][sItem_modelo]);
  1925. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][9], serverItens[pInventario[playerid][9][inv_item_index]][sItem_modelo]);
  1926. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][10], serverItens[pInventario[playerid][10][inv_item_index]][sItem_modelo]);
  1927. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][11], serverItens[pInventario[playerid][11][inv_item_index]][sItem_modelo]);
  1928. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][12], serverItens[pInventario[playerid][12][inv_item_index]][sItem_modelo]);
  1929. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][13], serverItens[pInventario[playerid][13][inv_item_index]][sItem_modelo]);
  1930. PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][14], serverItens[pInventario[playerid][14][inv_item_index]][sItem_modelo]);
  1931.  
  1932. for(new i = 0; i < 15; i++) { //set string text info
  1933. if(pInventario[playerid][i][inv_item_ativo] == true) {
  1934. switch(serverItens[pInventario[playerid][i][inv_item_index]][sItem_tipo]) {
  1935. case ITEM_TIPO_ARMA: format(string, sizeof(string), "Municao %d", pInventario[playerid][i][inv_armaBalas]);
  1936. case ITEM_TIPO_COLETE: format(string, sizeof(string), "Colete %f", pInventario[playerid][i][inv_coleteStatus]);
  1937. case ITEM_TIPO_FOME: format(string, sizeof(string), "erro");
  1938. case ITEM_TIPO_SEDE: format(string, sizeof(string), "erro");
  1939. case ITEM_TIPO_VEICULOMOD: format(string, sizeof(string), "VEICULO MOD");
  1940. }
  1941. } else format(string, sizeof(string), "vazio");
  1942. PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], string);
  1943. }
  1944. for(new i = 0; i < 15; i++) { //show text draw
  1945. if(pInfo[playerid][pMochila] == 1) {
  1946. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1947. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1948. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1949. if(i == 4) break;
  1950. }
  1951. else if(pInfo[playerid][pMochila] == 2) {
  1952. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1953. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1954. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1955. if(i == 9) break;
  1956. }
  1957. else if(pInfo[playerid][pMochila] == 3) {
  1958. PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
  1959. PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
  1960. PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
  1961. if(i == 14) break;
  1962. }
  1963. }
  1964.  
  1965. return true;
  1966. }
  1967. stock esconderInventario(playerid) {
  1968. for(new i = 0; i < 15; i++) {
  1969. if(i < 6) PlayerTextDrawHide(playerid, inventario_outros_info[playerid][i]);
  1970. PlayerTextDrawHide(playerid, backgroundinv[playerid][i]);
  1971. PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
  1972. PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
  1973. }
  1974. PlayerTextDrawHide(playerid, inventario_aba_equipam[playerid]);
  1975. PlayerTextDrawHide(playerid, inventario_aba_outros[playerid]);
  1976. PlayerTextDrawHide(playerid, inventario_fundo[playerid]);
  1977. PlayerTextDrawHide(playerid, inventario_aba[playerid][0]);
  1978. PlayerTextDrawHide(playerid, inventario_aba[playerid][1]);
  1979. PlayerTextDrawHide(playerid, inventario_fechar[playerid]);
  1980. PlayerTextDrawHide(playerid, inventario_usar[playerid]);
  1981. PlayerTextDrawHide(playerid, inventario_drop[playerid]);
  1982. PlayerTextDrawHide(playerid, inventario_item_nome[playerid]);
  1983. }
  1984.  
  1985. forward RemovePlayerWeapon(playerid, weaponid);
  1986. public RemovePlayerWeapon(playerid, weaponid) {
  1987. if(!IsPlayerConnected(playerid) || weaponid < 0 || weaponid > 50) return;
  1988. new saveweapon[13], saveammo[13];
  1989. for(new slot = 0; slot < 13; slot++)
  1990. GetPlayerWeaponData(playerid, slot, saveweapon[slot], saveammo[slot]);
  1991. ResetPlayerWeapons(playerid);
  1992. for(new slot; slot < 13; slot++)
  1993. {
  1994. if(saveweapon[slot] == weaponid || saveammo[slot] == 0)
  1995. continue;
  1996. GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]);
  1997. }
  1998. GivePlayerWeapon(playerid, 0, 1);
  1999. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement