Bom estou utilizando um sistema inventario bom, mais ele ta com um erro que eu nгo to conseguindo fazer compilar.
Код HTML:
#include <a_samp>
#define MAX_ITENS 300
#define MAX_SERVER_ITENS 300
#define DIALOG_COMPRAR_INVENTARIO 1
enum {
ITEM_TIPO_NADA,
ITEM_TIPO_ARMA,
ITEM_TIPO_FOME,
ITEM_TIPO_SEDE,
ITEM_TIPO_COLETE,
ITEM_TIPO_VEICULOMOD,
ITEM_TIPO_DROGA,
ITEM_TIPO_REMEDIO,
ITEM_TIPO_MATERIAL
}
enum enum_serverItens {
sItem_id,
sItem_tipo,
sItem_modelo,
sItem_nome[128],
//ITEM_TIPO_ARMA
sItem_arma_model,
}
enum enum_pInventario {
bool:inv_item_ativo, //se o item existe ou nao;
inv_item_index, //id global do item;
inv_armaIndex, //usado para armas; (arma id)
inv_armaBalas, //usado para armas; (quantidade de balas)
Float:inv_coleteStatus, //usado para coletes; (quantidade do colete)
}
enum enum_mundoItens {
bool:mItem_ativo,
mItem_tipo,
mItem_index,
//mItem tipo ARMA :
mItem_armaIndex,
mItem_armaBalas,
//mItem tipo COLETE:
Float:mItem_coleteStatus,
//mItem tipo FOME e SEDE :
mItem_objeto,
mItem_quantidade,
Float:mItem_x,
Float:mItem_y,
Float:mItem_z,
Text3D:mItem_text3d,
mItem_createObject
}
enum enum_pInfo {
bool:pMochilaAtiva, //comprada
pMochila, //numero de slot
pMarijuana,
pCocaina,
pCrack,
pEcstasy,
pMateriais,
pRemedios
}
new pInventario[MAX_PLAYERS][15][enum_pInventario];
new mundoItens[MAX_ITENS][enum_mundoItens];
new pInfo[MAX_PLAYERS][enum_pInfo];
new PlayerText:inventario_fundo[MAX_PLAYERS];
new PlayerText:inventario_aba[MAX_PLAYERS][2];
new PlayerText:inventario_index[MAX_PLAYERS][15];
new PlayerText:inventario_fechar[MAX_PLAYERS];
new PlayerText:inventario_usar[MAX_PLAYERS];
new PlayerText:inventario_drop[MAX_PLAYERS];
new PlayerText:inventario_opcoes[MAX_PLAYERS][5];
new PlayerText:inventario_opcoes_fechar[MAX_PLAYERS];
new PlayerText:inventario_opcoes_equipar[MAX_PLAYERS];
new PlayerText:inventario_opcoes_guardar[MAX_PLAYERS];
new PlayerText:backgroundinv[MAX_PLAYERS][15];
new PlayerText:inventario_item_nome[MAX_PLAYERS];
new PlayerText:inventario_item_info[MAX_PLAYERS][15];
new PlayerText:inventario_tamanho_show[MAX_PLAYERS];
new PlayerText:inventario_aba_equipam[MAX_PLAYERS];
new PlayerText:inventario_aba_outros[MAX_PLAYERS];
new PlayerText:inventario_outros_info[MAX_PLAYERS][6];
new serverItens[][enum_serverItens] = {
//{0, ITEM_TIPO_ARMA, 331, "Brass Knuckles", 1},
{0, ITEM_TIPO_ARMA, 18631, "erro", 0},
{1, ITEM_TIPO_ARMA, 333, "Golf Club", 2},
{2, ITEM_TIPO_ARMA, 334, "Nitestick", 3},
{3, ITEM_TIPO_ARMA, 335, "Knife", 4},
{4, ITEM_TIPO_ARMA, 336, "Baseball Bat", 5},
{5, ITEM_TIPO_ARMA, 337, "Showel", 6},
{6, ITEM_TIPO_ARMA, 338, "Pool Cue", 7},
{7, ITEM_TIPO_ARMA, 339, "Katana", 8},
{8, ITEM_TIPO_ARMA, 341, "Chainsaw", 9},
{9, ITEM_TIPO_ARMA, 321, "Purple Dildo", 10},
{10, ITEM_TIPO_ARMA, 322, "Small White Dildo", 11},
{11, ITEM_TIPO_ARMA, 323, "Long White Dildo", 12},
{12, ITEM_TIPO_ARMA, 324, "Vibrator", 13},
{13, ITEM_TIPO_ARMA, 325, "Flowers", 14},
{14, ITEM_TIPO_ARMA, 326, "Cane", 15},
{15, ITEM_TIPO_ARMA, 342, "Grenade", 16},
{16, ITEM_TIPO_ARMA, 343, "Tear Gas", 17},
{17, ITEM_TIPO_ARMA, 344, "Molotov", 18},
{18, ITEM_TIPO_ARMA, 346, "Glock", 22},
{19, ITEM_TIPO_ARMA, 347, "Silenced Colt", 23},
{20, ITEM_TIPO_ARMA, 348, "Desert Eagle", 24},
{21, ITEM_TIPO_ARMA, 349, "Shotgun", 25},
{22, ITEM_TIPO_ARMA, 350, "Sawn Off", 26},
{23, ITEM_TIPO_ARMA, 351, "Combat Shotgun", 27},
{24, ITEM_TIPO_ARMA, 352, "Micro UZI", 28},
{25, ITEM_TIPO_ARMA, 353, "MP5", 29},
{26, ITEM_TIPO_ARMA, 355, "AK47", 30},
{27, ITEM_TIPO_ARMA, 356, "M4", 31},
{28, ITEM_TIPO_ARMA, 372, "Tec9", 32},
{29, ITEM_TIPO_ARMA, 357, "Rifle", 33},
{30, ITEM_TIPO_ARMA, 358, "Sniper Rifle", 34},
{31, ITEM_TIPO_ARMA, 359, "Rocket Launcher", 35},
{32, ITEM_TIPO_ARMA, 360, "HS Rocket Launcher", 36},
{33, ITEM_TIPO_ARMA, 361, "Flamethrower", 37},
{34, ITEM_TIPO_ARMA, 362, "Minigun", 38},
{35, ITEM_TIPO_ARMA, 363, "Satchel Charge", 39},
{36, ITEM_TIPO_ARMA, 365, "Spraycan", 41},
{37, ITEM_TIPO_ARMA, 366, "Fire Extinguisher", 42},
{38, ITEM_TIPO_ARMA, 367, "Camera", 43},
{39, ITEM_TIPO_ARMA, 371, "Parachute", 46},
//
{40, ITEM_TIPO_COLETE, 19142, "Colete", 0},
//car parts
{41, ITEM_TIPO_VEICULOMOD, 1000, "Spoiler Pro Certain Transfender cars", 0},
{42, ITEM_TIPO_VEICULOMOD, 1001, "Spoiler Win Certain Transfender cars", 0},
{43, ITEM_TIPO_VEICULOMOD, 1002, "Spoiler DragCertain Transfender cars", 0},
{44, ITEM_TIPO_VEICULOMOD, 1003, "Spoiler AlphaCertain Transfender cars", 0},
{45, ITEM_TIPO_VEICULOMOD, 1004, "Hood Champ Scoop Certain Transfender cars", 0},
{46, ITEM_TIPO_VEICULOMOD, 1005, "Hood Fury Scoop Certain Transfender cars", 0},
{47, ITEM_TIPO_VEICULOMOD, 1006, "Roof Scoop Certain Transfender cars", 0},
{48, ITEM_TIPO_VEICULOMOD, 1007, "kSideskirtRight Sideskirt Certain Transfender cars", 0},
{49, ITEM_TIPO_VEICULOMOD, 1008, "Nitro5 Most cars", 0},
{50, ITEM_TIPO_VEICULOMOD, 0, "ERRO ERRO ERRO ERRO FFF", 0},
{51, ITEM_TIPO_VEICULOMOD, 1009, "Nitro2 Most cars", 0},
{52, ITEM_TIPO_VEICULOMOD, 1010, "Nitro10 Most cars", 0},
{53, ITEM_TIPO_VEICULOMOD, 1011, "Hood Race Scoop Certain Transfender cars", 0},
{54, ITEM_TIPO_VEICULOMOD, 1012, "Hood Worx Scoop Certain Transfender cars", 0},
{55, ITEM_TIPO_VEICULOMOD, 1013, "Lamps Round Fog Certain Transfender cars", 0},
{56, ITEM_TIPO_VEICULOMOD, 1014, "Spoiler Champ Certain Transfender cars", 0},
{57, ITEM_TIPO_VEICULOMOD, 1015, "Spoiler Race Certain Transfender cars", 0},
{58, ITEM_TIPO_VEICULOMOD, 1016, "Spoiler Worx Certain Transfender cars", 0},
{59, ITEM_TIPO_VEICULOMOD, 1017, "Sideskirt Left Sideskirt Certain Transfender cars", 0},
{60, ITEM_TIPO_VEICULOMOD, 1018, "Exhaust Upswept Most cars", 0},
{61, ITEM_TIPO_VEICULOMOD, 1019, "Exhaust Twin Most cars", 0},
{62, ITEM_TIPO_VEICULOMOD, 1020, "Exhaust Large Most cars", 0},
{63, ITEM_TIPO_VEICULOMOD, 1021, "Exhaust Medium Most cars", 0},
{64, ITEM_TIPO_VEICULOMOD, 1022, "Exhaust Small Most cars", 0},
{65, ITEM_TIPO_VEICULOMOD, 1023, "Spoiler Fury Certain Transfender cars", 0},
{66, ITEM_TIPO_VEICULOMOD, 1024, "Lamps Square Fog Certain Transfender cars", 0},
{67, ITEM_TIPO_VEICULOMOD, 1025, "Wheels Offroad Certain Transfender cars", 0},
{68, ITEM_TIPO_VEICULOMOD, 1026, "Sideskirt Right Alien Sideskirt Sultan", 0},
{69, ITEM_TIPO_VEICULOMOD, 1027, "Sideskirt Left Alien Sideskirt Sultan", 0},
{70, ITEM_TIPO_VEICULOMOD, 1028, "Exhaust Alien Sultan", 0},
{71, ITEM_TIPO_VEICULOMOD, 1029, "Exhaust X-Flow Sultan", 0},
{72, ITEM_TIPO_VEICULOMOD, 1030, "Sideskirt Left X-Flow Sideskirt Sultan", 0},
{73, ITEM_TIPO_VEICULOMOD, 1031, "Sideskirt Right X-Flow Sideskirt Sultan", 0},
{74, ITEM_TIPO_VEICULOMOD, 1032, "RoofAlien Roof VentSultan", 0},
{75, ITEM_TIPO_VEICULOMOD, 1033, "RoofX-Flow Roof VentSultan", 0},
{76, ITEM_TIPO_VEICULOMOD, 1034, "Exhaust Alien Elegy", 0},
{77, ITEM_TIPO_VEICULOMOD, 1035, "RoofX-Flow Roof VentElegy", 0},
{78, ITEM_TIPO_VEICULOMOD, 1036, "Side Skirt Right Alien Sideskirt Elegy", 0},
{79, ITEM_TIPO_VEICULOMOD, 1037, "Exhaust X-Flow Elegy", 0},
{80, ITEM_TIPO_VEICULOMOD, 1038, "RoofAlien Roof Vent Elegy", 0},
{81, ITEM_TIPO_VEICULOMOD, 1039, "SkirtLeft X-Flow Sideskirt Elegy", 0},
{82, ITEM_TIPO_VEICULOMOD, 1040, "SkirtLeft Alien Sideskirt Elegy", 0},
{83, ITEM_TIPO_VEICULOMOD, 1041, "SkirtRight X-Flow Sideskirt Elegy", 0},
{84, ITEM_TIPO_VEICULOMOD, 1042, "SideSkirt Right Chrome Sideskirt Broadway", 0},
{85, ITEM_TIPO_VEICULOMOD, 1043, "Exhaust Slamin Broadway", 0},
{86, ITEM_TIPO_VEICULOMOD, 1044, "Exhaust Chrome Broadway", 0},
{87, ITEM_TIPO_VEICULOMOD, 1045, "Exhaust X-Flow Flash", 0},
{88, ITEM_TIPO_VEICULOMOD, 1046, "Exhaust Alien Flash", 0},
{89, ITEM_TIPO_VEICULOMOD, 1047, "Side Skirt Right Alien Sideskirt Flash", 0},
{90, ITEM_TIPO_NADA, 0, "ERRO", 0},
{91, ITEM_TIPO_VEICULOMOD, 1048, "Side Skirt Right X-Flow Sideskirt Flash", 0},
{92, ITEM_TIPO_VEICULOMOD, 1049, "Spoiler Alien Flash", 0},
{93, ITEM_TIPO_VEICULOMOD, 1050, "Spoiler X-Flow Flash", 0},
{94, ITEM_TIPO_VEICULOMOD, 1051, "SideSkirt Left Alien Sideskirt Flash", 0},
{95, ITEM_TIPO_VEICULOMOD, 1052, "SideSkirt Left X-Flow Sideskirt Flash", 0},
{96, ITEM_TIPO_VEICULOMOD, 1053, "Roof X-Flow Flash", 0},
{97, ITEM_TIPO_VEICULOMOD, 1054, "Roof Alien Flash", 0},
{98, ITEM_TIPO_VEICULOMOD, 1055, "Roof Alien Stratum", 0},
{99, ITEM_TIPO_VEICULOMOD, 1056, "Sideskirt Right Alien Sideskirt Stratum", 0},
{100, ITEM_TIPO_VEICULOMOD, 1057, "Sideskirt Right X-Flow Sideskirt Stratum", 0},
{101, ITEM_TIPO_VEICULOMOD, 1058, "Spoiler Alien Stratum", 0},
{102, ITEM_TIPO_VEICULOMOD, 1059, "ExhaustX-Flow Stratum", 0},
{103, ITEM_TIPO_VEICULOMOD, 1060, "SpoilerX-Flow Stratum", 0},
{104, ITEM_TIPO_VEICULOMOD, 1061, "RoofX-Flow Stratum", 0},
{105, ITEM_TIPO_VEICULOMOD, 1062, "Sideskirt Left Alien Sideskirt Stratum", 0},
{106, ITEM_TIPO_VEICULOMOD, 1063, "Sideskirt Left X-Flow Sideskirt Stratum", 0},
{107, ITEM_TIPO_VEICULOMOD, 1064, "Exhaust Alien Stratum", 0},
{108, ITEM_TIPO_VEICULOMOD, 1065, "Exhaust Alien Jester", 0},
{109, ITEM_TIPO_VEICULOMOD, 1066, "Exhaust X-Flow Jester", 0},
{110, ITEM_TIPO_VEICULOMOD, 1067, "Roof Alien Jester", 0},
{111, ITEM_TIPO_VEICULOMOD, 1068, "Roof X-Flow Jester", 0},
{112, ITEM_TIPO_VEICULOMOD, 1069, "Sideskirt Right Alien Sideskirt Jester", 0},
{113, ITEM_TIPO_VEICULOMOD, 1070, "Sideskirt Right X-Flow Sideskirt Jester", 0},
{114, ITEM_TIPO_VEICULOMOD, 1071, "Sideskirt Left Alien Sideskirt Jester", 0},
{115, ITEM_TIPO_VEICULOMOD, 1072, "Sideskirt Left X-Flow Sideskirt Jester", 0},
{116, ITEM_TIPO_VEICULOMOD, 1073, "Wheels Shadow Most cars", 0},
{117, ITEM_TIPO_VEICULOMOD, 1074, "Wheels Mega Most cars", 0},
{118, ITEM_TIPO_VEICULOMOD, 1075, "Wheels Rimshine Most cars", 0},
{119, ITEM_TIPO_VEICULOMOD, 1076, "Wheels Wires Most cars", 0},
{120, ITEM_TIPO_VEICULOMOD, 1077, "Wheels Classic Most cars", 0},
{121, ITEM_TIPO_VEICULOMOD, 1078, "Wheels Twist Most cars", 0},
{122, ITEM_TIPO_VEICULOMOD, 1079, "Wheels Cutter Most cars", 0},
{123, ITEM_TIPO_VEICULOMOD, 1080, "Wheels Switch Most cars", 0},
{124, ITEM_TIPO_VEICULOMOD, 1081, "Wheels Grove Most cars", 0},
{125, ITEM_TIPO_VEICULOMOD, 1082, "Wheels Import Most cars", 0},
{126, ITEM_TIPO_VEICULOMOD, 1083, "Wheels Dollar Most cars", 0},
{127, ITEM_TIPO_VEICULOMOD, 1084, "Wheels Trance Most cars", 0},
{128, ITEM_TIPO_VEICULOMOD, 1085, "Wheels Atomic Most cars", 0},
{129, ITEM_TIPO_VEICULOMOD, 1086, "Stereo Stereo Most cars", 0},
{130, ITEM_TIPO_VEICULOMOD, 1087, "Hydraulics Hydraulics Most cars", 0},
{131, ITEM_TIPO_VEICULOMOD, 1088, "Roof Alien Uranus", 0},
{132, ITEM_TIPO_VEICULOMOD, 1089, "ExhaustX-Flow Uranus", 0},
{133, ITEM_TIPO_VEICULOMOD, 1090, "Sideskirt Right Alien Sideskirt Uranus", 0},
{134, ITEM_TIPO_VEICULOMOD, 1091, "RoofX-Flow Uranus", 0},
{135, ITEM_TIPO_VEICULOMOD, 1092, "Exhaust Alien Uranus", 0},
{136, ITEM_TIPO_VEICULOMOD, 1093, "Sideskirt Right X-Flow Sideskirt Uranus", 0},
{137, ITEM_TIPO_VEICULOMOD, 1094, "Sideskirt Left Alien Sideskirt Uranus", 0},
{138, ITEM_TIPO_VEICULOMOD, 1095, "Sideskirt Right X-Flow Sideskirt Uranus", 0},
{139, ITEM_TIPO_VEICULOMOD, 1096, "Wheels Ahab Most cars", 0},
{140, ITEM_TIPO_VEICULOMOD, 1097, "Wheels Virtual Most cars", 0},
{141, ITEM_TIPO_VEICULOMOD, 1098, "Wheels Access Most cars", 0},
{142, ITEM_TIPO_VEICULOMOD, 1099, "Sideskirt Left Chrome Sideskirt Broadway", 0},
{143, ITEM_TIPO_VEICULOMOD, 1100, "Bullbar Chrome Grill Remington", 0},
{144, ITEM_TIPO_VEICULOMOD, 1101, "Sideskirt Left `Chrome Flames` Sideskirt Remington", 0},
{145, ITEM_TIPO_VEICULOMOD, 1102, "Sideskirt Left `Chrome Strip` Sideskirt Savanna", 0},
{146, ITEM_TIPO_VEICULOMOD, 1103, "Roof Covertible Blade", 0},
{147, ITEM_TIPO_VEICULOMOD, 1104, "Exhaust Chrome Blade", 0},
{148, ITEM_TIPO_VEICULOMOD, 1105, "Exhaust Slamin Blade", 0},
{149, ITEM_TIPO_VEICULOMOD, 1106, "Sideskirt Right `Chrome Arches` Remington", 0},
{150, ITEM_TIPO_VEICULOMOD, 1107, "Sideskirt Left `Chrome Strip` Sideskirt Blade", 0},
{151, ITEM_TIPO_VEICULOMOD, 1108, "Sideskirt Right `Chrome Strip` Sideskirt Blade", 0},
{152, ITEM_TIPO_VEICULOMOD, 1109, "Rear Bullbars Chrome Slamvan", 0},
{153, ITEM_TIPO_VEICULOMOD, 1110, "Rear Bullbars Slamin Slamvan", 0},
{154, ITEM_TIPO_VEICULOMOD, 1111, "Front Sign Little Sign Slamvan", 0},
{155, ITEM_TIPO_VEICULOMOD, 1112, "Front Sign Little Sign Slamvan", 0},
{156, ITEM_TIPO_VEICULOMOD, 1113, "Exhaust Chrome Slamvan", 0},
{157, ITEM_TIPO_VEICULOMOD, 1114, "Exhaust Slamin Slamvan", 0},
{158, ITEM_TIPO_VEICULOMOD, 1115, "Front Bullbars Chrome Slamvan", 0},
{159, ITEM_TIPO_VEICULOMOD, 1116, "Front Bullbars Slamin Slamvan", 0},
{160, ITEM_TIPO_VEICULOMOD, 1117, "Front Bumper Chrome Slamvan", 0},
{161, ITEM_TIPO_VEICULOMOD, 1118, "Sideskirt Right `Chrome Trim` Sideskirt Slamvan", 0},
{162, ITEM_TIPO_VEICULOMOD, 1119, "Sideskirt Right `Wheelcovers` Sideskirt Slamvan", 0},
{163, ITEM_TIPO_VEICULOMOD, 1120, "Sideskirt Left `Chrome Trim` Sideskirt Slamvan", 0},
{164, ITEM_TIPO_VEICULOMOD, 1121, "Sideskirt Left `Wheelcovers` Sideskirt Slamvan", 0},
{165, ITEM_TIPO_VEICULOMOD, 1122, "Sideskirt Right `Chrome Flames` SideskirtRemington", 0},
{166, ITEM_TIPO_VEICULOMOD, 1123, "Bullbars Bullbar Chrome Bars Remington", 0},
{167, ITEM_TIPO_VEICULOMOD, 1124, "Sideskirt Left `Chrome Arches` Sideskirt Remington", 0},
{168, ITEM_TIPO_VEICULOMOD, 1125, "Bullbars Bullbar Chrome Lights Remington", 0},
{169, ITEM_TIPO_VEICULOMOD, 1126, "Exhaust Chrome Exhaust Remington", 0},
{170, ITEM_TIPO_VEICULOMOD, 1127, "Exhaust Slamin Exhaust Remington", 0},
{171, ITEM_TIPO_VEICULOMOD, 1128, "RoofVinyl HardtopBlade", 0},
{172, ITEM_TIPO_VEICULOMOD, 1129, "Exhaust Chrome Savanna", 0},
{173, ITEM_TIPO_VEICULOMOD, 1130, "Roof Hardtop Savanna", 0},
{174, ITEM_TIPO_VEICULOMOD, 1131, "Roof Softtop Savanna", 0},
{175, ITEM_TIPO_VEICULOMOD, 1132, "Exhaust Slamin Savanna", 0},
{176, ITEM_TIPO_VEICULOMOD, 1133, "Sideskirt Right `Chrome Strip` Sideskirt Savanna", 0},
{177, ITEM_TIPO_VEICULOMOD, 1134, "Side Skirt Right `Chrome Strip` Sideskirt Tornado", 0},
{178, ITEM_TIPO_VEICULOMOD, 1135, "Exhaust Slamin Tornado", 0},
{179, ITEM_TIPO_VEICULOMOD, 1136, "Exhaust Chrome Tornado", 0},
{180, ITEM_TIPO_VEICULOMOD, 1137, "SideskirtLeft `Chrome Strip` SideskirtTornado", 0},
{181, ITEM_TIPO_VEICULOMOD, 1138, "Spoiler Alien Sultan", 0},
{182, ITEM_TIPO_VEICULOMOD, 1139, "Spoiler X-Flow Sultan", 0},
{183, ITEM_TIPO_VEICULOMOD, 1140, "Bumper X-Flow Sultan", 0},
{184, ITEM_TIPO_VEICULOMOD, 1141, "Bumper Alien Sultan", 0},
{185, ITEM_TIPO_VEICULOMOD, 1142, "Vents Left Oval Vents Certain Transfender Cars", 0},
{186, ITEM_TIPO_VEICULOMOD, 1143, "Vents Right Oval Vents Certain Transfender Cars", 0},
{187, ITEM_TIPO_VEICULOMOD, 1144, "Vents Left Square Vents Certain Transfender Cars", 0},
{188, ITEM_TIPO_VEICULOMOD, 1145, "Vents Right Square Vents Certain Transfender Cars", 0},
{189, ITEM_TIPO_VEICULOMOD, 1146, "Spoiler X-Flow Elegy", 0},
{190, ITEM_TIPO_VEICULOMOD, 1147, "Spoiler Alien Elegy", 0},
{191, ITEM_TIPO_VEICULOMOD, 1148, "Rear Bumper X-Flow Elegy", 0},
{192, ITEM_TIPO_VEICULOMOD, 1149, "Rear Bumper Alien Elegy", 0},
{193, ITEM_TIPO_VEICULOMOD, 1150, "Rear Bumper Alien Flash", 0},
{194, ITEM_TIPO_VEICULOMOD, 1151, "Rear Bumper X-Flow Flash", 0},
{195, ITEM_TIPO_VEICULOMOD, 1152, "Front Bumper X-Flow Flash", 0},
{196, ITEM_TIPO_VEICULOMOD, 1153, "Front Bumper Alien Flash", 0},
{197, ITEM_TIPO_VEICULOMOD, 1154, "Rear Bumper Alien Stratum", 0},
{198, ITEM_TIPO_VEICULOMOD, 1155, "Front Bumper Alien Stratum", 0},
{199, ITEM_TIPO_VEICULOMOD, 1156, "Rear Bumper X-Flow Stratum", 0},
{200, ITEM_TIPO_VEICULOMOD, 1157, "Front Bumper X-Flow Stratum", 0},
{201, ITEM_TIPO_VEICULOMOD, 1158, "Spoiler X-Flow Jester", 0},
{202, ITEM_TIPO_VEICULOMOD, 1159, "Rear Bumper Alien Jester", 0},
{203, ITEM_TIPO_VEICULOMOD, 1160, "Front Bumper Alien Jester", 0},
{204, ITEM_TIPO_VEICULOMOD, 1161, "Rear Bumper X-Flow Jester", 0},
{205, ITEM_TIPO_VEICULOMOD, 1162, "Spoiler Alien Jester", 0},
{206, ITEM_TIPO_VEICULOMOD, 1163, "Spoiler X-Flow Uranus", 0},
{207, ITEM_TIPO_VEICULOMOD, 1164, "Spoiler Alien Uranus", 0},
{208, ITEM_TIPO_VEICULOMOD, 1165, "Front Bumper X-Flow Uranus", 0},
{209, ITEM_TIPO_VEICULOMOD, 1166, "Front Bumper Alien Uranus", 0},
{210, ITEM_TIPO_VEICULOMOD, 1167, "Rear Bumper X-Flow Uranus", 0},
{211, ITEM_TIPO_VEICULOMOD, 1168, "Rear Bumper Alien Uranus", 0},
{212, ITEM_TIPO_VEICULOMOD, 1169, "Front Bumper Alien Sultan", 0},
{213, ITEM_TIPO_VEICULOMOD, 1170, "Front Bumper X-Flow Sultan", 0},
{214, ITEM_TIPO_VEICULOMOD, 1171, "Front Bumper Alien Elegy", 0},
{215, ITEM_TIPO_VEICULOMOD, 1172, "Front Bumper X-Flow Elegy", 0},
{216, ITEM_TIPO_VEICULOMOD, 1173, "Front Bumper X-Flow Jester", 0},
{217, ITEM_TIPO_VEICULOMOD, 1174, "Front Bumper Chrome Broadway", 0},
{218, ITEM_TIPO_VEICULOMOD, 1175, "Front Bumper Slamin Broadway", 0},
{219, ITEM_TIPO_VEICULOMOD, 1176, "Rear Bumper Chrome Broadway", 0},
{220, ITEM_TIPO_VEICULOMOD, 1177, "Rear Bumper Slamin Broadway", 0},
{221, ITEM_TIPO_VEICULOMOD, 1178, "Rear Bumper Slamin Remington", 0},
{222, ITEM_TIPO_VEICULOMOD, 1179, "Front Bumper Chrome Remington", 0},
{223, ITEM_TIPO_VEICULOMOD, 1180, "Rear Bumper Chrome Remington", 0},
{224, ITEM_TIPO_VEICULOMOD, 1181, "Front Bumper Slamin Blade", 0},
{225, ITEM_TIPO_VEICULOMOD, 1182, "Front Bumper Chrome Blade", 0},
{226, ITEM_TIPO_VEICULOMOD, 1183, "Rear Bumper Slamin Blade", 0},
{227, ITEM_TIPO_VEICULOMOD, 1184, "Rear Bumper Chrome Blade", 0},
{228, ITEM_TIPO_VEICULOMOD, 1185, "Front Bumper Slamin Remington", 0},
{229, ITEM_TIPO_VEICULOMOD, 1186, "Rear Bumper Slamin Savanna", 0},
{230, ITEM_TIPO_VEICULOMOD, 1187, "Rear Bumper Chrome Savanna", 0},
{231, ITEM_TIPO_VEICULOMOD, 1188, "Front Bumper Slamin Savanna", 0},
{232, ITEM_TIPO_VEICULOMOD, 1189, "Front Bumper Chrome Savanna", 0},
{233, ITEM_TIPO_VEICULOMOD, 1190, "Front Bumper Slamin Tornado", 0},
{234, ITEM_TIPO_VEICULOMOD, 1191, "Front Bumper Chrome Tornado", 0},
{235, ITEM_TIPO_VEICULOMOD, 1192, "Rear Bumper Chrome Tornado", 0},
{236, ITEM_TIPO_VEICULOMOD, 1193, "Rear Bumper Slamin Tornado", 0},
{237, ITEM_TIPO_DROGA, 1578, "Marijuana", 0},
{238, ITEM_TIPO_DROGA, 1575, "Cocaina", 0},
{239, ITEM_TIPO_DROGA, 1580, "Crack", 0},
{240, ITEM_TIPO_DROGA, 1579, "Ecstasy", 0},
{241, ITEM_TIPO_MATERIAL, 1271, "Material", 0},
{242, ITEM_TIPO_MATERIAL, 1241, "Remedio", 0}
};
command(ajudainv, playerid, params []) {
SendClientMessage(playerid, -1, "ignorem a ma organizacao do comando, й apenas para ajudar no beta.. Axl agradece!");
SendClientMessage(playerid, -1, "os itens vao de 0 a 242, nao crie um item com o id 0, pois por enquanto й o id nulo");
SendClientMessage(playerid, -1, "Nгo й possivel selecionar na aba outros, use /comprarinv para pegar um inventario");
SendClientMessage(playerid, -1, "para abrir o inventario aperte a letra Y, para pegar um item do chao se abaixei © e use left alt");
SendClientMessage(playerid, -1, "outros comandos /guardar /comprarinv /criaritem [id do jogador onde vai spawnar] [itemid]");
return true;
}
command(guardar, playerid, params []) {
new string[256], stringCmd[32], armaBalas, armaIndex;
if(sscanf(params, "s", stringCmd)) {
SendClientMessage(playerid, -1, " {FFFFFF}[{F44336}!]{FFFFFF} Lista de itens: {F44336}colete{FFFFFF}, {F44336}arma{FFFFFF} e {F44336}alimento{FFFFFF}.");
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}:");
SendClientMessage(playerid, -1, " {FFFFFF}[{F44336}exemplo]{FFFFFF} /guardar {F44336}arma {BDBDBD}(ou seja ira guardar sua arma atual, que voce possue em sua mao.)");
return true;
}
if(!strcmp(stringCmd, "arma", true)) {
if(GetPlayerWeapon(playerid) == 0) return true;
armaIndex = GetPlayerWeapon(playerid);
armaBalas = GetPlayerAmmo(playerid);
for(new i = 0; i < 15; i++) {
if(pInventario[playerid][i][inv_item_ativo] == true) continue;
pInventario[playerid][i][inv_item_ativo] = true;
for(new armaId = 0; armaId < MAX_SERVER_ITENS; armaId++) {
if(armaIndex == serverItens[armaId][sItem_arma_model]) {
pInventario[playerid][i][inv_item_index] = armaId;
break;
}
}
pInventario[playerid][i][inv_armaIndex] = armaIndex;
pInventario[playerid][i][inv_armaBalas] = armaBalas;
RemovePlayerWeapon(playerid, armaIndex);
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);
SendClientMessage(playerid, -1, string);
break;
}
return true;
}
else if(!strcmp(stringCmd, "colete", true)) {
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour < 1) return SendClientMessage(playerid, -1, "Voce nao possue um colete.");
for(new i = 0; i < 15; i++) {
if(pInventario[playerid][i][inv_item_ativo] == true) continue;
pInventario[playerid][i][inv_item_ativo] = true;
pInventario[playerid][i][inv_item_index] = 40;
pInventario[playerid][i][inv_coleteStatus] = armour;
SetPlayerArmour(playerid, 0);
break;
}
return true;
}
else if(!strcmp(stringCmd, "alimento", true)) return SendClientMessage(playerid, -1, "[erro 404] ++info.Desculpe mas este sistema ainda nao foi implantado.");
return true;
}
command(comprarinv, playerid, params []) {
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");
return true;
}
command(criaritem, playerid, params []) {
new indexPlayeridCommand, indexCommand;
if(sscanf(params, "dd", indexPlayeridCommand, indexCommand)) {
return true;
}
GivePlayerPositionItem(indexPlayeridCommand, indexCommand);
return true;
}
invOnFilterScriptInit() {
for(new i = 0; i < 350; i++) {
if(serverItens[i][sItem_modelo] > 0) printf("[ %d ] >> %s >> (%d)", i, serverItens[i][sItem_nome], serverItens[i][sItem_modelo]);
else printf("[ %d ] < empty slot > ]", i);
}
return true;
}
invOnPlayerConnect(playerid) {
inventario_item_nome[playerid] = CreatePlayerTextDraw(playerid, 129.765731, 352.166534, "nome do item");
PlayerTextDrawLetterSize(playerid, inventario_item_nome[playerid], 0.222430, 0.829998);
PlayerTextDrawTextSize(playerid, inventario_item_nome[playerid], 477.255004, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_nome[playerid], 1);
PlayerTextDrawColor(playerid, inventario_item_nome[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_item_nome[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_nome[playerid], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_nome[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_nome[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_nome[playerid], 255);
PlayerTextDrawFont(playerid, inventario_item_nome[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_item_nome[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_nome[playerid], 0);
inventario_fundo[playerid] = CreatePlayerTextDraw(playerid, 129.765762, 87.916656, "box");
PlayerTextDrawLetterSize(playerid, inventario_fundo[playerid], 0.000000, 28.693992);
PlayerTextDrawTextSize(playerid, inventario_fundo[playerid], 477.437713, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_fundo[playerid], 1);
PlayerTextDrawColor(playerid, inventario_fundo[playerid], -16777094);
PlayerTextDrawUseBox(playerid, inventario_fundo[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_fundo[playerid], 0x00000047);
PlayerTextDrawSetShadow(playerid, inventario_fundo[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_fundo[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_fundo[playerid], 0x00000047);
PlayerTextDrawFont(playerid, inventario_fundo[playerid], 1);
PlayerTextDrawSetProportional(playerid, inventario_fundo[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_fundo[playerid], 0);
inventario_aba[playerid][0] = CreatePlayerTextDraw(playerid, 129.765762, 87.916656, "box");
PlayerTextDrawLetterSize(playerid, inventario_aba[playerid][0], 0.000000, 1.941436);
PlayerTextDrawTextSize(playerid, inventario_aba[playerid][0], 477.438110, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_aba[playerid][0], 1);
PlayerTextDrawColor(playerid, inventario_aba[playerid][0], -1);
PlayerTextDrawUseBox(playerid, inventario_aba[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, inventario_aba[playerid][0], -6815489);
PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, inventario_aba[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_aba[playerid][0], 255);
PlayerTextDrawFont(playerid, inventario_aba[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, inventario_aba[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][0], 0);
inventario_aba[playerid][1] = CreatePlayerTextDraw(playerid, 131.171279, 89.083351, "Inventario");
PlayerTextDrawLetterSize(playerid, inventario_aba[playerid][1], 0.250072, 1.617500);
PlayerTextDrawAlignment(playerid, inventario_aba[playerid][1], 1);
PlayerTextDrawColor(playerid, inventario_aba[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, inventario_aba[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_aba[playerid][1], 255);
PlayerTextDrawFont(playerid, inventario_aba[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, inventario_aba[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, inventario_aba[playerid][1], 0);
backgroundinv[playerid][0] = CreatePlayerTextDraw(playerid, 132.500000, 112.999984, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][0], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][0], 196.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][0], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][0], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][0], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][0], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][0], 0);
backgroundinv[playerid][1] = CreatePlayerTextDraw(playerid, 202.000000, 113.000007, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][1], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][1], 265.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][1], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][1], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][1], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][1], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][1], 0);
backgroundinv[playerid][2] = CreatePlayerTextDraw(playerid, 272.000000, 113.000015, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][2], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][2], 335.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][2], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][2], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][2], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][2], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][2], 0);
backgroundinv[playerid][3] = CreatePlayerTextDraw(playerid, 342.000000, 112.999984, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][3], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][3], 405.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][3], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][3], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][3], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][3], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][3], 0);
backgroundinv[playerid][4] = CreatePlayerTextDraw(playerid, 411.500000, 112.999984, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][4], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][4], 475.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][4], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][4], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][4], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][4], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][4], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][4], 0);
backgroundinv[playerid][5] = CreatePlayerTextDraw(playerid, 132.500000, 191.750030, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][5], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][5], 196.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][5], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][5], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][5], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][5], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][5], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][5], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][5], 0);
backgroundinv[playerid][6] = CreatePlayerTextDraw(playerid, 202.000000, 191.750045, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][6], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][6], 265.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][6], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][6], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][6], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][6], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][6], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][6], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][6], 0);
backgroundinv[playerid][7] = CreatePlayerTextDraw(playerid, 272.000000, 191.750045, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][7], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][7], 335.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][7], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][7], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][7], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][7], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][7], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][7], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][7], 0);
backgroundinv[playerid][8] = CreatePlayerTextDraw(playerid, 341.500000, 191.750045, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][8], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][8], 405.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][8], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][8], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][8], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][8], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][8], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][8], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][8], 0);
backgroundinv[playerid][9] = CreatePlayerTextDraw(playerid, 411.500000, 191.750076, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][9], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][9], 475.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][9], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][9], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][9], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][9], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][9], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][9], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][9], 0);
backgroundinv[playerid][10] = CreatePlayerTextDraw(playerid, 132.500000, 270.499969, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][10], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][10], 196.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][10], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][10], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][10], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][10], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][10], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][10], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][10], 0);
backgroundinv[playerid][11] = CreatePlayerTextDraw(playerid, 202.000000, 270.499938, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][11], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][11], 265.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][11], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][11], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][11], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][11], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][11], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][11], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][11], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][11], 0);
backgroundinv[playerid][12] = CreatePlayerTextDraw(playerid, 272.000000, 270.499908, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][12], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][12], 335.500000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][12], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][12], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][12], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][12], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][12], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][12], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][12], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][12], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][12], 0);
backgroundinv[playerid][13] = CreatePlayerTextDraw(playerid, 341.500000, 270.499908, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][13], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][13], 405.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][13], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][13], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][13], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][13], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][13], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][13], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][13], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][13], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][13], 0);
backgroundinv[playerid][14] = CreatePlayerTextDraw(playerid, 411.500000, 270.499877, "box");
PlayerTextDrawLetterSize(playerid, backgroundinv[playerid][14], 0.000000, 7.999998);
PlayerTextDrawTextSize(playerid, backgroundinv[playerid][14], 475.000000, 0.000000);
PlayerTextDrawAlignment(playerid, backgroundinv[playerid][14], 1);
PlayerTextDrawColor(playerid, backgroundinv[playerid][14], -1);
PlayerTextDrawUseBox(playerid, backgroundinv[playerid][14], 1);
PlayerTextDrawBoxColor(playerid, backgroundinv[playerid][14], -1633771777);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][14], 0);
PlayerTextDrawSetOutline(playerid, backgroundinv[playerid][14], 0);
PlayerTextDrawBackgroundColor(playerid, backgroundinv[playerid][14], 255);
PlayerTextDrawFont(playerid, backgroundinv[playerid][14], 1);
PlayerTextDrawSetProportional(playerid, backgroundinv[playerid][14], 1);
PlayerTextDrawSetShadow(playerid, backgroundinv[playerid][14], 0);
inventario_index[playerid][0] = CreatePlayerTextDraw(playerid, 130.065917, 110.666687, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][0], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][0], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][0], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][0], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][0], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][0], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][0], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][0], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][0], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][1] = CreatePlayerTextDraw(playerid, 199.875564, 110.666687, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][1], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][1], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][1], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][1], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][1], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][1], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][2] = CreatePlayerTextDraw(playerid, 269.685333, 110.666679, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][2], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][2], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][2], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][2], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][2], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][2], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][2], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][2], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][3] = CreatePlayerTextDraw(playerid, 339.495361, 110.666687, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][3], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][3], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][3], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][3], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][3], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][3], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][3], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][4] = CreatePlayerTextDraw(playerid, 409.305206, 110.666694, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][4], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][4], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][4], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][4], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][4], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][4], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][4], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][5] = CreatePlayerTextDraw(playerid, 130.066528, 189.416717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][5], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][5], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][5], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][5], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][5], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][5], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][5], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][5], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][5], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][6] = CreatePlayerTextDraw(playerid, 199.876174, 189.416717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][6], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][6], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][6], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][6], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][6], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][6], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][6], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][6], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][6], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][6], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][6], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][7] = CreatePlayerTextDraw(playerid, 269.685821, 189.416717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][7], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][7], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][7], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][7], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][7], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][7], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][7], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][7], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][7], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][8] = CreatePlayerTextDraw(playerid, 339.495788, 189.416717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][8], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][8], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][8], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][8], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][8], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][8], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][8], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][8], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][8], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][9] = CreatePlayerTextDraw(playerid, 409.305450, 189.416732, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][9], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][9], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][9], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][9], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][9], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][9], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][9], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][9], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][9], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][9], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][10] = CreatePlayerTextDraw(playerid, 130.066772, 268.166717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][10], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][10], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][10], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][10], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][10], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][10], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][10], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][10], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][10], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][10], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][10], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][11] = CreatePlayerTextDraw(playerid, 199.876419, 268.166687, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][11], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][11], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][11], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][11], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][11], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][11], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][11], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][11], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][11], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][11], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][11], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][11], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][12] = CreatePlayerTextDraw(playerid, 269.686096, 268.166656, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][12], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][12], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][12], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][12], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][12], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][12], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][12], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][12], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][12], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][12], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][12], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][12], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][13] = CreatePlayerTextDraw(playerid, 339.495819, 268.166717, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][13], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][13], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][13], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][13], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][13], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][13], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][13], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][13], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][13], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][13], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][13], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][13], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][13], 0.000000, -30, 0.000000, 2.2);
inventario_index[playerid][14] = CreatePlayerTextDraw(playerid, 409.305450, 268.166778, "");
PlayerTextDrawLetterSize(playerid, inventario_index[playerid][14], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_index[playerid][14], 67.979507, 76.583335);
PlayerTextDrawAlignment(playerid, inventario_index[playerid][14], 1);
PlayerTextDrawColor(playerid, inventario_index[playerid][14], -1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][14], 0);
PlayerTextDrawSetOutline(playerid, inventario_index[playerid][14], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][14], -1633771777);
PlayerTextDrawFont(playerid, inventario_index[playerid][14], 5);
PlayerTextDrawSetProportional(playerid, inventario_index[playerid][14], 1);
PlayerTextDrawSetShadow(playerid, inventario_index[playerid][14], 0);
PlayerTextDrawSetSelectable(playerid, inventario_index[playerid][14], true);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][14], 18631);
PlayerTextDrawSetPreviewRot(playerid, inventario_index[playerid][14], 0.000000, -30, 0.000000, 2.2);
inventario_fechar[playerid] = CreatePlayerTextDraw(playerid, 482.562377, 322.416503, "Fechar");
PlayerTextDrawLetterSize(playerid, inventario_fechar[playerid], 0.236954, 1.681666);
PlayerTextDrawTextSize(playerid, inventario_fechar[playerid], 521.282897, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_fechar[playerid], 1);
PlayerTextDrawColor(playerid, inventario_fechar[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_fechar[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_fechar[playerid], -196921601);
PlayerTextDrawSetShadow(playerid, inventario_fechar[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_fechar[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_fechar[playerid], 255);
PlayerTextDrawFont(playerid, inventario_fechar[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_fechar[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_fechar[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_fechar[playerid], true);
inventario_usar[playerid] = CreatePlayerTextDraw(playerid, 482.562469, 301.416625, "usar");
PlayerTextDrawLetterSize(playerid, inventario_usar[playerid], 0.236954, 1.681666);
PlayerTextDrawTextSize(playerid, inventario_usar[playerid], 521.282653, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_usar[playerid], 1);
PlayerTextDrawColor(playerid, inventario_usar[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_usar[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_usar[playerid], -6815489);
PlayerTextDrawSetShadow(playerid, inventario_usar[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_usar[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_usar[playerid], 255);
PlayerTextDrawFont(playerid, inventario_usar[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_usar[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_usar[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_usar[playerid], true);
inventario_drop[playerid] = CreatePlayerTextDraw(playerid, 482.562561, 280.416503, "drop");
PlayerTextDrawLetterSize(playerid, inventario_drop[playerid], 0.236954, 1.681666);
PlayerTextDrawTextSize(playerid, inventario_drop[playerid], 521.282714, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_drop[playerid], 1);
PlayerTextDrawColor(playerid, inventario_drop[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_drop[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_drop[playerid], -1633771777);
PlayerTextDrawSetShadow(playerid, inventario_drop[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_drop[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_drop[playerid], 255);
PlayerTextDrawFont(playerid, inventario_drop[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_drop[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_drop[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_drop[playerid], true);
///
inventario_opcoes[playerid][0] = CreatePlayerTextDraw(playerid, 213.630889, 162.000015, "box");
PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][0], 0.000000, 10.702780);
PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][0], 414.186737, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][0], 1);
PlayerTextDrawColor(playerid, inventario_opcoes[playerid][0], -1);
PlayerTextDrawUseBox(playerid, inventario_opcoes[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, inventario_opcoes[playerid][0], -1633771777);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][0], 255);
PlayerTextDrawFont(playerid, inventario_opcoes[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][0], 0);
inventario_opcoes[playerid][1] = CreatePlayerTextDraw(playerid, 213.931106, 180.083328, "");
PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][1], 69.853591, 77.749946);
PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][1], 1);
PlayerTextDrawColor(playerid, inventario_opcoes[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][1], -1633771777);
PlayerTextDrawFont(playerid, inventario_opcoes[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][1], 0);
PlayerTextDrawSetPreviewModel(playerid, inventario_opcoes[playerid][1], 336);
PlayerTextDrawSetPreviewRot(playerid, inventario_opcoes[playerid][1], 0.000000, 50.000000, 0.000000, 2.000000);
inventario_opcoes[playerid][2] = CreatePlayerTextDraw(playerid, 213.631027, 162.000045, "box");
PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][2], 0.000000, 1.566619);
PlayerTextDrawTextSize(playerid, inventario_opcoes[playerid][2], 414.187805, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][2], 1);
PlayerTextDrawColor(playerid, inventario_opcoes[playerid][2], -1);
PlayerTextDrawUseBox(playerid, inventario_opcoes[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, inventario_opcoes[playerid][2], -6815489);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][2], 255);
PlayerTextDrawFont(playerid, inventario_opcoes[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][2], 0);
inventario_opcoes_fechar[playerid] = CreatePlayerTextDraw(playerid, 362.621032, 238.999969, "fechar");
PlayerTextDrawLetterSize(playerid, inventario_opcoes_fechar[playerid], 0.208373, 1.856665);
PlayerTextDrawTextSize(playerid, inventario_opcoes_fechar[playerid], 412.599639, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_opcoes_fechar[playerid], 1);
PlayerTextDrawColor(playerid, inventario_opcoes_fechar[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_opcoes_fechar[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_opcoes_fechar[playerid], -196921601);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_fechar[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes_fechar[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_fechar[playerid], 255);
PlayerTextDrawFont(playerid, inventario_opcoes_fechar[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_opcoes_fechar[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_fechar[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_opcoes_fechar[playerid], true);
inventario_opcoes_equipar[playerid] = CreatePlayerTextDraw(playerid, 362.621032, 215.083358, "EQUIPAR");
PlayerTextDrawLetterSize(playerid, inventario_opcoes_equipar[playerid], 0.208373, 1.856665);
PlayerTextDrawTextSize(playerid, inventario_opcoes_equipar[playerid], 412.599639, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_opcoes_equipar[playerid], 1);
PlayerTextDrawColor(playerid, inventario_opcoes_equipar[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_opcoes_equipar[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_opcoes_equipar[playerid], 1286557951);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_equipar[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes_equipar[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_equipar[playerid], 255);
PlayerTextDrawFont(playerid, inventario_opcoes_equipar[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_opcoes_equipar[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_equipar[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_opcoes_equipar[playerid], true);
inventario_opcoes_guardar[playerid] = CreatePlayerTextDraw(playerid, 362.621124, 191.166671, "guardar");
PlayerTextDrawLetterSize(playerid, inventario_opcoes_guardar[playerid], 0.208373, 1.856665);
PlayerTextDrawTextSize(playerid, inventario_opcoes_guardar[playerid], 412.599731, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_opcoes_guardar[playerid], 1);
PlayerTextDrawColor(playerid, inventario_opcoes_guardar[playerid], -1);
PlayerTextDrawUseBox(playerid, inventario_opcoes_guardar[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_opcoes_guardar[playerid], 563540991);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_guardar[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes_guardar[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes_guardar[playerid], 255);
PlayerTextDrawFont(playerid, inventario_opcoes_guardar[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_opcoes_guardar[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes_guardar[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_opcoes_guardar[playerid], true);
inventario_opcoes[playerid][3] = CreatePlayerTextDraw(playerid, 215.973541, 160.833312, "Inventario");
PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][3], 0.228989, 1.594166);
PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][3], 1);
PlayerTextDrawColor(playerid, inventario_opcoes[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][3], 255);
PlayerTextDrawFont(playerid, inventario_opcoes[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][3], 0);
inventario_opcoes[playerid][4] = CreatePlayerTextDraw(playerid, 269.385192, 204.583374, "O que deseja fazer~n~com este item?");
PlayerTextDrawLetterSize(playerid, inventario_opcoes[playerid][4], 0.271156, 1.745833);
PlayerTextDrawAlignment(playerid, inventario_opcoes[playerid][4], 1);
PlayerTextDrawColor(playerid, inventario_opcoes[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, inventario_opcoes[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_opcoes[playerid][4], 255);
PlayerTextDrawFont(playerid, inventario_opcoes[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, inventario_opcoes[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, inventario_opcoes[playerid][4], 0);
inventario_item_info[playerid][0] = CreatePlayerTextDraw(playerid, 131.639831, 174.249984, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][0], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][0], 197.079055, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][0], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][0], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][0], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][0], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][0], 0);
inventario_item_info[playerid][1] = CreatePlayerTextDraw(playerid, 200.980957, 174.249938, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][1], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][1], 266.420104, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][1], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][1], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][1], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][1], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][1], 0);
inventario_item_info[playerid][2] = CreatePlayerTextDraw(playerid, 270.322143, 174.249954, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][2], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][2], 335.761413, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][2], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][2], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][2], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][2], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][2], 0);
inventario_item_info[playerid][3] = CreatePlayerTextDraw(playerid, 340.600555, 174.249969, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][3], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][3], 406.039825, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][3], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][3], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][3], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][3], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][3], 0);
inventario_item_info[playerid][4] = CreatePlayerTextDraw(playerid, 409.941955, 174.250000, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][4], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][4], 475.381225, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][4], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][4], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][4], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][4], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][4], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][4], 0);
inventario_item_info[playerid][5] = CreatePlayerTextDraw(playerid, 131.640304, 253.583267, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][5], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][5], 197.079513, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][5], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][5], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][5], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][5], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][5], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][5], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][5], 0);
inventario_item_info[playerid][6] = CreatePlayerTextDraw(playerid, 200.512908, 253.583267, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][6], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][6], 265.952178, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][6], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][6], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][6], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][6], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][6], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][6], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][6], 0);
inventario_item_info[playerid][7] = CreatePlayerTextDraw(playerid, 270.322631, 253.583236, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][7], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][7], 335.762023, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][7], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][7], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][7], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][7], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][7], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][7], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][7], 0);
inventario_item_info[playerid][8] = CreatePlayerTextDraw(playerid, 340.600921, 253.583236, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][8], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][8], 406.040313, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][8], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][8], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][8], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][8], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][8], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][8], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][8], 0);
inventario_item_info[playerid][9] = CreatePlayerTextDraw(playerid, 410.879150, 253.583236, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][9], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][9], 476.318542, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][9], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][9], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][9], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][9], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][9], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][9], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][9], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][9], 0);
inventario_item_info[playerid][10] = CreatePlayerTextDraw(playerid, 131.640457, 332.333160, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][10], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][10], 197.079788, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][10], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][10], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][10], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][10], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][10], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][10], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][10], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][10], 0);
inventario_item_info[playerid][11] = CreatePlayerTextDraw(playerid, 200.981582, 332.333190, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][11], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][11], 266.420959, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][11], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][11], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][11], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][11], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][11], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][11], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][11], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][11], 0);
inventario_item_info[playerid][12] = CreatePlayerTextDraw(playerid, 271.259918, 332.333160, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][12], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][12], 336.699432, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][12], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][12], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][12], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][12], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][12], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][12], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][12], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][12], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][12], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][12], 0);
inventario_item_info[playerid][13] = CreatePlayerTextDraw(playerid, 340.132720, 332.333099, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][13], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][13], 405.572235, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][13], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][13], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][13], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][13], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][13], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][13], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][13], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][13], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][13], 0);
inventario_item_info[playerid][14] = CreatePlayerTextDraw(playerid, 410.879364, 332.333190, "municao 342");
PlayerTextDrawLetterSize(playerid, inventario_item_info[playerid][14], 0.199941, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_item_info[playerid][14], 476.318878, 0.000000);
PlayerTextDrawAlignment(playerid, inventario_item_info[playerid][14], 1);
PlayerTextDrawColor(playerid, inventario_item_info[playerid][14], -1);
PlayerTextDrawUseBox(playerid, inventario_item_info[playerid][14], 1);
PlayerTextDrawBoxColor(playerid, inventario_item_info[playerid][14], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][14], 0);
PlayerTextDrawSetOutline(playerid, inventario_item_info[playerid][14], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_item_info[playerid][14], 255);
PlayerTextDrawFont(playerid, inventario_item_info[playerid][14], 1);
PlayerTextDrawSetProportional(playerid, inventario_item_info[playerid][14], 1);
PlayerTextDrawSetShadow(playerid, inventario_item_info[playerid][14], 0);
inventario_tamanho_show[playerid] = CreatePlayerTextDraw(playerid, 130.234085, 94.916633, "TAMANHO > MEDIO");
PlayerTextDrawLetterSize(playerid, inventario_tamanho_show[playerid], 0.123571, 0.864997);
PlayerTextDrawAlignment(playerid, inventario_tamanho_show[playerid], 1);
PlayerTextDrawColor(playerid, inventario_tamanho_show[playerid], 255);
PlayerTextDrawSetShadow(playerid, inventario_tamanho_show[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_tamanho_show[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_tamanho_show[playerid], 255);
PlayerTextDrawFont(playerid, inventario_tamanho_show[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_tamanho_show[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_tamanho_show[playerid], 0);
inventario_aba_equipam[playerid] = CreatePlayerTextDraw(playerid, 419.311981, 87.916656, "Equipamentos");
PlayerTextDrawLetterSize(playerid, inventario_aba_equipam[playerid], 0.191507, 1.214999);
PlayerTextDrawTextSize(playerid, inventario_aba_equipam[playerid], 477.423614, 10.000000);
PlayerTextDrawAlignment(playerid, inventario_aba_equipam[playerid], 1);
PlayerTextDrawColor(playerid, inventario_aba_equipam[playerid], -6815489);
PlayerTextDrawUseBox(playerid, inventario_aba_equipam[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_aba_equipam[playerid], -1);
PlayerTextDrawSetShadow(playerid, inventario_aba_equipam[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_aba_equipam[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_aba_equipam[playerid], 255);
PlayerTextDrawFont(playerid, inventario_aba_equipam[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_aba_equipam[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_aba_equipam[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_aba_equipam[playerid], true);
inventario_aba_outros[playerid] = CreatePlayerTextDraw(playerid, 386.515625, 87.916679, "OUTROS");
PlayerTextDrawLetterSize(playerid, inventario_aba_outros[playerid], 0.191507, 1.214999);
PlayerTextDrawTextSize(playerid, inventario_aba_outros[playerid], 10.000000, 56.222793);
PlayerTextDrawAlignment(playerid, inventario_aba_outros[playerid], 2);
PlayerTextDrawColor(playerid, inventario_aba_outros[playerid], -6815489);
PlayerTextDrawUseBox(playerid, inventario_aba_outros[playerid], 1);
PlayerTextDrawBoxColor(playerid, inventario_aba_outros[playerid], -1);
PlayerTextDrawSetShadow(playerid, inventario_aba_outros[playerid], 0);
PlayerTextDrawSetOutline(playerid, inventario_aba_outros[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_aba_outros[playerid], 255);
PlayerTextDrawFont(playerid, inventario_aba_outros[playerid], 2);
PlayerTextDrawSetProportional(playerid, inventario_aba_outros[playerid], 1);
PlayerTextDrawSetShadow(playerid, inventario_aba_outros[playerid], 0);
PlayerTextDrawSetSelectable(playerid, inventario_aba_outros[playerid], true);
inventario_outros_info[playerid][0] = CreatePlayerTextDraw(playerid, 163.968643, 112.999839, "COCAINA");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][0], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][0], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][0], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][0], -6815489);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][0], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][0], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][0], 0);
inventario_outros_info[playerid][1] = CreatePlayerTextDraw(playerid, 233.778289, 112.999847, "marijuana");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][1], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][1], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][1], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][1], -6815489);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][1], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][1], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][1], 0);
inventario_outros_info[playerid][2] = CreatePlayerTextDraw(playerid, 303.588287, 112.999847, "CRACK");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][2], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][2], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][2], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][2], -6815489);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][2], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][2], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][2], 0);
inventario_outros_info[playerid][3] = CreatePlayerTextDraw(playerid, 373.397827, 112.999847, "Ecstasy");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][3], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][3], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][3], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][3], -6815489);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][3], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][3], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][3], 0);
inventario_outros_info[playerid][4] = CreatePlayerTextDraw(playerid, 443.207580, 112.999839, "MATERIAIS");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][4], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][4], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][4], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][4], -65281);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][4], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][4], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][4], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][4], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][4], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][4], 0);
inventario_outros_info[playerid][5] = CreatePlayerTextDraw(playerid, 163.968780, 191.749877, "REMEDIOS");
PlayerTextDrawLetterSize(playerid, inventario_outros_info[playerid][5], 0.199940, 1.174165);
PlayerTextDrawTextSize(playerid, inventario_outros_info[playerid][5], 0.000000, 64.020156);
PlayerTextDrawAlignment(playerid, inventario_outros_info[playerid][5], 2);
PlayerTextDrawColor(playerid, inventario_outros_info[playerid][5], -1);
PlayerTextDrawUseBox(playerid, inventario_outros_info[playerid][5], 1);
PlayerTextDrawBoxColor(playerid, inventario_outros_info[playerid][5], 555819397);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, inventario_outros_info[playerid][5], 0);
PlayerTextDrawBackgroundColor(playerid, inventario_outros_info[playerid][5], 255);
PlayerTextDrawFont(playerid, inventario_outros_info[playerid][5], 2);
PlayerTextDrawSetProportional(playerid, inventario_outros_info[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, inventario_outros_info[playerid][5], 0);
return true;
}
invOnDialogResponse(playerid, dialogid, listitem) {
switch(dialogid) {
case DIALOG_COMPRAR_INVENTARIO: {
switch(listitem) {
case 0: {
pInfo[playerid][pMochila] = 1;
pInfo[playerid][pMochilaAtiva] = true;
return true;
}
case 1: {
pInfo[playerid][pMochila] = 2;
pInfo[playerid][pMochilaAtiva] = true;
return true;
}
case 2: {
pInfo[playerid][pMochila] = 3;
pInfo[playerid][pMochilaAtiva] = true;
return true;
}
}
}
}
return false;
}
invOnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
new string[128];
if(GetPVarInt(playerid, "inventario_aba") == 0) {
for(new i = 0; i < 15; i++) {
if(playertextid == inventario_index[playerid][i]) {
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")], -1633771777);
PlayerTextDrawBackgroundColor(playerid, playertextid, 0x00FF00FF);
//atualizar
PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
format(string, sizeof string, "%s", serverItens[pInventario[playerid][i][inv_item_index]][sItem_nome]);
PlayerTextDrawSetString(playerid, inventario_item_nome[playerid], string);
SetPVarInt(playerid, "inventario_item_slot_ativo", i);
break;
}
}
} else SendClientMessage(playerid, -1, "Ainda nгo й possivel selecionar nessa aba!!");
if(playertextid == inventario_aba_outros[playerid]) {
if(GetPVarInt(playerid, "inventario_aba") == 1) return true;
SetPVarInt(playerid, "inventario_aba", 1);
format(string, sizeof string, "%s", serverItens[238][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][0], string);
format(string, sizeof string, "%s", serverItens[237][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][1], string);
format(string, sizeof string, "%s", serverItens[239][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][2], string);
format(string, sizeof string, "%s", serverItens[240][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][3], string);
format(string, sizeof string, "%s", serverItens[241][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][4], string);
format(string, sizeof string, "%s", serverItens[242][sItem_nome]), PlayerTextDrawSetString(playerid, inventario_outros_info[playerid][5], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pMarijuana]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][0], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pCocaina]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][1], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pCrack]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][2], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pEcstasy]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][3], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pMateriais]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][4], string);
format(string, sizeof string, "quant %d", pInventario[playerid][pRemedios]), PlayerTextDrawSetString(playerid, inventario_item_info[playerid][5], string);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], serverItens[238][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], serverItens[237][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], serverItens[239][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], serverItens[240][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], serverItens[241][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], serverItens[242][sItem_modelo]);
for(new i = 0; i < 15; i++) {
PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
PlayerTextDrawHide(playerid, backgroundinv[playerid][i]);
}
for(new i = 0; i < 6; i++) {
//PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], "quant 0");
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
PlayerTextDrawShow(playerid, inventario_outros_info[playerid][i]);
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
}
}
else if(playertextid == inventario_aba_equipam[playerid]) {
if(GetPVarInt(playerid, "inventario_aba") == 0) return true;
SetPVarInt(playerid, "inventario_aba", 0);
for(new i = 0; i < 15; i++) {
if(i < 6) PlayerTextDrawHide(playerid, inventario_outros_info[playerid][i]);
PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][i], serverItens[pInventario[playerid][i][inv_item_index]][sItem_modelo]);
if(pInventario[playerid][i][inv_item_ativo] == true) {
switch(serverItens[pInventario[playerid][i][inv_item_index]][sItem_tipo]) {
case ITEM_TIPO_ARMA: format(string, sizeof(string), "Municao %d", pInventario[playerid][i][inv_armaBalas]);
case ITEM_TIPO_COLETE: format(string, sizeof(string), "Colete %f", pInventario[playerid][i][inv_coleteStatus]);
case ITEM_TIPO_FOME: format(string, sizeof(string), "erro");
case ITEM_TIPO_SEDE: format(string, sizeof(string), "erro");
case ITEM_TIPO_VEICULOMOD: format(string, sizeof(string), "VEICULO MOD");
}
} else format(string, sizeof(string), "vazio");
PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], string);
}
for(new i = 0; i < 15; i++) { //show text draw
if(pInfo[playerid][pMochila] == 1) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 4) break;
}
else if(pInfo[playerid][pMochila] == 2) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 9) break;
}
else if(pInfo[playerid][pMochila] == 3) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 14) break;
}
}
return true;
}
else if(playertextid == inventario_fechar[playerid]) {
SetPVarInt(playerid, "inventario", 0);
esconderInventario(playerid);
CancelSelectTextDraw(playerid);
/*for(new i = 0; i < 15; i++) {
PlayerTextDrawBackgroundColor(playerid, inventario_index[playerid][i], -1633771777);
}*/
}
else if(playertextid == inventario_usar[playerid]) {
if(pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] == true) {
esconderInventario(playerid);
CancelSelectTextDraw(playerid);
switch(serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo]) {
case ITEM_TIPO_ARMA: {
GivePlayerWeapon(playerid, pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaIndex], pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaBalas]);
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
return true;
}
case ITEM_TIPO_COLETE: {
SetPlayerArmour(playerid, pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_coleteStatus]);
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
return true;
}
}
return true;
}
else {
SendClientMessage(playerid, -1, "O slot selecionado nao possue nenhum item");
return true;
}
}
else if(playertextid == inventario_drop[playerid]) {
if(pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] == true) {
for(new i = 0; i < MAX_ITENS; i++) {
if(mundoItens[i][mItem_ativo] == true) continue;
switch(serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo]) {
case ITEM_TIPO_ARMA: {
GetPlayerPos(playerid, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]);
mundoItens[i][mItem_armaIndex] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaIndex];
mundoItens[i][mItem_armaBalas] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_armaBalas];
mundoItens[i][mItem_tipo] = serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_tipo];
mundoItens[i][mItem_index] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index];
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);
format(string, sizeof string, "%s", serverItens[pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index]][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 5.0, 0, 0);
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
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]);
PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
mundoItens[i][mItem_ativo] = true;
break;
}
case ITEM_TIPO_COLETE: {
mundoItens[i][mItem_tipo] = ITEM_TIPO_COLETE;
mundoItens[i][mItem_index] = 40;
mundoItens[i][mItem_coleteStatus] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_coleteStatus];
GetPlayerPos(playerid, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]);
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);
format(string, sizeof string, "%s", serverItens[mundoItens[i][mItem_index]][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z]-1, 5.0, 0, 0);
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
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]);
PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
mundoItens[i][mItem_ativo] = true;
break;
}
case ITEM_TIPO_VEICULOMOD: {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
mundoItens[i][mItem_x] = x;
mundoItens[i][mItem_y] = y;
mundoItens[i][mItem_z] = z;
mundoItens[i][mItem_index] = pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index];
mundoItens[i][mItem_tipo] = ITEM_TIPO_VEICULOMOD;
mundoItens[i][mItem_createObject] = CreateObject(serverItens[mundoItens[i][mItem_index]][sItem_modelo], x, y, z-0.8, 0.0, 0.0, 0.0);
format(string, sizeof string, "%s", serverItens[mundoItens[i][mItem_index]][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
mundoItens[i][mItem_ativo] = true;
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_2IDLE", 10000.0, 0, 0, 0, 0, 0);
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_ativo] = false;
pInventario[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")][inv_item_index] = 0;
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]);
PlayerTextDrawHide(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
PlayerTextDrawShow(playerid, inventario_index[playerid][GetPVarInt(playerid, "inventario_item_slot_ativo")]);
break;
}
}
}
}
return true;
}
////
else if(playertextid == inventario_opcoes_guardar[playerid]) {
for(new i = 0; i < 15; i++) {
if(pInventario[playerid][i][inv_item_ativo] == true) continue;
pInventario[playerid][i][inv_item_ativo] = true;
mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
switch(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_tipo]) {
case ITEM_TIPO_ARMA: {
pInventario[playerid][i][inv_armaIndex] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaIndex];
pInventario[playerid][i][inv_armaBalas] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaBalas];
pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
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);
SendClientMessage(playerid, -1, string);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
}
case ITEM_TIPO_COLETE: {
pInventario[playerid][i][inv_coleteStatus] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_coleteStatus];
pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
SendClientMessage(playerid, -1, "Voce colocou um colete no inventario.");
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
}
case ITEM_TIPO_VEICULOMOD: {
pInventario[playerid][i][inv_item_index] = mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_index];
DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
SendClientMessage(playerid, -1, "Voce colocou uma peзa de veiculo no inventario.");
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
}
}
break;
}
return true;
}
else if(playertextid == inventario_opcoes_equipar[playerid]) {
switch(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_tipo]) {
case ITEM_TIPO_ARMA: {
GivePlayerWeapon(playerid, mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaIndex], mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_armaBalas]);
mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
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]);
SendClientMessage(playerid, -1, string);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
}
case ITEM_TIPO_COLETE: {
SetPlayerArmour(playerid, mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_coleteStatus]);
mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_ativo] = false;
DestroyObject(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_createObject]);
Delete3DTextLabel(mundoItens[GetPVarInt(playerid, "mundoItens_index_ativo")][mItem_text3d]);
SendClientMessage(playerid, -1, "Voce colocou um colete.");
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
}
case ITEM_TIPO_VEICULOMOD: {
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
SendClientMessage(playerid, -1, "Voce nao pode equipar esse item");
return true;
}
}
return true;
}
else if(playertextid == inventario_opcoes_fechar[playerid]) {
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawHide(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawHide(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_opcoes_guardar[playerid]);
CancelSelectTextDraw(playerid);
return true;
}
return true;
}
invOnPlayerKeyStateChange(playerid, newkeys) {
if(newkeys == KEY_WALK) {
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return true;
for(new i = 0; i < MAX_SERVER_ITENS; i++) {
if(mundoItens[i][mItem_ativo] == false) continue;
if(!IsPlayerInRangeOfPoint(playerid, 1.0, mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z])) continue;
PlayerTextDrawSetPreviewModel(playerid, inventario_opcoes[playerid][1], serverItens[mundoItens[i][mItem_index]][sItem_modelo]);
SetPVarInt(playerid, "mundoItens_index_ativo", i);
SelectTextDraw(playerid, 0x00FF00FF);
PlayerTextDrawShow(playerid, inventario_opcoes[playerid][0]);
PlayerTextDrawShow(playerid, inventario_opcoes[playerid][1]);
PlayerTextDrawShow(playerid, inventario_opcoes[playerid][2]);
PlayerTextDrawShow(playerid, inventario_opcoes[playerid][3]);
PlayerTextDrawShow(playerid, inventario_opcoes[playerid][4]);
PlayerTextDrawShow(playerid, inventario_opcoes_equipar[playerid]);
PlayerTextDrawShow(playerid, inventario_opcoes_fechar[playerid]);
PlayerTextDrawShow(playerid, inventario_opcoes_guardar[playerid]);
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_IN", 10000.0, 0, 0, 0, 0, 0);
break;
}
}
else if(newkeys == KEY_YES) {
if(pInfo[playerid][pMochilaAtiva] == false) return SendClientMessage(playerid, -1, "Voce nao possue uma mochila, compre uma na 24/7.");
if(GetPVarInt(playerid, "inventario") == 0) {
mostrarInventario(playerid);
SelectTextDraw(playerid, 0x00FF00FF);
SetPVarInt(playerid, "inventario", 1);
return true;
}
else if(GetPVarInt(playerid, "inventario") == 1) {
CancelSelectTextDraw(playerid);
esconderInventario(playerid);
SetPVarInt(playerid, "inventario", 0);
SetPVarInt(playerid, "inventario_aba", 0);
return true;
}
}
return true;
}
invOnPlayerUpdate(playerid) {
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour > 0) return SetPlayerAttachedObject(playerid, 9, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
else if(armour <= 0) return RemovePlayerAttachedObject(playerid, 9);
return true;
}
stock GivePlayerPositionItem(playerid, item) {
new Float:x, Float:y, Float:z, string[128];
GetPlayerPos(playerid, x, y, z);
if(serverItens[item][sItem_modelo] == 0) return true;
for(new i = 0; i < MAX_ITENS; i++) {
if(mundoItens[i][mItem_ativo] == true) continue;
switch(serverItens[item][sItem_tipo]) {
case ITEM_TIPO_ARMA: {
mundoItens[i][mItem_x] = x;
mundoItens[i][mItem_y] = y;
mundoItens[i][mItem_z] = z;
mundoItens[i][mItem_armaIndex] = serverItens[item][sItem_arma_model];
mundoItens[i][mItem_armaBalas] = 100;
mundoItens[i][mItem_tipo] = ITEM_TIPO_ARMA;
mundoItens[i][mItem_index] = item;
mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-1, 93.7, 120.0, 120.0);
format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
mundoItens[i][mItem_ativo] = true;
break;
}
case ITEM_TIPO_COLETE: {
mundoItens[i][mItem_x] = x;
mundoItens[i][mItem_y] = y;
mundoItens[i][mItem_z] = z;
mundoItens[i][mItem_index] = item;
mundoItens[i][mItem_coleteStatus] = 100.0;
mundoItens[i][mItem_tipo] = ITEM_TIPO_COLETE;
mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-1, 93.7, 120.0, 120.0);
format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
mundoItens[i][mItem_ativo] = true;
break;
}
case ITEM_TIPO_VEICULOMOD: {
mundoItens[i][mItem_x] = x;
mundoItens[i][mItem_y] = y;
mundoItens[i][mItem_z] = z;
mundoItens[i][mItem_index] = item;
mundoItens[i][mItem_tipo] = ITEM_TIPO_VEICULOMOD;
mundoItens[i][mItem_createObject] = CreateObject(serverItens[item][sItem_modelo], x, y, z-0.8, 0.0, 0.0, 0.0);
format(string, sizeof string, "%s", serverItens[item][sItem_nome]);
mundoItens[i][mItem_text3d] = Create3DTextLabel(string, 0x008080FF, x, y, z-1, 5.0, 0, 0);
mundoItens[i][mItem_ativo] = true;
break;
}
}
}
return true;
}
stock mostrarInventario(playerid) {
new string[128];
PlayerTextDrawShow(playerid, inventario_aba_equipam[playerid]);
PlayerTextDrawShow(playerid, inventario_aba_outros[playerid]);
PlayerTextDrawShow(playerid, inventario_fundo[playerid]);
PlayerTextDrawShow(playerid, inventario_aba[playerid][0]);
PlayerTextDrawShow(playerid, inventario_aba[playerid][1]);
PlayerTextDrawShow(playerid, inventario_fechar[playerid]);
PlayerTextDrawShow(playerid, inventario_usar[playerid]);
PlayerTextDrawShow(playerid, inventario_drop[playerid]);
PlayerTextDrawSetString(playerid, inventario_item_nome[playerid], "Nenhum item selecionado.");
PlayerTextDrawShow(playerid, inventario_item_nome[playerid]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][0], serverItens[pInventario[playerid][0][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][1], serverItens[pInventario[playerid][1][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][2], serverItens[pInventario[playerid][2][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][3], serverItens[pInventario[playerid][3][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][4], serverItens[pInventario[playerid][4][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][5], serverItens[pInventario[playerid][5][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][6], serverItens[pInventario[playerid][6][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][7], serverItens[pInventario[playerid][7][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][8], serverItens[pInventario[playerid][8][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][9], serverItens[pInventario[playerid][9][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][10], serverItens[pInventario[playerid][10][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][11], serverItens[pInventario[playerid][11][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][12], serverItens[pInventario[playerid][12][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][13], serverItens[pInventario[playerid][13][inv_item_index]][sItem_modelo]);
PlayerTextDrawSetPreviewModel(playerid, inventario_index[playerid][14], serverItens[pInventario[playerid][14][inv_item_index]][sItem_modelo]);
for(new i = 0; i < 15; i++) { //set string text info
if(pInventario[playerid][i][inv_item_ativo] == true) {
switch(serverItens[pInventario[playerid][i][inv_item_index]][sItem_tipo]) {
case ITEM_TIPO_ARMA: format(string, sizeof(string), "Municao %d", pInventario[playerid][i][inv_armaBalas]);
case ITEM_TIPO_COLETE: format(string, sizeof(string), "Colete %f", pInventario[playerid][i][inv_coleteStatus]);
case ITEM_TIPO_FOME: format(string, sizeof(string), "erro");
case ITEM_TIPO_SEDE: format(string, sizeof(string), "erro");
case ITEM_TIPO_VEICULOMOD: format(string, sizeof(string), "VEICULO MOD");
}
} else format(string, sizeof(string), "vazio");
PlayerTextDrawSetString(playerid, inventario_item_info[playerid][i], string);
}
for(new i = 0; i < 15; i++) { //show text draw
if(pInfo[playerid][pMochila] == 1) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 4) break;
}
else if(pInfo[playerid][pMochila] == 2) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 9) break;
}
else if(pInfo[playerid][pMochila] == 3) {
PlayerTextDrawShow(playerid, backgroundinv[playerid][i]);
PlayerTextDrawShow(playerid, inventario_index[playerid][i]);
PlayerTextDrawShow(playerid, inventario_item_info[playerid][i]);
if(i == 14) break;
}
}
return true;
}
stock esconderInventario(playerid) {
for(new i = 0; i < 15; i++) {
if(i < 6) PlayerTextDrawHide(playerid, inventario_outros_info[playerid][i]);
PlayerTextDrawHide(playerid, backgroundinv[playerid][i]);
PlayerTextDrawHide(playerid, inventario_index[playerid][i]);
PlayerTextDrawHide(playerid, inventario_item_info[playerid][i]);
}
PlayerTextDrawHide(playerid, inventario_aba_equipam[playerid]);
PlayerTextDrawHide(playerid, inventario_aba_outros[playerid]);
PlayerTextDrawHide(playerid, inventario_fundo[playerid]);
PlayerTextDrawHide(playerid, inventario_aba[playerid][0]);
PlayerTextDrawHide(playerid, inventario_aba[playerid][1]);
PlayerTextDrawHide(playerid, inventario_fechar[playerid]);
PlayerTextDrawHide(playerid, inventario_usar[playerid]);
PlayerTextDrawHide(playerid, inventario_drop[playerid]);
PlayerTextDrawHide(playerid, inventario_item_nome[playerid]);
}
forward RemovePlayerWeapon(playerid, weaponid);
public RemovePlayerWeapon(playerid, weaponid) {
if(!IsPlayerConnected(playerid) || weaponid < 0 || weaponid > 50) return;
new saveweapon[13], saveammo[13];
for(new slot = 0; slot < 13; slot++)
GetPlayerWeaponData(playerid, slot, saveweapon[slot], saveammo[slot]);
ResetPlayerWeapons(playerid);
for(new slot; slot < 13; slot++)
{
if(saveweapon[slot] == weaponid || saveammo[slot] == 0)
continue;
GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]);
}
GivePlayerWeapon(playerid, 0, 1);
}
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
nesse erro aн estб informando que jб tem algo definido como "command" entendeu ?