Advertisement
Guest User

Weapons Filterscript SA-MP => Private200

a guest
Feb 22nd, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.22 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. /*         Weapons Dialog
  5.                 by
  6.             Private200          */
  7.  
  8. //=======================[Colors]====================
  9. #define COLOR_LIGHTBLUE 0x33CCFFAA
  10. #define COLOR_RED 0xAA3333AA
  11. #define COLOR_GREY 0xAFAFAFAA
  12. #define COLOR_YELLOW 0xFFFF00AA
  13. #define COLOR_PINK 0xFF66FFAA
  14. #define COLOR_BLUE 0x0000BBAA
  15. #define COLOR_WHITE 0xFFFFFFAA
  16. #define COLOR_DARKRED 0x660000AA
  17. #define COLOR_ORANGE 0xFF9900AA
  18. #define COLOR_BRIGHTRED 0xFF0000AA
  19. #define COLOR_INDIGO 0x4B00B0AA
  20. #define COLOR_VIOLET 0x9955DEEE
  21. #define COLOR_LIGHTRED 0xFF99AADD
  22. #define COLOR_SEAGREEN 0x00EEADDF
  23. #define COLOR_GRAYWHITE 0xEEEEFFC4
  24. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  25. #define COLOR_GREENISHGOLD 0xCCFFDD56
  26. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  27. #define COLOR_NEUTRALBLUE 0xABCDEF01
  28. #define COLOR_LIGHTCYAN 0xAAFFCC33
  29. #define COLOR_LEMON 0xDDDD2357
  30. #define COLOR_MEDIUMBLUE 0x63AFF00A
  31. #define COLOR_NEUTRAL 0xABCDEF97
  32. #define COLOR_BLACK 0x00000000
  33. #define COLOR_NEUTRALGREEN 0x81CFAB00
  34. #define COLOR_DARKGREEN 0x12900BBF
  35. #define COLOR_LIGHTGREEN 0x24FF0AB9
  36. #define COLOR_DARKBLUE 0x300FFAAB
  37. #define COLOR_BLUEGREEN 0x46BBAA00
  38. #define COLOR_PINK 0xFF66FFAA
  39. #define COLOR_LIGHTBLUE 0x33CCFFAA
  40. #define COLOR_DARKRED 0x660000AA
  41. #define COLOR_ORANGE 0xFF9900AA
  42. #define COLOR_PURPLE 0x800080AA
  43. #define COLOR_GRAD1 0xB4B5B7FF
  44. #define COLOR_GRAD2 0xBFC0C2FF
  45. #define COLOR_RED1 0xFF0000AA
  46. #define COLOR_GREY 0xAFAFAFAA
  47. #define COLOR_GREEN 0x33AA33AA
  48. #define COLOR_RED 0xAA3333AA
  49. #define COLOR_YELLOW 0xFFFF00AA
  50. #define COLOR_WHITE 0xFFFFFFAA
  51. #define COLOR_BROWN 0x993300AA
  52. #define COLOR_CYAN 0x99FFFFAA
  53. #define COLOR_TAN 0xFFFFCCAA
  54. #define COLOR_PINK 0xFF66FFAA
  55. #define COLOR_KHAKI 0x999900AA
  56. #define COLOR_LIME 0x99FF00AA
  57. #define COLOR_SYSTEM 0xEFEFF7AA
  58. #define COLOR_GRAD2 0xBFC0C2FF
  59. #define COLOR_GRAD4 0xD8D8D8FF
  60. #define COLOR_GRAD6 0xF0F0F0FF
  61. #define COLOR_GRAD2 0xBFC0C2FF
  62. #define COLOR_GRAD3 0xCBCCCEFF
  63. #define COLOR_GRAD5 0xE3E3E3FF
  64. #define COLOR_GRAD1 0xB4B5B7FF
  65. //=======================[End of Colors]======================
  66.  
  67. #define DIALOG_WEAPONS 1337
  68.  
  69. public OnFilterScriptInit()
  70. {
  71.     print("\n--------------------------------------");
  72.     print(" Weapons FS by Private200");
  73.     print("--------------------------------------\n");
  74.     return 1;
  75. }
  76.  
  77. public OnFilterScriptExit()
  78. {
  79.     return 1;
  80. }
  81. CMD:weapons(playerid, cmdtext[])
  82. {
  83.     ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "What type of weapon do you want?", "Melee Weapons \nPistols\nShotguns\nSub-Machine Guns\nRifles\nJetpack\nCamera\nMinigun", "Search", "Cancel");
  84.     return 1;
  85. }
  86.  
  87. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  88. {
  89.     if(dialogid == DIALOG_WEAPONS)
  90.     {
  91.         if(response)
  92.         {
  93.             if(listitem == 0)
  94.             {
  95.                 ShowPlayerDialog(playerid, DIALOG_WEAPONS+1, DIALOG_STYLE_LIST, "Chose your melee weapon:", "Brass Knuckles \nGolf Club\nKnife\nBaseball bat\nChainsaw", "Get", "Cancel");
  96.             }
  97.             if(listitem == 1)
  98.             {
  99.                 ShowPlayerDialog(playerid, DIALOG_WEAPONS+2, DIALOG_STYLE_LIST, "Chose your pistol:", "9MM \nSilenced 9mm\nDesert Eagle", "Get", "Cancel");
  100.             }
  101.             if(listitem == 2)    // The third item listed
  102.             {
  103.                 ShowPlayerDialog(playerid, DIALOG_WEAPONS+3, DIALOG_STYLE_LIST, "Chose your pistol:", "Shotgun \nSawnoff Shotgun\nCombat Shotgun", "Get", "Cancel");
  104.             }
  105.             if(listitem == 3)    //The third item listed
  106.             {
  107.                 ShowPlayerDialog(playerid, DIALOG_WEAPONS+4, DIALOG_STYLE_LIST, "Chose your pistol:", "Micro UZI \nMP5\nAK-47\nM4\nTec-9", "Get", "Cancel");
  108.             }
  109.             if(listitem == 4) //The fourth item listed
  110.             {
  111.                 ShowPlayerDialog(playerid, DIALOG_WEAPONS+5, DIALOG_STYLE_LIST, "Chose your pistol:", "Country Rifle \nSniper Rifle", "Get", "Cancel");
  112.             }
  113.             if(listitem == 5) //The fourth item listed
  114.             {
  115.                 SetPlayerSpecialAction(playerid,2);
  116.             }
  117.             if(listitem == 6) //The fourth item listed
  118.             {
  119.                 GivePlayerWeapon(playerid, 43, 50000);
  120.             }
  121.             if(listitem == 7) //The fourth item listed
  122.             {
  123.                 GivePlayerWeapon(playerid, 38, 50000);
  124.             }
  125.         }
  126.         return 1;
  127.     }
  128.  
  129.     if(dialogid == DIALOG_WEAPONS+1)
  130.     {
  131.         if(response)
  132.         {
  133.             if(listitem == 0)
  134.             {
  135.                 GivePlayerWeapon(playerid, 1, 5);
  136.             }
  137.             if(listitem == 1)
  138.             {
  139.                 GivePlayerWeapon(playerid, 2, 2);
  140.             }
  141.             if(listitem == 2)
  142.             {
  143.                 GivePlayerWeapon(playerid, 4, 2);
  144.             }
  145.             if(listitem == 3)
  146.             {
  147.                 GivePlayerWeapon(playerid, 5, 2);
  148.             }
  149.             if(listitem == 4)
  150.             {
  151.                 GivePlayerWeapon(playerid, 9, 2);
  152.             }
  153.         }
  154.         return 1;
  155.     }
  156.     if(dialogid == DIALOG_WEAPONS+2)
  157.     {
  158.         if(response)
  159.         {
  160.             if(listitem == 0)
  161.             {
  162.                 GivePlayerWeapon(playerid, 22, 50000);
  163.             }
  164.             if(listitem == 1)
  165.             {
  166.                 GivePlayerWeapon(playerid, 23, 50000);
  167.             }
  168.             if(listitem == 2)
  169.             {
  170.                 GivePlayerWeapon(playerid, 24, 50000);
  171.             }
  172.         }
  173.         return 1;
  174.     }
  175.     if(dialogid == DIALOG_WEAPONS+3)
  176.     {
  177.         if(response)
  178.         {
  179.             if(listitem == 0)
  180.             {
  181.                 GivePlayerWeapon(playerid, 25, 50000);
  182.             }
  183.             if(listitem == 1)
  184.             {
  185.                 GivePlayerWeapon(playerid, 26, 50000);
  186.             }
  187.             if(listitem == 2)
  188.             {
  189.                 GivePlayerWeapon(playerid, 27, 50000);
  190.             }
  191.         }
  192.         return 1;
  193.     }
  194.     if(dialogid == DIALOG_WEAPONS+4)
  195.     {
  196.         if(response)
  197.         {
  198.             if(listitem == 0)
  199.             {
  200.                 GivePlayerWeapon(playerid, 28, 50000);
  201.             }
  202.             if(listitem == 1)
  203.             {
  204.                 GivePlayerWeapon(playerid, 29, 50000);
  205.             }
  206.             if(listitem == 2)
  207.             {
  208.                 GivePlayerWeapon(playerid, 30, 50000);
  209.             }
  210.             if(listitem == 3)
  211.             {
  212.                 GivePlayerWeapon(playerid, 31, 50000);
  213.             }
  214.             if(listitem == 4)
  215.             {
  216.                 GivePlayerWeapon(playerid, 32, 50000);
  217.             }
  218.         }
  219.         return 1;
  220.     }
  221.     if(dialogid == DIALOG_WEAPONS+5)
  222.     {
  223.         if(response)
  224.         {
  225.             if(listitem == 0)
  226.             {
  227.                 GivePlayerWeapon(playerid, 33, 50000);
  228.             }
  229.             if(listitem == 1)
  230.             {
  231.                 GivePlayerWeapon(playerid, 34, 50000);
  232.             }
  233.         }
  234.         return 1;
  235.     }
  236.  
  237.     return 0;
  238.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement