Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define DIALOG_WEAPONS 3
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Sistema menu de armas. Feito por: SrAlface007");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Sistema menu de armas. Feito por: SrAlface007");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/marmas", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Menu de Armas By: SrAlface007", "Desert Eagle\nAK-47\nCombat Shotgun\nKatana\nM4\nParaquedas\nRifle Sniper\nTec-9\nC4\n", "Selecionar", "Fechar");
- SendClientMessage(playerid, 0xFF0000FF, "[x] Você entrou no menu de armas >> /marmas <<");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 3)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: GivePlayerWeapon(playerid, WEAPON_DEAGLE, 500);
- case 1: GivePlayerWeapon(playerid, WEAPON_AK47, 500);
- case 2: GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 500);
- case 3: GivePlayerWeapon(playerid, WEAPON_KATANA, 8);
- case 4: GivePlayerWeapon(playerid, WEAPON_M4, 500);
- case 5: GivePlayerWeapon(playerid, WEAPON_PARACHUTE, 500);
- case 6: GivePlayerWeapon(playerid, WEAPON_SNIPER, 500);
- case 7: GivePlayerWeapon(playerid, WEAPON_TEC9, 500);
- case 8: GivePlayerWeapon(playerid, WEAPON_SATCHEL, 500);
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement