Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //nao retire os creditos by: smoking
- #define menuarmas2 54
- new menuarma;
- menuarma = CPS_AddCheckpoint(cordenada x, cordenada y,cordenada z, 1.0, 40);
- if(checknome == menuarma){
- GameTextForPlayer(playerid, "~r~Menu Armas", 5000, 6);
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- return 1;
- }
- if(dialogid == menuarmas2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, pistolas2, DIALOG_STYLE_LIST, "Menu De Armas - Pistolas", "9MM Pistol\nPMM Silenciada\nDesert\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, microsmg2, DIALOG_STYLE_LIST, "Menu De Armas - Micro Smgs", "Uzi\nTec-9\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, shotguns2, DIALOG_STYLE_LIST, "Menu De Armas - Shotguns", "Shotgun\nSaw-Off Shotgun\nCombat Shotgun\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, SMG2, DIALOG_STYLE_LIST, "Menu De Armas - Smg", "MP5\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, rifle2, DIALOG_STYLE_LIST, "Menu De Armas - Rifles", "Rifle\nSniper Rifle\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, assalto2, DIALOG_STYLE_LIST, "Menu De Armas - Assalto", "AK-47\nM4\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 6)
- {
- ShowPlayerDialog(playerid, outras2, DIALOG_STYLE_LIST, "Menu De Armas - Outras", "Explosivos Remoto\nGranadas\nMolotov's\nSpray\nExtintor\nSerra-Eletrica\nFaca\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 7)
- {
- ShowPlayerDialog(playerid, especiais, DIALOG_STYLE_LIST, "Menu De Armas - Especiais", "Lança Chamas\nVoltar", "OK", "Cancelar");
- }
- }
- }
- if(dialogid == pistolas2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"9mm") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma 9mm!");
- return 1;
- }
- GivePlayerWeapon(playerid,22,99999); //9MM
- dini_Set(file, "9mm", "1");
- dini_Set(file, "9mmS", "0");
- dini_Set(file, "Desert", "0");
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma 9mm por R$ 12.000!");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"9mmS") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma 9mm Silenciada!");
- return 1;
- }
- GivePlayerWeapon(playerid,23,99999); //PMM Silenciada
- dini_Set(file, "9mmS", "1");
- dini_Set(file, "9mm", "0");
- dini_Set(file, "Desert", "0");
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma 9mm Silenciada por R$ 10.000!");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- if(dini_Int(file,"Desert") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Desert!");
- return 1;
- }
- GivePlayerWeapon(playerid,24,99999); //Desert
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Desert por R$ 25.000!");
- dini_Set(file, "Desert", "1");
- dini_Set(file, "9mm", "0");
- dini_Set(file, "9mmS", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == microsmg2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"Uzi") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Uzi!");
- return 1;
- }
- GivePlayerWeapon(playerid,28,99999); //Uzi
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Uzi por R$ 25.000!");
- dini_Set(file, "Uzi", "1");
- dini_Set(file, "Tec9", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"Tec9") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Tec9!");
- return 1;
- }
- GivePlayerWeapon(playerid,32,99999); //TEc-9
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Tec-9 por R$ 25.000!");
- dini_Set(file, "Tec9", "1");
- dini_Set(file, "Uzi", "0");
- dini_Set(file, "MP5", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == shotguns2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"Shotgun") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Shotgun!");
- return 1;
- }
- GivePlayerWeapon(playerid,25,99999); //Shotgun
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Shotgun por R$ 30.000!");
- dini_Set(file, "Shotgun", "1");
- dini_Set(file, "Sawoff", "0");
- dini_Set(file, "Combat", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"Sawoff") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Saw-Off!");
- return 1;
- }
- GivePlayerWeapon(playerid,26,99999); //Saw-off
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Saw-off por R$ 35.000!");
- dini_Set(file, "Sawoff", "1");
- dini_Set(file, "Shotgun", "0");
- dini_Set(file, "Combat", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- if(dini_Int(file,"Combat") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Combat Shotgun!");
- return 1;
- }
- GivePlayerWeapon(playerid,27,99999); //Combat
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Combat-Shotgun por R$ 37.000!");
- dini_Set(file, "Combat", "1");
- dini_Set(file, "Sawoff", "0");
- dini_Set(file, "Shotgun", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem ==3 )
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == SMG2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"MP5") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma MP5!");
- return 1;
- }
- GivePlayerWeapon(playerid,29,99999); //MP5
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma MP5 por R$ 28.000!");
- dini_Set(file, "MP5", "1");
- dini_Set(file, "Tec9", "0");
- dini_Set(file, "Uzi", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == rifle2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"Rifle") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem um Rifle!");
- return 1;
- }
- GivePlayerWeapon(playerid,33,99999); //Rifle
- SendClientMessage(playerid, 0x008000AA, "Você comprou um Rifle por R$ 32.000!");
- dini_Set(file, "Rifle", "1");
- dini_Set(file, "SRifle", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"SRifle") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma Sniper Rifle!");
- return 1;
- }
- GivePlayerWeapon(playerid,34,99999); //Sniper Rifle
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Sniper Rifle por R$ 35.000!");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- dini_Set(file, "SRifle", "1");
- dini_Set(file, "Rifle", "0");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == assalto2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"AK47") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma AK-47!");
- return 1;
- }
- GivePlayerWeapon(playerid,30,99999); //AK-47
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma AK-47 por R$ 100.000!");
- dini_Set(file, "AK47", "1");
- dini_Set(file, "M4", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"M4") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem uma M4!");
- return 1;
- }
- GivePlayerWeapon(playerid,31,99999); //M4
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma M4 por R$ 200.000!");
- dini_Set(file, "M4", "1");
- dini_Set(file, "AK47", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == outras2)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"EM") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Explosivos Remoto!");
- return 1;
- }
- GivePlayerWeapon(playerid,39,99999);
- GivePlayerWeapon(playerid,40,1);
- SendClientMessage(playerid, 0x008000AA, "Você comprou Explosivos Remoto por R$ 150.000!");
- dini_Set(file, "EM", "1");
- dini_Set(file, "Granadas", "0");
- dini_Set(file, "Molotov", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- if(dini_Int(file,"Granadas") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Granadas!");
- return 1;
- }
- GivePlayerWeapon(playerid,16,99999); //Granadas
- SendClientMessage(playerid, 0x008000AA, "Você comprou Granadas por R$ 50.000!");
- dini_Set(file, "Granadas", "1");
- dini_Set(file, "Molotov", "0");
- dini_Set(file, "EM", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 2)
- {
- if(dini_Int(file,"Molotov") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Molotov's");
- return 1;
- }
- GivePlayerWeapon(playerid,18,99999); // Molotov's
- SendClientMessage(playerid, 0x008000AA, "Você comprou Molotov's por R$ 40.000!");
- dini_Set(file, "Molotov", "1");
- dini_Set(file, "Granadas", "0");
- dini_Set(file, "EM", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 3)
- {
- if(dini_Int(file,"Spray") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Spray!");
- return 1;
- }
- GivePlayerWeapon(playerid,41,99999); // Spray
- SendClientMessage(playerid, 0x008000AA, "Você comprou um Spray por R$ 5.000!");
- dini_Set(file, "Spray", "1");
- dini_Set(file, "EM", "0");
- dini_Set(file, "Extintor", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 4)
- {
- if(dini_Int(file,"Extintor") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Extintor!");
- return 1;
- }
- GivePlayerWeapon(playerid,42,99999); // Extintor
- SendClientMessage(playerid, 0x008000AA, "Você comprou um Extintor por R$ 6.000!");
- dini_Set(file, "Extintor", "1");
- dini_Set(file, "Spray", "0");
- dini_Set(file, "EM", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 5)
- {
- if(dini_Int(file,"Serra") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Serra Eletrica!");
- return 1;
- }
- GivePlayerWeapon(playerid,9,1); // Serra-Eletrica
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Serra Eletrica por R$ 4.000!");
- dini_Set(file, "Serra", "1");
- dini_Set(file, "Faca", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 6)
- {
- if(dini_Int(file,"Faca") == 1){
- SendClientMessage(playerid, Vermelho,"Você ja tem Faca!");
- return 1;
- }
- GivePlayerWeapon(playerid,4,1); // faca
- SendClientMessage(playerid, 0x008000AA, "Você comprou uma Faca por R$ 1.000!");
- dini_Set(file, "Faca", "1");
- dini_Set(file, "Serra", "0");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 7)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- if(dialogid == especiais)
- {
- if(response)
- {
- new grana;
- grana = GetPlayerGrana(playerid);
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(listitem == 0)
- {
- if(dini_Int(file,"LC") == 1){
- SendClientMessage(playerid, Vermelho,"Você já tem um Lança Chamas!");
- return 1;
- }
- GivePlayerWeapon(playerid,37,8000); //Lança Chamas
- SendClientMessage(playerid, 0x008000AA, "Você comprou um Lança Chamas por R$ 800.000!");
- dini_Set(file, "LC", "1");
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- } else {
- SendClientMessage(playerid, Vermelho,"Você não tem dinheiro suficiente!");
- }
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, menuarmas2, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras\nEspeciais", "OK", "Cancelar");
- }
- }
- }
- if(dialogid == menuarmas)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, pistolas, DIALOG_STYLE_LIST, "Menu De Armas - Pistolas", "9MM Pistol\nPMM Silenciada\nDesert\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, microsmg, DIALOG_STYLE_LIST, "Menu De Armas - Micro Smgs", "Uzi\nTec-9\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, shotguns, DIALOG_STYLE_LIST, "Menu De Armas - Shotguns", "Shotgun\nSaw-Off Shotgun\nCombat Shotgun\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, SMG, DIALOG_STYLE_LIST, "Menu De Armas - Smg", "MP5\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, rifle, DIALOG_STYLE_LIST, "Menu De Armas - Rifles", "Rifle\nSniper Rifle\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, assalto, DIALOG_STYLE_LIST, "Menu De Armas - Assalto", "AK-47\nM4\nVoltar", "OK", "Cancelar");
- }
- if(listitem == 6)
- {
- ShowPlayerDialog(playerid, outras, DIALOG_STYLE_LIST, "Menu De Armas - Outras", "Explosivo Remoto\nGranadas\nMolotov's\nSpray\nExtintor\nSerra-Eletrica\nFaca\nVoltar", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == pistolas)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,22,99999); //9MM
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,23,99999); //PMM Silenciada
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid,24,99999); //Desert
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == microsmg)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,28,99999); //Uzi
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,32,99999); //TEc-9
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == shotguns)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,25,99999); //Shotgun
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,26,99999); //Saw-off
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid,27,99999); //Combat
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem ==3 )
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == SMG)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,29,99999); //MP5
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == rifle)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,33,99999); //Rifle
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,34,99999); //Sniper Rifle
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == assalto)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid,30,99999); //AK-47
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,31,99999); //M4
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if(dialogid == outras)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, 0x008000AA, "* Indisponivel");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid,16,40); //Granadas
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid,18,99999); // Molotov's
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid,41,99999); // Spray
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 4)
- {
- GivePlayerWeapon(playerid,42,99999); // Extintor
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 5)
- {
- GivePlayerWeapon(playerid,9,99999); // Serra-Eletrica
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 6)
- {
- GivePlayerWeapon(playerid,4,99999); // faca
- SendClientMessage(playerid, 0x008000AA, "* Você comprou uma arma Parabéns, não faça DM fora da favela");
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- if(listitem == 7)
- {
- ShowPlayerDialog(playerid, menuarmas, DIALOG_STYLE_LIST, "Menu De Armas", "Pistolas\nMicro Smg\nShotguns\nSMG\nRifles\nAssalto\nOutras", "OK", "Cancelar");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement