Advertisement
Axll

Inventario

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