Advertisement
Rapha3L

[FS]Pack's de Armas

Jun 16th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.97 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //                              [FS]Pack De Armas                             //
  3. ////////////////////////////////////////////////////////////////////////////////
  4. // Autor: Rapha3L                                                             //
  5. // Versão: 1.0                                                                //
  6. // Ultima Modificação: 16-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.     return 1;
  51. }
  52.  
  53. //---[Comando + Dialog]---//
  54.  
  55. CMD:armas(playerid,params[])
  56. {
  57.     ResetPlayerWeapons(playerid);
  58.     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");
  59.     return 1;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement