Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- // [FS]Pack De Armas //
- ////////////////////////////////////////////////////////////////////////////////
- // Autor: Rapha3L //
- // Versão: 1.1 //
- // Ultima Modificação: 17-06-2013 //
- ////////////////////////////////////////////////////////////////////////////////
- // Créditos: SA-MP Team/Wiki //
- ////////////////////////////////////////////////////////////////////////////////
- //---[Includes]---//
- #include <a_samp>
- #include <zcmd>
- //---[ID's Armas]---//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 189)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 24, 500);
- GivePlayerWeapon(playerid, 25, 500);
- GivePlayerWeapon(playerid, 28, 500);
- GivePlayerWeapon(playerid, 34, 100);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 23, 500);
- GivePlayerWeapon(playerid, 27, 500);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 33, 500);
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 22, 500);
- GivePlayerWeapon(playerid, 26, 500);
- GivePlayerWeapon(playerid, 32, 500);
- GivePlayerWeapon(playerid, 30, 500);
- }
- }
- }
- }
- if(dialogid == 169)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 24, 500);
- GivePlayerWeapon(playerid, 25, 500);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 34, 100);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 22, 500);
- GivePlayerWeapon(playerid, 26, 500);
- GivePlayerWeapon(playerid, 28, 500);
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 16, 20);
- }
- }
- }
- }
- return 1;
- }
- //---[Comandos + Dialogs]---//
- CMD:armas(playerid,params[])
- {
- ShowPlayerDialog(playerid, 189, DIALOG_STYLE_LIST, "Pack's de Armas", "{A52A2A}Pack #1: {1E90FF}Deagle, Shotgun, Micro Uzi & Sniper\n{A52A2A}Pack #2: {1E90FF}Silenced 9MM, Combat Shotgun, M4 & Country Rifle\n{A52A2A}Pack #3: {1E90FF}9MM, Sawnoff, AK-47 & Tec-9", "Escolher", "Cancelar");
- ResetPlayerWeapons(playerid);
- return 1;
- }
- CMD:kits(playerid,params[])
- {
- ShowPlayerDialog(playerid, 169, DIALOG_STYLE_LIST, "KIT's Especiais", "{A52A2A}KIT WW: {1E90FF}Deagle, Shotgun, MP5, M4 & Sniper\n{A52A2A}KIT RW: {1E90FF}9MM, Micro Uzi & Sawnoff\n{A52A2A}KIT Granadas: {1E90FF}(20)Granadas", "Escolher", "Cancelar");
- ResetPlayerWeapons(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment