Rapha3L

[FS]Pack's de Armas v1.1

Jun 17th, 2013
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.84 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //                              [FS]Pack De Armas                             //
  3. ////////////////////////////////////////////////////////////////////////////////
  4. // Autor: Rapha3L                                                             //
  5. // Versão: 1.1                                                                //
  6. // Ultima Modificação: 17-06-2013                                             //
  7. ////////////////////////////////////////////////////////////////////////////////
  8. // Créditos: SA-MP Team/Wiki                                                  //
  9. ////////////////////////////////////////////////////////////////////////////////
  10.  
  11. //---[Includes]---//
  12.  
  13. #include <a_samp>
  14. #include <zcmd>
  15.  
  16. //---[ID's Armas]---//
  17.    
  18. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  19. {
  20.     if(dialogid == 189)
  21.     {
  22.         if(response)
  23.         {
  24.             switch(listitem)
  25.             {
  26.                 case 0:
  27.                 {
  28.                     GivePlayerWeapon(playerid, 24, 500);
  29.                     GivePlayerWeapon(playerid, 25, 500);
  30.                     GivePlayerWeapon(playerid, 28, 500);
  31.                     GivePlayerWeapon(playerid, 34, 100);
  32.                 }
  33.                 case 1:
  34.                 {
  35.                     GivePlayerWeapon(playerid, 23, 500);
  36.                     GivePlayerWeapon(playerid, 27, 500);
  37.                     GivePlayerWeapon(playerid, 31, 500);
  38.                     GivePlayerWeapon(playerid, 33, 500);
  39.                 }
  40.                 case 2:
  41.                 {
  42.                     GivePlayerWeapon(playerid, 22, 500);
  43.                     GivePlayerWeapon(playerid, 26, 500);
  44.                     GivePlayerWeapon(playerid, 32, 500);
  45.                     GivePlayerWeapon(playerid, 30, 500);
  46.                 }
  47.             }
  48.         }
  49.     }      
  50.     if(dialogid == 169)
  51.     {
  52.         if(response)
  53.         {
  54.             switch(listitem)
  55.             {
  56.                 case 0:
  57.                 {
  58.                     GivePlayerWeapon(playerid, 24, 500);
  59.                     GivePlayerWeapon(playerid, 25, 500);
  60.                     GivePlayerWeapon(playerid, 29, 500);
  61.                     GivePlayerWeapon(playerid, 31, 100);
  62.                     GivePlayerWeapon(playerid, 34, 100);
  63.                 }
  64.                 case 1:
  65.                 {
  66.                     GivePlayerWeapon(playerid, 22, 500);
  67.                     GivePlayerWeapon(playerid, 26, 500);
  68.                     GivePlayerWeapon(playerid, 28, 500);
  69.                 }
  70.                 case 2:
  71.                 {
  72.                     GivePlayerWeapon(playerid, 16, 20);
  73.                 }
  74.             }
  75.         }
  76.     }
  77.     return 1;
  78. }
  79.  
  80. //---[Comandos + Dialogs]---//
  81.  
  82. CMD:armas(playerid,params[])
  83. {
  84.     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");
  85.     ResetPlayerWeapons(playerid);
  86.     return 1;
  87. }
  88.  
  89. CMD:kits(playerid,params[])
  90. {
  91.     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");
  92.     ResetPlayerWeapons(playerid);
  93.     return 1;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment