Guest User

Untitled

a guest
Dec 24th, 2012
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_WHITE 0xFFFFFFFF
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n_____________________________________________");
  10. print("");
  11. print(" NOOBRE - Weapon System Loaded");
  12. print(");
  13. print("_____________________________________________\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. }
  27.  
  28. #endif
  29.  
  30. public OnPlayerCommandText(playerid, cmdtext[])
  31. {
  32. if (strcmp("/weaponshop", cmdtext, true, 10) == 0)
  33. {
  34. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "NOOBRE Weapon System","Pistol\nSilenced Pistol\nFake Pistol\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nUzi Machine Gun\nMP5\nTec-9\nAK-47\nM4\nArmour\nGrenade\nTearGas\nMolotov Cocktail\nSatchel Charge\nRocket Launcher","Select","Cancel");
  35. return 1;
  36. }
  37. return 0;
  38. }
  39.  
  40. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  41. {
  42. if (dialogid == 2 && response)
  43. {
  44. switch (listitem)
  45. {
  46. case 0:
  47. {
  48. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "NOOBRE Weapon System","Pistol\nSilenced Pistol\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nUzi Machine Gun\nMP5\nTec-9\nAK-47\nM4\nArmour\nGrenade\nTearGas\nMolotov Cocktail\nSatchel Charge\nRocket Launcher","Select","Cancel");
  49. }
  50. }
  51. }
  52. if (dialogid == 1 && response)
  53. {
  54. switch (listitem)
  55. {
  56. case 0:
  57. {
  58. GivePlayerWeapon(playerid, 22, 1000);
  59. }
  60. case 1:
  61. {
  62. GivePlayerWeapon(playerid, 23, 1000);
  63. }
  64. case 3:
  65. {
  66. GivePlayerWeapon(playerid, 0, 1000);
  67. }
  68. case 4:
  69. {
  70. GivePlayerWeapon(playerid, 24, 1000);
  71. }
  72. case 5:
  73. {
  74. GivePlayerWeapon(playerid, 25, 1000);
  75. }
  76. case 6:
  77. {
  78. GivePlayerWeapon(playerid, 26, 1000);
  79. }
  80. case 7:
  81. {
  82. GivePlayerWeapon(playerid, 27, 1000);
  83. }
  84. case 8:
  85. {
  86. GivePlayerWeapon(playerid, 28, 1000);
  87. }
  88. case 9:
  89. {
  90. GivePlayerWeapon(playerid, 29, 1000);
  91. }
  92. case 10:
  93. {
  94. GivePlayerWeapon(playerid, 32, 1000);
  95. }
  96. case 11:
  97. {
  98. GivePlayerWeapon(playerid, 30, 1000);
  99. }
  100. case 12:
  101. {
  102. GivePlayerWeapon(playerid, 31, 1000);
  103. }
  104. case 13:
  105. {
  106. SetPlayerArmour(playerid, 100);
  107. }
  108. case 14:
  109. {
  110. GivePlayerWeapon(playerid, 16, 25);
  111. }
  112. case 15:
  113. {
  114. GivePlayerWeapon(playerid, 17, 25);
  115. }
  116. case 16:
  117. {
  118. GivePlayerWeapon(playerid, 18, 25);
  119. }
  120. case 17:
  121. {
  122. GivePlayerWeapon(playerid, 39, 25);
  123. }
  124. case 18:
  125. {
  126. GivePlayerWeapon(playerid, 35, 50);
  127. }
  128. }
  129. }
  130. return 1;
  131. }
Advertisement
Add Comment
Please, Sign In to add comment