Guest User

Sistema de inventário

a guest
Jun 15th, 2023
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.50 KB | Source Code | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////////////////////////
  2. ////////////////////////////////////////////////////////////////////////////////////////////////////
  3. ////////////////////////////// Sistema de Inventario By: k2bi_YT ////////////////////////////////////
  4. ////////////////////////////// Sistema de Inventario By: k2bi_YT ////////////////////////////////////
  5. ////////////////////////////// Correção Bug do CJ By: xBruno1000x ///////////////////////////////////
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////
  7. ////////////////////////////////////////////////////////////////////////////////////////////////////
  8.  
  9.  
  10. #include <a_samp>
  11. #include <Pawn.CMD>
  12. #include <DOF2>
  13. #include <foreach>
  14. #include <sscanf2>
  15. #include <streamer>
  16.  
  17. #define K2::%0(%1) forward %0(%1);\
  18. public %0(%1)
  19.  
  20. #define Pasta_Inventario "Inventarios/%s.ini"
  21. #define COLOR_GRAD2 0xBFC0C2AA
  22. #define COLOR_GRAD1 0xB4B5B7AA
  23. #define COLOR_AVISO 0x4F4F4FAA
  24. #define COLOR_GRAD5 0xF0F0F0AA
  25. #define COLOR_LIGHTGREEN 0x2DFF2DAA
  26.  
  27. enum iInv
  28. {
  29. DropItem,
  30. DropItemUni,
  31. DropItemID,
  32. Pickup,
  33. Virtual,
  34. Interior,
  35. Text3D:LabelItem,
  36. Slot,
  37. Unidades
  38. };
  39.  
  40. new PlayerInventario[MAX_PLAYERS][33][iInv];
  41. new DropItemSlot[MAX_OBJECTS][iInv];
  42. new PlayerText:DrawInv[MAX_PLAYERS][40];
  43. new InventarioAberto[MAX_PLAYERS];
  44. new BigEar[MAX_PLAYERS];
  45.  
  46. static stock PlayerName(playerid)
  47. {
  48. new Name[MAX_PLAYER_NAME];
  49. GetPlayerName(playerid, Name, sizeof Name);
  50. return Name;
  51. }
  52.  
  53. public OnGameModeExit()
  54. {
  55. DOF2_Exit();
  56. return 1;
  57. }
  58.  
  59. public OnPlayerConnect(playerid)
  60. {
  61. InventarioAberto[playerid] = 0;
  62. TextDrawInv(playerid);
  63. CriarInventario(playerid);
  64. return 1;
  65. }
  66.  
  67. public OnPlayerDisconnect(playerid, reason)
  68. {
  69. InventarioAberto[playerid] = 0;
  70. SalvarInventario(playerid);
  71. return 1;
  72. }
  73.  
  74. public OnPlayerClickPlayerTextDraw(playerid, PlayerText: playertextid)
  75. {
  76. new str[64];
  77. for(new i = 1; i < 33; ++i)
  78. {
  79. if(playertextid == DrawInv[playerid][i])
  80. {
  81. if(PlayerInventario[playerid][i][Slot] == -1)
  82. {
  83. PlayerTextDrawSetString(playerid, DrawInv[playerid][38], "");
  84. }
  85. else
  86. {
  87. format(str, sizeof(str), "%s - %s unidades", ItemNomeInv(PlayerInventario[playerid][i][Slot]), ConvertMoney(PlayerInventario[playerid][i][Unidades]));
  88. PlayerTextDrawSetString(playerid, DrawInv[playerid][38], str);
  89. }
  90. PlayerTextDrawShow(playerid, DrawInv[playerid][38]);
  91. SetPVarInt(playerid, #VarSlotInv, i);
  92. return 1;
  93. }
  94. }
  95. if(playertextid == DrawInv[playerid][36]) return FuncaoItens(playerid, GetPVarInt(playerid, #VarSlotInv));
  96. if(playertextid == DrawInv[playerid][35]) return callcmd::inventario(playerid);
  97. if(playertextid == DrawInv[playerid][37]) return DroparItem(playerid, GetPVarInt(playerid, #VarSlotInv));
  98. return 0;
  99. }
  100.  
  101. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  102. {
  103. if(clickedid == Text:INVALID_TEXT_DRAW)
  104. {
  105. for(new i = 0; i < 40; ++i)
  106. {
  107. PlayerTextDrawHide(playerid, DrawInv[playerid][i]);
  108. }
  109. InventarioAberto[playerid] = 0;
  110. return 1;
  111. }
  112. return 0;
  113. }
  114.  
  115. CMD:pegaritem (playerid)
  116. {
  117. new Float:x, Float:y, Float:z, str[128];
  118. for(new i = 0; i < sizeof(DropItemSlot); i++)
  119. {
  120. GetDynamicObjectPos(DropItemSlot[i][DropItem], x,y,z);
  121. if(DropItemSlot[i][DropItem] != 0)
  122. {
  123. if(IsPlayerInRangeOfPoint(playerid, 1.5, x,y,z+1) && GetPlayerVirtualWorld(playerid) == DropItemSlot[i][Virtual] && GetPlayerInterior(playerid) == DropItemSlot[i][Interior])
  124. {
  125. if(!CheckInventario(playerid, DropItemSlot[i][DropItemID])) return SendClientMessage(playerid, -1, "Sua Mochila está cheia.");
  126. GanharItem(playerid, DropItemSlot[i][DropItemID], DropItemSlot[i][DropItemUni]);
  127. format(str, 64, "Você pegou %s do chão com %s unidades.", ItemNomeInv(DropItemSlot[i][DropItemID]), ConvertMoney(DropItemSlot[i][DropItemUni]));
  128. DestroyDynamicObject(DropItemSlot[i][DropItem]);
  129. DestroyDynamic3DTextLabel(DropItemSlot[i][LabelItem]);
  130. DropItemSlot[i][DropItem] = 0;
  131. DropItemSlot[i][DropItemID] = -1;
  132. DropItemSlot[i][DropItemUni] = 0;
  133. DropItemSlot[i][Interior] = 0;
  134. DropItemSlot[i][Virtual] = 0;
  135. SendClientMessage(playerid, 0xB384FFAA, str);
  136. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
  137. return 1;
  138. }
  139. }
  140. }
  141. return 1;
  142. }
  143.  
  144. CMD:inventario(playerid)
  145. {
  146. new str[64];
  147. if(InventarioAberto[playerid])
  148. {
  149. for(new i = 0; i < 40; ++i)
  150. {
  151. PlayerTextDrawHide(playerid, DrawInv[playerid][i]);
  152. }
  153. InventarioAberto[playerid] = 0;
  154. CancelSelectTextDraw(playerid);
  155. format(str, 64, "*%s fechou seu inventario.", PlayerName(playerid));
  156. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  157. return 1;
  158. }
  159. else
  160. {
  161. format(str, sizeof(str), "Inventario: %s", PlayerName(playerid));
  162. PlayerTextDrawSetString(playerid, DrawInv[playerid][34], str);
  163. PlayerTextDrawSetString(playerid, DrawInv[playerid][38], "");
  164. for(new i = 1; i < 33; ++i)
  165. {
  166. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][i], PlayerInventario[playerid][i][Slot]);
  167. if(PlayerInventario[playerid][i][Slot] == -1)
  168. {
  169. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][i], 0.000000, 0.000000, 0.000000, 999);
  170. }
  171. else
  172. {
  173. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][i], 0.000000, 0.000000, 0.000000, 1);
  174. }
  175. }
  176. for(new i = 0; i < 40; ++i)
  177. {
  178. PlayerTextDrawShow(playerid, DrawInv[playerid][i]);
  179. }
  180. SelectTextDraw(playerid, 0xC4C4C4AA);
  181. InventarioAberto[playerid] = 1;
  182. format(str, 64, "*%s abriu seu inventario.", PlayerName(playerid));
  183. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  184. }
  185. return 1;
  186. }
  187.  
  188. CMD:daritem(playerid, const params[])
  189. {
  190. new id, item, quantia;
  191. if(sscanf(params, "iii", id, item, quantia)) return SendClientMessage(playerid, COLOR_GRAD2, "Use: /daritem [ID] [ITEM ID] [UNIDADES].");
  192. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GRAD1, "Jogador não conectado.");
  193. if(!IsValidItemInv(item)) return SendClientMessage(playerid, COLOR_GRAD1, "Item Indefinido no servidor.");
  194. if(quantia < 1) return SendClientMessage(playerid, COLOR_GRAD1, "A quantia deve ser no mínimo 1.");
  195. if(!CheckInventario(id, item)) return SendClientMessage(playerid, COLOR_GRAD1, "O inventario desse jogador está cheio.");
  196. GanharItem(id, item, quantia);
  197. new str[256];
  198. format(str, sizeof(str), "[Items]: {%06x}%s setou o item %s com %s unidades no inventario de %s.", COLOR_AVISO>>>8, PlayerName(playerid),
  199. ItemNomeInv(item), ConvertMoney(quantia), PlayerName(id));
  200. SendClientMessageToAll(0xEA6AACAA, str);
  201. return 1;
  202. }
  203.  
  204. split(const strsrc[], const strdest[][], delimiter)
  205. {
  206. new i, li;
  207. new aNum;
  208. new len;
  209. while(i <= strlen(strsrc))
  210. {
  211. if(strsrc[i]==delimiter || i==strlen(strsrc))
  212. {
  213. len = strmid(strdest[aNum], strsrc, li, i, 128);
  214. strdest[aNum][len] = 0;
  215. li = i+1;
  216. aNum++;
  217. }
  218. i++;
  219. }
  220. return true;
  221. }
  222.  
  223. GanharItem(playerid, itemid, quantia)
  224. {
  225. for(new i = 1; i < 33; ++i)
  226. {
  227. if(PlayerInventario[playerid][i][Slot] == itemid)
  228. {
  229. PlayerInventario[playerid][i][Slot] = itemid;
  230. PlayerInventario[playerid][i][Unidades]+= quantia;
  231. return 1;
  232. }
  233. else if(PlayerInventario[playerid][i][Slot] == -1)
  234. {
  235. PlayerInventario[playerid][i][Slot] = itemid;
  236. PlayerInventario[playerid][i][Unidades] = quantia;
  237. return 1;
  238. }
  239. }
  240. SendClientMessage(playerid, -1, "Seu inventario está cheio.");
  241. return 1;
  242. }
  243.  
  244. K2::CriarInventario(playerid)
  245. {
  246. new file[64], str[128], string[128];
  247. format(file, sizeof(file), Pasta_Inventario, PlayerName(playerid));
  248.  
  249. if(!DOF2_FileExists(file))
  250. {
  251. DOF2_CreateFile(file); printf("Criou arquivo!");
  252. for(new i = 1; i < 33; ++i)
  253. {
  254. PlayerInventario[playerid][i][Slot] = -1;
  255. PlayerInventario[playerid][i][Unidades] = -1;
  256.  
  257. format(string, sizeof(string), "Item_%d", i);
  258. format(str, sizeof(str), "%d|%d", PlayerInventario[playerid][i][Slot], PlayerInventario[playerid][i][Unidades]);
  259. DOF2_SetString(file, string, str);
  260. DOF2_SaveFile();
  261. }
  262. }else{
  263. LoadInv(playerid);
  264. }
  265. return 1;
  266. }
  267.  
  268. K2::LoadInv(playerid)
  269. {
  270. new file[64], key[64], string[2][64], str[64];
  271. format(file, sizeof(file), Pasta_Inventario, PlayerName(playerid));
  272. SetPVarInt(playerid, #VarSlotInv, 0);
  273. for(new i = 1; i < 33; ++i)
  274. {
  275. PlayerInventario[playerid][i][Slot] = -1;
  276. PlayerInventario[playerid][i][Unidades] = 0;
  277. format(key, sizeof(key), "Item_%d", i);
  278. format(str, sizeof(str), DOF2_GetString(file, key));
  279. split(str, string, '|');
  280. PlayerInventario[playerid][i][Slot] = strval(string[0]);
  281. PlayerInventario[playerid][i][Unidades] = strval(string[1]);
  282. }
  283. return 1;
  284. }
  285.  
  286. K2::SalvarInventario(playerid)
  287. {
  288. new file[64], str[128], string[128];
  289. format(file, sizeof(file), Pasta_Inventario, PlayerName(playerid));
  290. if(!DOF2_FileExists(file)){DOF2_CreateFile(file);}
  291. for(new i = 1; i < 33; ++i)
  292. {
  293. format(string, sizeof(string), "Item_%d", i);
  294. format(str, sizeof(str), "%d|%d", PlayerInventario[playerid][i][Slot], PlayerInventario[playerid][i][Unidades]);
  295. DOF2_SetString(file, string, str);
  296. DOF2_SaveFile();
  297. }
  298. return 1;
  299. }
  300.  
  301. SendClientMessageInRange(Float:_r, playerid, const _s[],c1,c2,c3,c4,c5)
  302. {
  303. new Float:_x, Float:_y, Float:_z;
  304. GetPlayerPos(playerid, _x, _y, _z);
  305. foreach(new i : Player)
  306. {
  307. if(!BigEar[i])
  308. {
  309. if(GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid) && GetPlayerInterior(i) != GetPlayerInterior(playerid))continue;
  310. if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/16)
  311. SendClientMessage(i, c1, _s);
  312. else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/8)
  313. SendClientMessage(i, c2, _s);
  314. else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/4)
  315. SendClientMessage(i, c3, _s);
  316. else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r/2)
  317. SendClientMessage(i, c4, _s);
  318. else if(GetPlayerDistanceFromPoint(i,_x,_y,_z) < _r)
  319. SendClientMessage(i, c5, _s);
  320. }
  321. else
  322. {
  323. SendClientMessage(i, c1, _s);
  324. }
  325. }
  326. return true;
  327. }
  328.  
  329. CheckInventario(playerid, itemid)
  330. {
  331. for(new i = 1; i < 33; ++i)
  332. {
  333. if(PlayerInventario[playerid][i][Slot] == itemid || PlayerInventario[playerid][i][Slot] == -1) return 1;
  334. }
  335. return 0;
  336. }
  337.  
  338. ItemNomeInv(itemid) // AQUI VOCÊ PODE ADICIONAR OS ID DOS ITENS E SETAR SEU NOME (OBS: TOME CUIDADO AO OPTAR O USO DE LOOPS)
  339. {
  340. new name[25];
  341. format(name, 25, "(null)");
  342. if(itemid >= 330 && itemid < 372) format(name, 25, NomeArmas(GetArmaInv(itemid))); // se for armas
  343. else
  344. switch(itemid)
  345. {
  346. case 19625: name = "Cigarro do K2";//Editavel
  347. case 11746: name = "Chave";
  348. case 3044: name = "Baseado";//Editavel
  349. case 19039: name = "Relogio de Ouro";
  350. case 19040: name = "Relogio de Prata";
  351. case 19042: name = "Relogio Dourado";
  352. case 19044: name = "Relogio Rosa";
  353. case 19045: name = "Relogio Vermelho";
  354. case 19046: name = "Relogio Verde";
  355. case 19047: name = "Relogio Roxo";
  356. case 11747: name = "Baseado";
  357. case 18865: name = "Celular Laranja";
  358. case 18866: name = "Celular Azul";
  359. case 18867: name = "Celular Laranja";
  360. case 18868: name = "Celular Preto";
  361. case 18869: name = "Celular Rosa";
  362. case 18870: name = "Celular Vermelho";
  363. case 18871: name = "Celular Verde";
  364. case 18872: name = "Celular Azul";
  365. case 18873: name = "Celular Amarelo";
  366. case 18874: name = "Celular Branco";
  367. case 19513: name = "Celular Branco";
  368. case 18875: name = "GPS";
  369. case 19874: name = "Barra de Ouro";
  370. case 19138: name = "Oculos Preto";
  371. case 19139: name = "Oculos Vermelho";
  372. case 19140: name = "Oculos Azul";
  373. case 19022: name = "Oculos Prata";
  374. case 19023: name = "Oculos Azul";
  375. case 19024: name = "Oculos Roxo";
  376. case 19025: name = "Oculos Rosa";
  377. case 19026: name = "Oculos Vermelho";
  378. case 19027: name = "Oculos Laranja";
  379. case 19028: name = "Oculos Amarelo";
  380. case 19029: name = "Oculos Verde";
  381. case 19030: name = "Oculos";
  382. case 19031: name = "Oculos";
  383. case 19032: name = "Oculos";
  384. case 19033: name = "Oculos Preto";
  385. case 19034: name = "Oculos";
  386. case 19035: name = "Oculos Azul";
  387. case 2992: name = "Aurea de Anjo";
  388. case 3065: name = "Bola de Basquete";
  389. case 11712: name = "Cruz";
  390. case 18953: name = "Toca Preta";
  391. case 18954: name = "Toca Verde";
  392. case 19554: name = "Gorro";
  393. case 18974: name = "Mascara Zorro";
  394. case 2114: name = "Bola de Basquete";
  395. case 18894: name = "Bandana";
  396. case 18903: name = "Bandana";
  397. case 18898: name = "Bandana";
  398. case 18899: name = "Bandana";
  399. case 18891: name = "Bandana";
  400. case 18909: name = "Bandana";
  401. case 18908: name = "Bandana";
  402. case 18907: name = "Bandana";
  403. case 18906: name = "Bandana";
  404. case 18905: name = "Bandana";
  405. case 18904: name = "Bandana";
  406. case 18901: name = "Bandana";
  407. case 18902: name = "Bandana";
  408. case 18892: name = "Bandana";
  409. case 18900: name = "Bandana";
  410. case 18897: name = "Bandana";
  411. case 18896: name = "Bandana";
  412. case 18895: name = "Bandana";
  413. case 18893: name = "Bandana";
  414. case 18810: name = "Bandana";
  415. case 18947: name = "Chapeu";
  416. case 18948: name = "Chapeu";
  417. case 18949: name = "Chapeu";
  418. case 18950: name = "Chapeu";
  419. case 18951: name = "Chapeu";
  420. case 19488: name = "Chapeu";
  421. case 18921: name = "Boina";
  422. case 18922: name = "Boina";
  423. case 18923: name = "Boina";
  424. case 18924: name = "Boina";
  425. case 18925: name = "Boina";
  426. case 18939: name = "Bone";
  427. case 18940: name = "Bone";
  428. case 18941: name = "Bone";
  429. case 18942: name = "Bone";
  430. case 18943: name = "Bone";
  431. case 18646: name = "Sirene";
  432. case 1314: name = "2 Players";
  433. case 19578: name = "Banana";
  434. case 18636: name = "Bone COP";
  435. case 19942: name = "Radio Policial";
  436. case 19141: name = "Capacete S.W.A.T";
  437. case 19558: name = "Bone Pizzaiolo";
  438. case 19801: name = "Mascara de Assalto";
  439. case 19330: name = "Chapeu de Bombeiro";
  440. case 1210: name = "Maleta";
  441. case 19528: name = "Chapeu de Mago";
  442. case 19134: name = "Seta Verde";
  443. case 19904: name = "Colete de Operario";
  444. case 19515: name = "Colete";
  445. case 19142: name = "Colete COP";
  446. case 19315: name = "Cervo";
  447. case 19527: name = "Caldeirao";
  448. case 19317: name = "Guitarra Eletrica";
  449. case 18688: name = "Efeito Fogo";
  450. case 18702: name = "Efeito Nitro";
  451. case 18728: name = "Efeito Sinalizador";
  452. case 19605: name = "Marker Vermelho";
  453. case 19606: name = "Marker Verde";
  454. case 19607: name = "Marker Azul";
  455. case 19823: name = "Whiskey";
  456. case 19820: name = "Conhaque";
  457. case 11722: name = "Ketchup";
  458. case 11723: name = "Mostarda";
  459. case 19570: name = "Leite";
  460. case 19824: name = "Champanhe";
  461. case 1486: name = "Cerveja";
  462. case 19822: name = "Vinho";
  463. case 1668: name = "Agua";
  464. case 2958: name = "Cerveja";
  465. case 19577: name = "Tomate";
  466. case 1485: name = "Baseado";
  467. case 19574: name = "Laranja";
  468. case 19575: name = "Maca";
  469. case 19576: name = "Maca Verde";
  470. case 2703: name = "Hamburger";
  471. case 2880: name = "Hamburger";
  472. case 19883: name = "Fatia de Pao";
  473. case 19896: name = "Maco de Cigarro";
  474. case 19897: name = "Maco de Cigarro";
  475. case 1546: name = "Refrigerante";
  476. case 2768: name = "Hamburger";
  477. case 1212: name = "Dinheiro";
  478. case 2601: name = "Refrigerante";
  479. case 19835: name = "Cafe";
  480. case 2881: name = "Fatia de Pizza";
  481. case 2702: name = "Fatia de Pizza";
  482. case 2769: name = "Taco";
  483. case 2709: name = "Remedio";
  484. case 19579: name = "Pao";
  485. case 19630: name = "Peixe";
  486. case 19094: name = "Hamburger";
  487. case 1582: name = "Pizza Media";
  488. case 19580: name = "Pizza Grande";
  489. case 19602: name = "Mina Terrestre";
  490. case 11738: name = "Remedio Grande";
  491. case 1654: name = "Dinamite";
  492. case 11736: name = "MedKit";
  493. case 1650: name = "Galao de Gasolina";
  494. case 1252: name = "C4";
  495. case 19893: name = "Notebook";
  496. case 19921: name = "Caixa de Ferramentas";
  497. case 2226: name = "Radio";
  498. case 19054: name = "Caixa Pequena";
  499. case 19056: name = "Caixa Grande";
  500. case 19055: name = "Caixa Media";
  501. case 19057: name = "Caixa Ouro";
  502. case 19058: name = "Caixa VIP";
  503. case 331: name = "Soco Ingles";
  504. case 333: name = "Taco de Golfe";
  505. case 334: name = "Cacetete";
  506. case 335: name = "Faca";
  507. case 336: name = "Taco de Baseball";
  508. case 337: name = "Pa";
  509. case 338: name = "Taco de Sinuca";
  510. case 339: name = "Katana";
  511. case 341: name = "Motoserra";
  512. case 321: name = "Dildo Roxo";
  513. case 322: name = "Dildo";
  514. case 323: name = "Vibrador";
  515. case 324: name = "Vibrador de Prata";
  516. case 325: name = "Flores";
  517. case 326: name = "Cano";
  518. case 342: name = "Granada";
  519. case 343: name = "Gas Lacrimogenio";
  520. case 344: name = "Coquetel Molotov";
  521. case 346: name = "Pistola 9mm";
  522. case 347: name = "Silenciadora 9mm";
  523. case 348: name = "Desert Eagle";
  524. case 349: name = "Shotgun";
  525. case 350: name = "Sawnoff";
  526. case 351: name = "Combat Shotgun";
  527. case 352: name = "Uzi";
  528. case 353: name = "MP5";
  529. case 355: name = "AK - 47";
  530. case 356: name = "M4";
  531. case 372: name = "Tec-9";
  532. case 357: name = "Country Rifle";
  533. case 358: name = "Sniper Rifle";
  534. case 359: name = "RPG";
  535. case 360: name = "HS Rocket";
  536. case 361: name = "Lanca-Chamas";
  537. case 362: name = "Minigun";
  538. case 363: name = "Satchel Charge";
  539. case 364: name = "Detonador";
  540. case 365: name = "Lata de Spray";
  541. case 366: name = "Extintor";
  542. case 367: name = "Camera";
  543. case 368: name = "Oculos Noturno";
  544. case 369: name = "Osculo Termal";
  545. case 371: name = "Parachute";
  546. default: name = "(null)";
  547. }
  548. return name;
  549. }
  550.  
  551. static NomeArmas(armaid)
  552. {
  553. new name[35];
  554. switch(armaid)
  555. {
  556. case 1: name = "Soco Ingles";
  557. case 2: name = "Taco de Golfe";
  558. case 3: name = "Cacetete";
  559. case 4: name = "Faca";
  560. case 5: name = "Taco de Baseball";
  561. case 6: name = "Pa";
  562. case 7: name = "Taco de Sinuca";
  563. case 8: name = "Katana";
  564. case 9: name = "Motoserra";
  565. case 10: name = "Dildo Roxo";
  566. case 11: name = "Dildo";
  567. case 12: name = "Vibrador";
  568. case 13: name = "Vibrador de Prata";
  569. case 14: name = "Flores";
  570. case 15: name = "Cano";
  571. case 16: name = "Granada";
  572. case 17: name = "Gas Lacrimogenio";
  573. case 18: name = "Coquetel Molotov";
  574. case 22: name = "Pistola 9mm";
  575. case 23: name = "Silenciadora 9mm";
  576. case 24: name = "Desert Eagle";
  577. case 25: name = "Shotgun";
  578. case 26: name = "Sawnoff ";
  579. case 27: name = "Combat Shotgun";
  580. case 28: name = "Uzi";
  581. case 29: name = "MP5";
  582. case 30: name = "AK - 47";
  583. case 31: name = "M4";
  584. case 32: name = "Tec-9";
  585. case 33: name = "Country Rifle";
  586. case 34: name = "Sniper Rifle";
  587. case 35: name = "RPG";
  588. case 36: name = "HS Rocket";
  589. case 37: name = "Lanca-chamas";
  590. case 38: name = "Minigun";
  591. case 39: name = "Satchel Charge";
  592. case 40: name = "Detonador";
  593. case 41: name = "Lata de Spray";
  594. case 42: name = "Extintor";
  595. case 43: name = "Camera";
  596. case 44: name = "Oculos Noturno";
  597. case 45: name = "Osculo Termal";
  598. case 46: name = "Parachute";
  599. default: name = "Nenhuma";
  600. }
  601. return name;
  602. }
  603.  
  604. DroparItem(playerid, modelid)
  605. {
  606. if(IsPlayerConnected(playerid))
  607. {
  608. new str[128], Float:x, Float:y, Float:z;
  609. if(PlayerInventario[playerid][modelid][Slot] != -1)
  610. {
  611. GetPlayerPos(playerid, x,y,z);
  612. for(new i = 0; i < MAX_OBJECTS; i++)
  613. {
  614. if(DropItemSlot[i][DropItem] == 0)
  615. {
  616. DropItemSlot[i][DropItem] = CreateDynamicObject(PlayerInventario[playerid][modelid][Slot], x,y,z-1, 0, 0, 0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
  617. DropItemSlot[i][DropItemUni] = PlayerInventario[playerid][modelid][Unidades];
  618. DropItemSlot[i][DropItemID] = PlayerInventario[playerid][modelid][Slot];
  619. DropItemSlot[i][Virtual] = GetPlayerVirtualWorld(playerid);
  620. DropItemSlot[i][Interior] = GetPlayerInterior(playerid);
  621. format(str, sizeof(str), "Item: %s\nUnidades: %s", ItemNomeInv(PlayerInventario[playerid][modelid][Slot]), ConvertMoney(PlayerInventario[playerid][modelid][Unidades]));
  622. DropItemSlot[i][LabelItem] = CreateDynamic3DTextLabel(str, COLOR_GRAD5, x,y,z-1, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
  623. format(str, 100, "*%s largou o item %s com %s unidades no chão.", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]), ConvertMoney(PlayerInventario[playerid][modelid][Unidades]));
  624. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  625. format(str, 128, "%s dropou o item %s no chão com %s Unidades.", PlayerName(playerid), ItemNomeInv(DropItemSlot[i][DropItemID]), ConvertMoney(DropItemSlot[i][DropItemUni]));
  626. PlayerInventario[playerid][modelid][Unidades] = 0;
  627. AtualizarInventario(playerid, modelid);
  628. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);
  629. return 1;
  630. }
  631. }
  632. }
  633. }
  634. return 0;
  635. }
  636.  
  637. AtualizarInventario(playerid, i)
  638. {
  639. new str[64];
  640. if(PlayerInventario[playerid][i][Unidades] < 1)
  641. {
  642. PlayerInventario[playerid][i][Unidades] = 0;
  643. PlayerInventario[playerid][i][Slot] = -1;
  644. }
  645. if(PlayerInventario[playerid][i][Slot] == -1)
  646. {
  647. PlayerTextDrawSetString(playerid, DrawInv[playerid][38], "");
  648. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][i], 0.000000, 0.000000, 0.000000, 999);
  649. }
  650. else
  651. {
  652. format(str, sizeof(str), "%s - %s unidades", ItemNomeInv(PlayerInventario[playerid][i][Slot]), ConvertMoney(PlayerInventario[playerid][i][Unidades]));
  653. PlayerTextDrawSetString(playerid, DrawInv[playerid][38], str);
  654. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][i], 0.000000, 0.000000, 0.000000, 1);
  655. }
  656. PlayerTextDrawShow(playerid, DrawInv[playerid][38]);
  657. PlayerTextDrawShow(playerid, DrawInv[playerid][i]);
  658. return 1;
  659. }
  660.  
  661. FuncaoItens(playerid, modelid)// AQUI VOCÊ PODE DEFINIR AS FUNÇÕES DE CADA ITEM. SEGUE AS FUNÇÕES PRONTAS ABAIXO
  662. {
  663. new str[128], Float:life;
  664. switch(PlayerInventario[playerid][modelid][Slot])
  665. {
  666. case 331..371://
  667. {
  668. GivePlayerWeapon(playerid, GetArmaInv(PlayerInventario[playerid][modelid][Slot]), PlayerInventario[playerid][modelid][Unidades]);
  669. format(str, sizeof(str), "*%s retirou uma %s de sua mochila.", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  670. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  671. PlayerInventario[playerid][modelid][Unidades] = 0;
  672. AtualizarInventario(playerid, modelid);
  673. return 1;
  674. }
  675. case 19823, 19820, 1486, 19824, 19822, 2958://Bebidas Alcoolicas
  676. {
  677. PlayerInventario[playerid][modelid][Unidades]--;
  678. GetPlayerHealth(playerid, life);
  679. SetPlayerHealth(playerid, life+1);
  680. GetPlayerHealth(playerid, life);
  681. if(life > 100){SetPlayerHealth(playerid, 100);}
  682. format(str, 128, "*%s bebeu uma garrava de %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  683. ApplyAnimation(playerid, "VENDING", "VEND_Drink_P", 4.1, 0, 0, 0, 0, 0, 1);
  684. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  685. AtualizarInventario(playerid, modelid);
  686. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  687. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  688. return 1;
  689. }
  690. case 11722, 11723://Mostarda & Ketchup
  691. {
  692. PlayerInventario[playerid][modelid][Unidades]--;
  693. GetPlayerHealth(playerid, life);
  694. SetPlayerHealth(playerid, life+3);
  695. GetPlayerHealth(playerid, life);
  696. if(life > 100){SetPlayerHealth(playerid, 100);}
  697. format(str, 128, "*%s comeu sache de %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  698. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.1, 0, 0, 0, 0, 0, 1);
  699. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  700. AtualizarInventario(playerid, modelid);
  701. return 1;
  702. }
  703. case 19570, 1668, 1546, 2601://Leite & Agua & Refrigerante
  704. {
  705. GetPlayerHealth(playerid, life);
  706. SetPlayerHealth(playerid, life+25);
  707. GetPlayerHealth(playerid, life);
  708. if(life > 100){SetPlayerHealth(playerid, 100);}
  709. PlayerInventario[playerid][modelid][Unidades]--;
  710. format(str, 128, "*%s bebeu uma garrava de %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  711. ApplyAnimation(playerid, "VENDING", "VEND_Drink_P", 4.1, 0, 0, 0, 0, 0, 1);
  712. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  713. AtualizarInventario(playerid, modelid);
  714. return 1;
  715. }
  716. case 1485, 19896, 19897://Baseado & Maco de Cigarro
  717. {
  718. PlayerInventario[playerid][modelid][Unidades]--;
  719. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  720. ApplyAnimation(playerid,"SMOKING","M_smk_drag", 4.1, 0, 0, 0, 0, 0, 1);
  721. format(str, 128, "*%s fumou um %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  722. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  723. AtualizarInventario(playerid, modelid);
  724. return 1;
  725. }
  726. case 19574, 19575, 19576://Frutas
  727. {
  728. PlayerInventario[playerid][modelid][Unidades]--;
  729. GetPlayerHealth(playerid, life);
  730. SetPlayerHealth(playerid, life+3);
  731. GetPlayerHealth(playerid, life);
  732. if(life > 100){SetPlayerHealth(playerid, 100);}
  733. format(str, 128, "*%s comeu uma %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  734. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.1, 0, 0, 0, 0, 0, 1);
  735. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  736. AtualizarInventario(playerid, modelid);
  737. return 1;
  738. }
  739. case 2703, 2880, 2768, 19094, 2769, 19579, 19630://Hamburgers & Peixes & Taco & Pão
  740. {
  741. PlayerInventario[playerid][modelid][Unidades]--;
  742. GetPlayerHealth(playerid, life);
  743. SetPlayerHealth(playerid, life+35);
  744. GetPlayerHealth(playerid, life);
  745. if(life > 100){SetPlayerHealth(playerid, 100);}
  746. format(str, 128, "*%s comeu um %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  747. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.1, 0, 0, 0, 0, 0, 1);
  748. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  749. AtualizarInventario(playerid, modelid);
  750. return 1;
  751. }
  752. case 2881, 2702, 1582, 19580://Pizzas
  753. {
  754. PlayerInventario[playerid][modelid][Unidades]--;
  755. GetPlayerHealth(playerid, life);
  756. SetPlayerHealth(playerid, life+35);
  757. GetPlayerHealth(playerid, life);
  758. if(life > 100){SetPlayerHealth(playerid, 100);}
  759. format(str, 128, "*%s comeu uma %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  760. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.1, 0, 0, 0, 0, 0, 1);
  761. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  762. AtualizarInventario(playerid, modelid);
  763. return 1;
  764. }
  765. case 2709://Remedio
  766. {
  767. GetPlayerHealth(playerid, life);
  768. SetPlayerHealth(playerid, life+10);
  769. GetPlayerHealth(playerid, life);
  770. if(life > 100){SetPlayerHealth(playerid, 100);}
  771. PlayerInventario[playerid][modelid][Unidades]--;
  772. format(str, 128, "*%s usou um frasco de %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  773. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  774. SendClientMessage(playerid, -1, "+10 de vida.");
  775. AtualizarInventario(playerid, modelid);
  776. return 1;
  777. }
  778. case 11738://Remedio Grande
  779. {
  780. GetPlayerHealth(playerid, life);
  781. SetPlayerHealth(playerid, life+50);
  782. GetPlayerHealth(playerid, life);
  783. if(life > 100){SetPlayerHealth(playerid, 100);}
  784. PlayerInventario[playerid][modelid][Unidades]--;
  785. format(str, 128, "*%s usou um frasco de %s", PlayerName(playerid), ItemNomeInv(PlayerInventario[playerid][modelid][Slot]));
  786. SendClientMessageInRange(10, playerid, str, 0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA,0xB384FFAA);
  787. SendClientMessage(playerid, -1, "+50 de vida.");
  788. AtualizarInventario(playerid, modelid);
  789. return 1;
  790. }
  791. case 1212:
  792. {
  793. GivePlayerMoney(playerid, PlayerInventario[playerid][modelid][Unidades]);
  794. format(str, sizeof(str), "Você retirou R$ %s de sua mochila.", ConvertMoney(PlayerInventario[playerid][modelid][Unidades]));
  795. PlayerInventario[playerid][modelid][Unidades] = 0;
  796. SendClientMessage(playerid, COLOR_LIGHTGREEN, str);
  797. AtualizarInventario(playerid, modelid);
  798. return 1;
  799. }
  800. }
  801. return 0;
  802. }
  803.  
  804. static GetArmaInv(i)
  805. {
  806. switch(i)
  807. {
  808. case 331: return 1;
  809. case 333: return 2;
  810. case 334: return 3;
  811. case 335: return 4;
  812. case 336: return 5;
  813. case 337: return 6;
  814. case 338: return 7;
  815. case 339: return 8;
  816. case 341: return 9;
  817. case 321: return 10;
  818. case 322: return 11;
  819. case 323: return 12;
  820. case 324: return 13;
  821. case 325: return 14;
  822. case 326: return 15;
  823. case 342: return 16;
  824. case 343: return 17;
  825. case 344: return 18;
  826. case 346: return 22;
  827. case 347: return 23;
  828. case 348: return 24;
  829. case 349: return 25;
  830. case 350: return 26;
  831. case 351: return 27;
  832. case 352: return 28;
  833. case 353: return 29;
  834. case 355: return 30;
  835. case 356: return 31;
  836. case 372: return 32;
  837. case 357: return 33;
  838. case 358: return 34;
  839. case 359: return 35;
  840. case 360: return 36;
  841. case 361: return 37;
  842. case 362: return 38;
  843. case 363: return 39;
  844. case 364: return 40;
  845. case 365: return 41;
  846. case 366: return 42;
  847. case 367: return 43;
  848. case 368: return 44;
  849. case 369: return 45;
  850. case 371: return 46;
  851. }
  852. return 1;
  853. }
  854.  
  855. IsValidItemInv(itemid) //AQUI VOCÊ DEVE DEFINIR OS ID'S DOS ITENS PARA SER VALIDO AO SETAR, CASO CONTRARIO RETORNARA COMO ERRO
  856. {
  857. if(GetArmaInv(itemid)) return 1;
  858. switch(itemid)
  859. {
  860. case 19823, 19820, 11722, 11723, 19570, 19824, 1486, 19822, 1668, 2958, 19625, 11746,
  861. 3044, 19039, 19040, 19042, 19044, 19045, 19046, 19047, 11747, 18865, 18866, 18867,
  862. 18868, 18869, 18870, 18871, 18872, 18873, 18874, 19513, 18875, 19874, 19138, 19139,
  863. 19140, 19022, 19023, 19024, 19025, 19026, 19027, 19028, 19029, 19030, 19031, 19032,
  864. 19033, 19034, 19035, 2992, 3065, 11712, 18953, 18954, 19554, 18974, 2114,
  865. 18894, 18903, 18898, 18899, 18891, 18909, 18908, 18907, 18906, 18905, 18904, 18901,
  866. 18902, 18892, 18900, 18897, 18896, 18895, 18893, 18810, 18947, 18948, 18949, 18950,
  867. 18951, 19488, 18921, 18922, 18923, 18924, 18925, 18939, 18940, 18941, 18942, 18943,
  868. 1314, 19578, 18636, 19942, 18646, 19141, 19558, 19801, 19330, 1210, 19528,
  869. 19134, 19904, 19515, 19142, 19315, 19527, 19317, 18688, 18702, 18728, 19605, 19606,
  870. 19607, 19577, 1485, 19574, 19575, 19576, 2703, 2880, 19883, 19896, 19897, 1546, 2768, 1212,
  871. 2601, 19835, 2881, 2702, 2769, 2709, 19579, 19630, 19094, 1582, 19580, 19602, 11738,
  872. 1654, 11736, 1650, 1252, 19893, 19921, 2226, 19054, 19056, 19055, 19057,19058: return 1;
  873. }
  874. return 0;
  875. }
  876.  
  877. ConvertMoney(number)
  878. {
  879. new real,mil,milhao,milhaor,bilhao,bilhaor,string[100];
  880. if(number > 999999999)
  881. {
  882. bilhao = number / 1000000000;
  883. bilhaor = number % 1000000000;
  884. milhao = bilhaor / 1000000;
  885. milhaor = bilhaor % 1000000;
  886. mil = milhaor / 1000;
  887. real = milhaor % 1000;
  888. }
  889. else if(number > 999999)
  890. {
  891. milhao = number / 1000000;
  892. milhaor = number % 1000000;
  893. mil = milhaor / 1000;
  894. real = milhaor % 1000;
  895. }
  896. else if(number > 999)
  897. {
  898. mil = number / 1000;
  899. real = number % 1000;
  900. }
  901. if(number > 999999999)
  902. {
  903. format(string, 100, "%d.%03d.%03d.%03d", bilhao, milhao, mil, real);
  904. }
  905. else if(number > 999999)
  906. {
  907. format(string, 100, "%d.%03d.%03d", milhao, mil, real);
  908. }
  909. else if(number > 999)
  910. {
  911. format(string, 100, "%d.%03d", mil, real);
  912. }
  913. else
  914. {
  915. format(string, 100, "%d", number);
  916. }
  917. return string;
  918. }
  919.  
  920. K2::TextDrawInv(playerid)
  921. {
  922. DrawInv[playerid][0] = CreatePlayerTextDraw(playerid, 373.000000, 179.000000, "box");
  923. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][0], 0.000000, 14.687500);
  924. PlayerTextDrawTextSize(playerid, DrawInv[playerid][0], 592.389404, 0.000000);
  925. PlayerTextDrawAlignment(playerid, DrawInv[playerid][0], 1);
  926. PlayerTextDrawColor(playerid, DrawInv[playerid][0], -1);
  927. PlayerTextDrawUseBox(playerid, DrawInv[playerid][0], 1);
  928. PlayerTextDrawBoxColor(playerid, DrawInv[playerid][0], 150);
  929. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][0], 0);
  930. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][0], 255);
  931. PlayerTextDrawFont(playerid, DrawInv[playerid][0], 1);
  932. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][0], 1);
  933.  
  934. DrawInv[playerid][1] = CreatePlayerTextDraw(playerid, 372.000000, 179.000000, "");
  935. PlayerTextDrawTextSize(playerid, DrawInv[playerid][1], 25.000000, 25.000000);
  936. PlayerTextDrawAlignment(playerid, DrawInv[playerid][1], 1);
  937. PlayerTextDrawColor(playerid, DrawInv[playerid][1], -1);
  938. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][1], 0);
  939. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][1], 170);
  940. PlayerTextDrawFont(playerid, DrawInv[playerid][1], 5);
  941. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][1], 0);
  942. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][1], true);
  943. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][1], 0);
  944. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][1], 0.000000, 0.000000, 0.000000, 99.000000);
  945.  
  946. DrawInv[playerid][2] = CreatePlayerTextDraw(playerid, 400.000000, 179.000000, "");
  947. PlayerTextDrawTextSize(playerid, DrawInv[playerid][2], 25.000000, 25.000000);
  948. PlayerTextDrawAlignment(playerid, DrawInv[playerid][2], 1);
  949. PlayerTextDrawColor(playerid, DrawInv[playerid][2], -1);
  950. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][2], 0);
  951. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][2], 170);
  952. PlayerTextDrawFont(playerid, DrawInv[playerid][2], 5);
  953. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][2], 0);
  954. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][2], true);
  955. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][2], 0);
  956. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][2], 0.000000, 0.000000, 0.000000, 1.000000);
  957.  
  958. DrawInv[playerid][3] = CreatePlayerTextDraw(playerid, 428.000000, 179.000000, "");
  959. PlayerTextDrawTextSize(playerid, DrawInv[playerid][3], 25.000000, 25.000000);
  960. PlayerTextDrawAlignment(playerid, DrawInv[playerid][3], 1);
  961. PlayerTextDrawColor(playerid, DrawInv[playerid][3], -1);
  962. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][3], 0);
  963. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][3], 170);
  964. PlayerTextDrawFont(playerid, DrawInv[playerid][3], 5);
  965. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][3], 0);
  966. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][3], true);
  967. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][3], 0);
  968. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][3], 0.000000, 0.000000, 0.000000, 1.000000);
  969.  
  970. DrawInv[playerid][4] = CreatePlayerTextDraw(playerid, 456.000000, 179.000000, "");
  971. PlayerTextDrawTextSize(playerid, DrawInv[playerid][4], 25.000000, 25.000000);
  972. PlayerTextDrawAlignment(playerid, DrawInv[playerid][4], 1);
  973. PlayerTextDrawColor(playerid, DrawInv[playerid][4], -1);
  974. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][4], 0);
  975. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][4], 170);
  976. PlayerTextDrawFont(playerid, DrawInv[playerid][4], 5);
  977. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][4], 0);
  978. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][4], true);
  979. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][4], 0);
  980. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][4], 0.000000, 0.000000, 0.000000, 1.000000);
  981.  
  982. DrawInv[playerid][5] = CreatePlayerTextDraw(playerid, 484.000000, 179.000000, "");
  983. PlayerTextDrawTextSize(playerid, DrawInv[playerid][5], 25.000000, 25.000000);
  984. PlayerTextDrawAlignment(playerid, DrawInv[playerid][5], 1);
  985. PlayerTextDrawColor(playerid, DrawInv[playerid][5], -1);
  986. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][5], 0);
  987. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][5], 170);
  988. PlayerTextDrawFont(playerid, DrawInv[playerid][5], 5);
  989. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][5], 0);
  990. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][5], true);
  991. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][5], 0);
  992. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][5], 0.000000, 0.000000, 0.000000, 1.000000);
  993.  
  994. DrawInv[playerid][6] = CreatePlayerTextDraw(playerid, 512.000000, 179.000000, "");
  995. PlayerTextDrawTextSize(playerid, DrawInv[playerid][6], 25.000000, 25.000000);
  996. PlayerTextDrawAlignment(playerid, DrawInv[playerid][6], 1);
  997. PlayerTextDrawColor(playerid, DrawInv[playerid][6], -1);
  998. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][6], 0);
  999. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][6], 170);
  1000. PlayerTextDrawFont(playerid, DrawInv[playerid][6], 5);
  1001. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][6], 0);
  1002. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][6], true);
  1003. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][6], 0);
  1004. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][6], 0.000000, 0.000000, 0.000000, 1.000000);
  1005.  
  1006. DrawInv[playerid][7] = CreatePlayerTextDraw(playerid, 540.000000, 179.000000, "");
  1007. PlayerTextDrawTextSize(playerid, DrawInv[playerid][7], 25.000000, 25.000000);
  1008. PlayerTextDrawAlignment(playerid, DrawInv[playerid][7], 1);
  1009. PlayerTextDrawColor(playerid, DrawInv[playerid][7], -1);
  1010. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][7], 0);
  1011. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][7], 170);
  1012. PlayerTextDrawFont(playerid, DrawInv[playerid][7], 5);
  1013. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][7], 0);
  1014. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][7], true);
  1015. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][7], 0);
  1016. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][7], 0.000000, 0.000000, 0.000000, 1.000000);
  1017.  
  1018. DrawInv[playerid][8] = CreatePlayerTextDraw(playerid, 568.000000, 179.000000, "");
  1019. PlayerTextDrawTextSize(playerid, DrawInv[playerid][8], 25.000000, 25.000000);
  1020. PlayerTextDrawAlignment(playerid, DrawInv[playerid][8], 1);
  1021. PlayerTextDrawColor(playerid, DrawInv[playerid][8], -1);
  1022. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][8], 0);
  1023. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][8], 170);
  1024. PlayerTextDrawFont(playerid, DrawInv[playerid][8], 5);
  1025. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][8], 0);
  1026. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][8], true);
  1027. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][8], 0);
  1028. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][8], 0.000000, 0.000000, 0.000000, 1.000000);
  1029.  
  1030. DrawInv[playerid][9] = CreatePlayerTextDraw(playerid, 372.000000, 207.000000, "");
  1031. PlayerTextDrawTextSize(playerid, DrawInv[playerid][9], 25.000000, 25.000000);
  1032. PlayerTextDrawAlignment(playerid, DrawInv[playerid][9], 1);
  1033. PlayerTextDrawColor(playerid, DrawInv[playerid][9], -1);
  1034. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][9], 0);
  1035. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][9], 170);
  1036. PlayerTextDrawFont(playerid, DrawInv[playerid][9], 5);
  1037. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][9], 0);
  1038. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][9], true);
  1039. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][9], 0);
  1040. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][9], 0.000000, 0.000000, 0.000000, 1.000000);
  1041.  
  1042. DrawInv[playerid][10] = CreatePlayerTextDraw(playerid, 400.000000, 207.000000, "");
  1043. PlayerTextDrawTextSize(playerid, DrawInv[playerid][10], 25.000000, 25.000000);
  1044. PlayerTextDrawAlignment(playerid, DrawInv[playerid][10], 1);
  1045. PlayerTextDrawColor(playerid, DrawInv[playerid][10], -1);
  1046. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][10], 0);
  1047. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][10], 170);
  1048. PlayerTextDrawFont(playerid, DrawInv[playerid][10], 5);
  1049. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][10], 0);
  1050. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][10], true);
  1051. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][10], 0);
  1052. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][10], 0.000000, 0.000000, 0.000000, 1.000000);
  1053.  
  1054. DrawInv[playerid][11] = CreatePlayerTextDraw(playerid, 428.000000, 207.000000, "");
  1055. PlayerTextDrawTextSize(playerid, DrawInv[playerid][11], 25.000000, 25.000000);
  1056. PlayerTextDrawAlignment(playerid, DrawInv[playerid][11], 1);
  1057. PlayerTextDrawColor(playerid, DrawInv[playerid][11], -1);
  1058. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][11], 0);
  1059. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][11], 170);
  1060. PlayerTextDrawFont(playerid, DrawInv[playerid][11], 5);
  1061. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][11], 0);
  1062. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][11], true);
  1063. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][11], 0);
  1064. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][11], 0.000000, 0.000000, 0.000000, 1.000000);
  1065.  
  1066. DrawInv[playerid][12] = CreatePlayerTextDraw(playerid, 456.000000, 207.000000, "");
  1067. PlayerTextDrawTextSize(playerid, DrawInv[playerid][12], 25.000000, 25.000000);
  1068. PlayerTextDrawAlignment(playerid, DrawInv[playerid][12], 1);
  1069. PlayerTextDrawColor(playerid, DrawInv[playerid][12], -1);
  1070. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][12], 0);
  1071. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][12], 170);
  1072. PlayerTextDrawFont(playerid, DrawInv[playerid][12], 5);
  1073. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][12], 0);
  1074. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][12], true);
  1075. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][12], 0);
  1076. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][12], 0.000000, 0.000000, 0.000000, 1.000000);
  1077.  
  1078. DrawInv[playerid][13] = CreatePlayerTextDraw(playerid, 484.000000, 207.000000, "");
  1079. PlayerTextDrawTextSize(playerid, DrawInv[playerid][13], 25.000000, 25.000000);
  1080. PlayerTextDrawAlignment(playerid, DrawInv[playerid][13], 1);
  1081. PlayerTextDrawColor(playerid, DrawInv[playerid][13], -1);
  1082. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][13], 0);
  1083. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][13], 170);
  1084. PlayerTextDrawFont(playerid, DrawInv[playerid][13], 5);
  1085. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][13], 0);
  1086. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][13], true);
  1087. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][13], 0);
  1088. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][13], 0.000000, 0.000000, 0.000000, 1.000000);
  1089.  
  1090. DrawInv[playerid][14] = CreatePlayerTextDraw(playerid, 512.000000, 207.000000, "");
  1091. PlayerTextDrawTextSize(playerid, DrawInv[playerid][14], 25.000000, 25.000000);
  1092. PlayerTextDrawAlignment(playerid, DrawInv[playerid][14], 1);
  1093. PlayerTextDrawColor(playerid, DrawInv[playerid][14], -1);
  1094. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][14], 0);
  1095. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][14], 170);
  1096. PlayerTextDrawFont(playerid, DrawInv[playerid][14], 5);
  1097. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][14], 0);
  1098. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][14], true);
  1099. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][14], 0);
  1100. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][14], 0.000000, 0.000000, 0.000000, 1.000000);
  1101.  
  1102. DrawInv[playerid][15] = CreatePlayerTextDraw(playerid, 540.000000, 207.000000, "");
  1103. PlayerTextDrawTextSize(playerid, DrawInv[playerid][15], 25.000000, 25.000000);
  1104. PlayerTextDrawAlignment(playerid, DrawInv[playerid][15], 1);
  1105. PlayerTextDrawColor(playerid, DrawInv[playerid][15], -1);
  1106. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][15], 0);
  1107. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][15], 170);
  1108. PlayerTextDrawFont(playerid, DrawInv[playerid][15], 5);
  1109. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][15], 0);
  1110. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][15], true);
  1111. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][15], 0);
  1112. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][15], 0.000000, 0.000000, 0.000000, 1.000000);
  1113.  
  1114. DrawInv[playerid][16] = CreatePlayerTextDraw(playerid, 568.000000, 207.000000, "");
  1115. PlayerTextDrawTextSize(playerid, DrawInv[playerid][16], 25.000000, 25.000000);
  1116. PlayerTextDrawAlignment(playerid, DrawInv[playerid][16], 1);
  1117. PlayerTextDrawColor(playerid, DrawInv[playerid][16], -1);
  1118. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][16], 0);
  1119. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][16], 170);
  1120. PlayerTextDrawFont(playerid, DrawInv[playerid][16], 5);
  1121. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][16], 0);
  1122. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][16], true);
  1123. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][16], 0);
  1124. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][16], 0.000000, 0.000000, 0.000000, 1.000000);
  1125.  
  1126. DrawInv[playerid][17] = CreatePlayerTextDraw(playerid, 372.000000, 235.000000, "");
  1127. PlayerTextDrawTextSize(playerid, DrawInv[playerid][17], 25.000000, 25.000000);
  1128. PlayerTextDrawAlignment(playerid, DrawInv[playerid][17], 1);
  1129. PlayerTextDrawColor(playerid, DrawInv[playerid][17], -1);
  1130. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][17], 0);
  1131. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][17], 170);
  1132. PlayerTextDrawFont(playerid, DrawInv[playerid][17], 5);
  1133. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][17], 0);
  1134. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][17], true);
  1135. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][17], 0);
  1136. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][17], 0.000000, 0.000000, 0.000000, 1.000000);
  1137.  
  1138. DrawInv[playerid][18] = CreatePlayerTextDraw(playerid, 400.000000, 235.000000, "");
  1139. PlayerTextDrawTextSize(playerid, DrawInv[playerid][18], 25.000000, 25.000000);
  1140. PlayerTextDrawAlignment(playerid, DrawInv[playerid][18], 1);
  1141. PlayerTextDrawColor(playerid, DrawInv[playerid][18], -1);
  1142. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][18], 0);
  1143. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][18], 170);
  1144. PlayerTextDrawFont(playerid, DrawInv[playerid][18], 5);
  1145. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][18], 0);
  1146. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][18], true);
  1147. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][18], 0);
  1148. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][18], 0.000000, 0.000000, 0.000000, 1.000000);
  1149.  
  1150. DrawInv[playerid][19] = CreatePlayerTextDraw(playerid, 428.000000, 235.000000, "");
  1151. PlayerTextDrawTextSize(playerid, DrawInv[playerid][19], 25.000000, 25.000000);
  1152. PlayerTextDrawAlignment(playerid, DrawInv[playerid][19], 1);
  1153. PlayerTextDrawColor(playerid, DrawInv[playerid][19], -1);
  1154. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][19], 0);
  1155. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][19], 170);
  1156. PlayerTextDrawFont(playerid, DrawInv[playerid][19], 5);
  1157. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][19], 0);
  1158. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][19], true);
  1159. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][19], 0);
  1160. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][19], 0.000000, 0.000000, 0.000000, 1.000000);
  1161.  
  1162. DrawInv[playerid][20] = CreatePlayerTextDraw(playerid, 456.000000, 235.000000, "");
  1163. PlayerTextDrawTextSize(playerid, DrawInv[playerid][20], 25.000000, 25.000000);
  1164. PlayerTextDrawAlignment(playerid, DrawInv[playerid][20], 1);
  1165. PlayerTextDrawColor(playerid, DrawInv[playerid][20], -1);
  1166. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][20], 0);
  1167. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][20], 170);
  1168. PlayerTextDrawFont(playerid, DrawInv[playerid][20], 5);
  1169. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][20], 0);
  1170. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][20], true);
  1171. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][20], 0);
  1172. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][20], 0.000000, 0.000000, 0.000000, 1.000000);
  1173.  
  1174. DrawInv[playerid][21] = CreatePlayerTextDraw(playerid, 484.000000, 235.000000, "");
  1175. PlayerTextDrawTextSize(playerid, DrawInv[playerid][21], 25.000000, 25.000000);
  1176. PlayerTextDrawAlignment(playerid, DrawInv[playerid][21], 1);
  1177. PlayerTextDrawColor(playerid, DrawInv[playerid][21], -1);
  1178. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][21], 0);
  1179. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][21], 170);
  1180. PlayerTextDrawFont(playerid, DrawInv[playerid][21], 5);
  1181. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][21], 0);
  1182. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][21], true);
  1183. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][21], 0);
  1184. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][21], 0.000000, 0.000000, 0.000000, 1.000000);
  1185.  
  1186. DrawInv[playerid][22] = CreatePlayerTextDraw(playerid, 512.000000, 235.000000, "");
  1187. PlayerTextDrawTextSize(playerid, DrawInv[playerid][22], 25.000000, 25.000000);
  1188. PlayerTextDrawAlignment(playerid, DrawInv[playerid][22], 1);
  1189. PlayerTextDrawColor(playerid, DrawInv[playerid][22], -1);
  1190. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][22], 0);
  1191. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][22], 170);
  1192. PlayerTextDrawFont(playerid, DrawInv[playerid][22], 5);
  1193. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][22], 0);
  1194. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][22], true);
  1195. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][22], 0);
  1196. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][22], 0.000000, 0.000000, 0.000000, 1.000000);
  1197.  
  1198. DrawInv[playerid][23] = CreatePlayerTextDraw(playerid, 540.000000, 235.000000, "");
  1199. PlayerTextDrawTextSize(playerid, DrawInv[playerid][23], 25.000000, 25.000000);
  1200. PlayerTextDrawAlignment(playerid, DrawInv[playerid][23], 1);
  1201. PlayerTextDrawColor(playerid, DrawInv[playerid][23], -1);
  1202. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][23], 0);
  1203. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][23], 170);
  1204. PlayerTextDrawFont(playerid, DrawInv[playerid][23], 5);
  1205. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][23], 0);
  1206. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][23], true);
  1207. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][23], 0);
  1208. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][23], 0.000000, 0.000000, 0.000000, 1.000000);
  1209.  
  1210. DrawInv[playerid][24] = CreatePlayerTextDraw(playerid, 568.000000, 235.000000, "");
  1211. PlayerTextDrawTextSize(playerid, DrawInv[playerid][24], 25.000000, 25.000000);
  1212. PlayerTextDrawAlignment(playerid, DrawInv[playerid][24], 1);
  1213. PlayerTextDrawColor(playerid, DrawInv[playerid][24], -1);
  1214. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][24], 0);
  1215. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][24], 170);
  1216. PlayerTextDrawFont(playerid, DrawInv[playerid][24], 5);
  1217. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][24], 0);
  1218. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][24], true);
  1219. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][24], 0);
  1220. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][24], 0.000000, 0.000000, 0.000000, 1.000000);
  1221.  
  1222. DrawInv[playerid][25] = CreatePlayerTextDraw(playerid, 372.000000, 263.000000, "");
  1223. PlayerTextDrawTextSize(playerid, DrawInv[playerid][25], 25.000000, 25.000000);
  1224. PlayerTextDrawAlignment(playerid, DrawInv[playerid][25], 1);
  1225. PlayerTextDrawColor(playerid, DrawInv[playerid][25], -1);
  1226. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][25], 0);
  1227. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][25], 170);
  1228. PlayerTextDrawFont(playerid, DrawInv[playerid][25], 5);
  1229. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][25], 0);
  1230. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][25], true);
  1231. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][25], 0);
  1232. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][25], 0.000000, 0.000000, 0.000000, 1.000000);
  1233.  
  1234. DrawInv[playerid][26] = CreatePlayerTextDraw(playerid, 400.000000, 263.000000, "");
  1235. PlayerTextDrawTextSize(playerid, DrawInv[playerid][26], 25.000000, 25.000000);
  1236. PlayerTextDrawAlignment(playerid, DrawInv[playerid][26], 1);
  1237. PlayerTextDrawColor(playerid, DrawInv[playerid][26], -1);
  1238. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][26], 0);
  1239. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][26], 170);
  1240. PlayerTextDrawFont(playerid, DrawInv[playerid][26], 5);
  1241. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][26], 0);
  1242. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][26], true);
  1243. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][26], 0);
  1244. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][26], 0.000000, 0.000000, 0.000000, 1.000000);
  1245.  
  1246. DrawInv[playerid][27] = CreatePlayerTextDraw(playerid, 428.000000, 263.000000, "");
  1247. PlayerTextDrawTextSize(playerid, DrawInv[playerid][27], 25.000000, 25.000000);
  1248. PlayerTextDrawAlignment(playerid, DrawInv[playerid][27], 1);
  1249. PlayerTextDrawColor(playerid, DrawInv[playerid][27], -1);
  1250. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][27], 0);
  1251. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][27], 170);
  1252. PlayerTextDrawFont(playerid, DrawInv[playerid][27], 5);
  1253. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][27], 0);
  1254. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][27], true);
  1255. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][27], 0);
  1256. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][27], 0.000000, 0.000000, 0.000000, 1.000000);
  1257.  
  1258. DrawInv[playerid][28] = CreatePlayerTextDraw(playerid, 456.000000, 263.000000, "");
  1259. PlayerTextDrawTextSize(playerid, DrawInv[playerid][28], 25.000000, 25.000000);
  1260. PlayerTextDrawAlignment(playerid, DrawInv[playerid][28], 1);
  1261. PlayerTextDrawColor(playerid, DrawInv[playerid][28], -1);
  1262. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][28], 0);
  1263. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][28], 170);
  1264. PlayerTextDrawFont(playerid, DrawInv[playerid][28], 5);
  1265. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][28], 0);
  1266. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][28], true);
  1267. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][28], 0);
  1268. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][28], 0.000000, 0.000000, 0.000000, 1.000000);
  1269.  
  1270. DrawInv[playerid][29] = CreatePlayerTextDraw(playerid, 484.000000, 263.000000, "");
  1271. PlayerTextDrawTextSize(playerid, DrawInv[playerid][29], 25.000000, 25.000000);
  1272. PlayerTextDrawAlignment(playerid, DrawInv[playerid][29], 1);
  1273. PlayerTextDrawColor(playerid, DrawInv[playerid][29], -1);
  1274. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][29], 0);
  1275. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][29], 170);
  1276. PlayerTextDrawFont(playerid, DrawInv[playerid][29], 5);
  1277. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][29], 0);
  1278. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][29], true);
  1279. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][29], 0);
  1280. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][29], 0.000000, 0.000000, 0.000000, 1.000000);
  1281.  
  1282. DrawInv[playerid][30] = CreatePlayerTextDraw(playerid, 512.000000, 263.000000, "");
  1283. PlayerTextDrawTextSize(playerid, DrawInv[playerid][30], 25.000000, 25.000000);
  1284. PlayerTextDrawAlignment(playerid, DrawInv[playerid][30], 1);
  1285. PlayerTextDrawColor(playerid, DrawInv[playerid][30], -1);
  1286. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][30], 0);
  1287. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][30], 170);
  1288. PlayerTextDrawFont(playerid, DrawInv[playerid][30], 5);
  1289. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][30], 0);
  1290. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][30], true);
  1291. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][30], 0);
  1292. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][30], 0.000000, 0.000000, 0.000000, 1.000000);
  1293.  
  1294. DrawInv[playerid][31] = CreatePlayerTextDraw(playerid, 540.000000, 263.000000, "");
  1295. PlayerTextDrawTextSize(playerid, DrawInv[playerid][31], 25.000000, 25.000000);
  1296. PlayerTextDrawAlignment(playerid, DrawInv[playerid][31], 1);
  1297. PlayerTextDrawColor(playerid, DrawInv[playerid][31], -1);
  1298. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][31], 0);
  1299. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][31], 170);
  1300. PlayerTextDrawFont(playerid, DrawInv[playerid][31], 5);
  1301. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][31], 0);
  1302. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][31], true);
  1303. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][31], 0);
  1304. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][31], 0.000000, 0.000000, 0.000000, 1.000000);
  1305.  
  1306. DrawInv[playerid][32] = CreatePlayerTextDraw(playerid, 568.000000, 263.000000, "");
  1307. PlayerTextDrawTextSize(playerid, DrawInv[playerid][32], 25.000000, 25.000000);
  1308. PlayerTextDrawAlignment(playerid, DrawInv[playerid][32], 1);
  1309. PlayerTextDrawColor(playerid, DrawInv[playerid][32], -1);
  1310. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][32], 0);
  1311. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][32], 170);
  1312. PlayerTextDrawFont(playerid, DrawInv[playerid][32], 5);
  1313. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][32], 0);
  1314. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][32], true);
  1315. PlayerTextDrawSetPreviewModel(playerid, DrawInv[playerid][32], 0);
  1316. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][32], 0.000000, 0.000000, 0.000000, 1.000000);
  1317.  
  1318. for(new i = 1; i < 33; ++i)
  1319. {
  1320. PlayerTextDrawSetPreviewRot(playerid, DrawInv[playerid][i], 0.000000, 0.000000, 0.000000, 999);
  1321. }
  1322.  
  1323. DrawInv[playerid][33] = CreatePlayerTextDraw(playerid, 373.000000, 161.000000, "box");
  1324. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][33], 0.000000, 1.466506);
  1325. PlayerTextDrawTextSize(playerid, DrawInv[playerid][33], 592.000000, 0.000000);
  1326. PlayerTextDrawAlignment(playerid, DrawInv[playerid][33], 1);
  1327. PlayerTextDrawColor(playerid, DrawInv[playerid][33], -1);
  1328. PlayerTextDrawUseBox(playerid, DrawInv[playerid][33], 1);
  1329. PlayerTextDrawBoxColor(playerid, DrawInv[playerid][33], 255);
  1330. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][33], 0);
  1331. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][33], 255);
  1332. PlayerTextDrawFont(playerid, DrawInv[playerid][33], 1);
  1333. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][33], 1);
  1334.  
  1335. DrawInv[playerid][34] = CreatePlayerTextDraw(playerid, 372.000000, 162.000000, "INVENTARIO:_MAX_PLAYER_NAME");
  1336. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][34], 0.210623, 0.888332);
  1337. PlayerTextDrawAlignment(playerid, DrawInv[playerid][34], 1);
  1338. PlayerTextDrawColor(playerid, DrawInv[playerid][34], -1);
  1339. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][34], 0);
  1340. PlayerTextDrawSetOutline(playerid, DrawInv[playerid][34], 1);
  1341. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][34], 255);
  1342. PlayerTextDrawFont(playerid, DrawInv[playerid][34], 1);
  1343. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][34], 1);
  1344.  
  1345. DrawInv[playerid][35] = CreatePlayerTextDraw(playerid, 584.375000, 163.166656, "X");
  1346. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][35], 0.298748, 0.824165);
  1347. PlayerTextDrawTextSize(playerid, DrawInv[playerid][35], 590, 10.000000);
  1348. PlayerTextDrawAlignment(playerid, DrawInv[playerid][35], 1);
  1349. PlayerTextDrawColor(playerid, DrawInv[playerid][35], -16776961);
  1350. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][35], 0);
  1351. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][35], 255);
  1352. PlayerTextDrawFont(playerid, DrawInv[playerid][35], 3);
  1353. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][35], 1);
  1354. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][35], true);
  1355.  
  1356. DrawInv[playerid][36] = CreatePlayerTextDraw(playerid, 374.000000, 296.000000, "Usar");
  1357. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][36], 0.200000, 1.000000);
  1358. PlayerTextDrawTextSize(playerid, DrawInv[playerid][36], 396, 10.000000);
  1359. PlayerTextDrawAlignment(playerid, DrawInv[playerid][36], 1);
  1360. PlayerTextDrawColor(playerid, DrawInv[playerid][36], -1);
  1361. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][36], 0);
  1362. PlayerTextDrawSetOutline(playerid, DrawInv[playerid][36], 1);
  1363. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][36], 255);
  1364. PlayerTextDrawFont(playerid, DrawInv[playerid][36], 2);
  1365. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][36], 1);
  1366. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][36], true);
  1367.  
  1368. DrawInv[playerid][37] = CreatePlayerTextDraw(playerid, 405.000000, 296.000000, "Descartar");
  1369. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][37], 0.200000, 1.000000);
  1370. PlayerTextDrawTextSize(playerid, DrawInv[playerid][37], 455, 10.000000);
  1371. PlayerTextDrawAlignment(playerid, DrawInv[playerid][37], 1);
  1372. PlayerTextDrawColor(playerid, DrawInv[playerid][37], -1);
  1373. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][37], 0);
  1374. PlayerTextDrawSetOutline(playerid, DrawInv[playerid][37], 1);
  1375. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][37], 255);
  1376. PlayerTextDrawFont(playerid, DrawInv[playerid][37], 2);
  1377. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][37], 1);
  1378. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][37], true);
  1379.  
  1380. DrawInv[playerid][38] = CreatePlayerTextDraw(playerid, 593.147094, 303.800354, "_0_unidades");
  1381. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][38], 0.200000, 0.800000);
  1382. PlayerTextDrawAlignment(playerid, DrawInv[playerid][38], 3);
  1383. PlayerTextDrawColor(playerid, DrawInv[playerid][38], -1);
  1384. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][38], 0);
  1385. PlayerTextDrawSetOutline(playerid, DrawInv[playerid][38], 1);
  1386. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][38], 255);
  1387. PlayerTextDrawFont(playerid, DrawInv[playerid][38], 1);
  1388. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][38], 1);
  1389.  
  1390. DrawInv[playerid][39] = CreatePlayerTextDraw(playerid, 464.601501, 296.016723, "Separar");
  1391. PlayerTextDrawLetterSize(playerid, DrawInv[playerid][39], 0.200000, 1.000000);
  1392. PlayerTextDrawTextSize(playerid, DrawInv[playerid][39], 502.000000, 10.000000);
  1393. PlayerTextDrawAlignment(playerid, DrawInv[playerid][39], 1);
  1394. PlayerTextDrawColor(playerid, DrawInv[playerid][39], -1);
  1395. PlayerTextDrawSetShadow(playerid, DrawInv[playerid][39], 0);
  1396. PlayerTextDrawSetOutline(playerid, DrawInv[playerid][39], 1);
  1397. PlayerTextDrawBackgroundColor(playerid, DrawInv[playerid][39], 255);
  1398. PlayerTextDrawFont(playerid, DrawInv[playerid][39], 2);
  1399. PlayerTextDrawSetProportional(playerid, DrawInv[playerid][39], 1);
  1400. PlayerTextDrawSetSelectable(playerid, DrawInv[playerid][39], true);
  1401. return 1;
  1402. }
  1403.  
Add Comment
Please, Sign In to add comment