Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- / Weapons Menu By Etch
- #include <a_samp>
- #define COLOR_YELLOW 0xFFFF00AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Armi menu caricato");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print("Armi menu chiuso");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Armi", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Armi", "Pistole\nEquipaggiamenti\nFucili 1\nSMG - Minigun\nFucili 2\nLanciarazzi\nExtra", "Seleziona", "Esci");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 999 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 998, DIALOG_STYLE_LIST, "Pistole", "9mm\n9mm Silenced\nDesert Eagle", "Compra", "Indietro");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 997, DIALOG_STYLE_LIST, "Equipaggiamenti", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nFlowers\nCane\nGrenade\nTear Gas\nMolotov Cocktail", "Compra", "Indietro");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 996, DIALOG_STYLE_LIST, "Fucili 1", "Shotgun\nSawn-off Shotgun\nCombat Shotgun", "Compra", "Indietro");
- }
- case 3:
- {
- ShowPlayerDialog(playerid, 995, DIALOG_STYLE_LIST, "SMG - Miniguns", "Micro SMG\nSMG\nAK47\nM4\nTec9\nMinigun", "Compra", "Indietro");
- }
- case 4:
- {
- ShowPlayerDialog(playerid, 994, DIALOG_STYLE_LIST, "Fucili 2", "Country Rifle\nSniper Rifle", "Compra", "Indietro");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, 993, DIALOG_STYLE_LIST, "Lanciarazzi", "Rocket Launcher\nHeat Seeker Rocket\nFlame Thrower", "Compra", "Indietro");
- }
- case 6:
- {
- ShowPlayerDialog(playerid, 992, DIALOG_STYLE_LIST, "Extra", "Satchel Charge\nSpray Can\nFire Extinguisher\nCamera\nNightvision Googles\nThermal Googles\nParachute", "Compra", "Indietro");
- }
- }
- }
- if(dialogid == 998 && response) // pistole
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,22,99999);
- SendClientMessage(playerid,COLOR_YELLOW,"Hai comprato una 9mm");
- }
- case 1:
- {
- GivePlayerWeapon(playerid,23,99999);
- SendClientMessage(playerid,COLOR_YELLOW,"Hai comprato una 9mm silenziata");
- }
- case 2:
- {
- GivePlayerWeapon(playerid,24,99999);
- SendClientMessage(playerid,COLOR_YELLOW,"Hai comprato una 9mm silenziata");
- }
- }
- }
- if(dialogid == 997 && response) // equipaggiamenti
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,1,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,2,99999);
- }
- case 2:
- {
- GivePlayerWeapon(playerid,3,99999);
- }
- case 3:
- {
- GivePlayerWeapon(playerid,4,99999);
- }
- case 4:
- {
- GivePlayerWeapon(playerid,5,99999);
- }
- case 5:
- {
- GivePlayerWeapon(playerid,6,99999);
- }
- case 6:
- {
- GivePlayerWeapon(playerid,7,99999);
- }
- case 7:
- {
- GivePlayerWeapon(playerid,8,99999);
- }
- case 8:
- {
- GivePlayerWeapon(playerid,9,99999);
- }
- case 9:
- {
- GivePlayerWeapon(playerid,14,99999);
- }
- case 10:
- {
- GivePlayerWeapon(playerid,15,99999);
- }
- case 211:
- {
- GivePlayerWeapon(playerid,16,99999);
- }
- case 12:
- {
- GivePlayerWeapon(playerid,17,99999);
- }
- case 13:
- {
- GivePlayerWeapon(playerid,18,99999);
- }
- }
- }
- if(dialogid == 996 && response) // Shotguns
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,25,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,26,99999);
- }
- case 2:
- {
- GivePlayerWeapon(playerid,27,99999);
- }
- }
- }
- if(dialogid == 995 && response) // SMGS - MINIGUNS
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,28,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,29,99999);
- }
- case 2:
- {
- GivePlayerWeapon(playerid,30,99999);
- }
- case 3:
- {
- GivePlayerWeapon(playerid,31,99999);
- }
- case 4:
- {
- GivePlayerWeapon(playerid,32,99999);
- }
- case 5:
- {
- GivePlayerWeapon(playerid,38,99999);
- }
- }
- }
- if(dialogid == 994 && response) // Rifles
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,33,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,34,99999);
- }
- }
- }
- if(dialogid == 993 && response) // Launchers
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,35,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,36,99999);
- }
- case 2:
- {
- GivePlayerWeapon(playerid,37,99999);
- }
- }
- }
- if(dialogid == 992 && response) // extras
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid,39,99999);
- }
- case 1:
- {
- GivePlayerWeapon(playerid,41,99999);
- }
- case 2:
- {
- GivePlayerWeapon(playerid,42,99999);
- }
- case 3:
- {
- GivePlayerWeapon(playerid,43,99999);
- }
- case 4:
- {
- GivePlayerWeapon(playerid,44,99999);
- }
- case 5:
- {
- GivePlayerWeapon(playerid,45,99999);
- }
- case 6:
- {
- GivePlayerWeapon(playerid,46,99999);
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment