Advertisement
Guest User

Back Bags

a guest
Dec 29th, 2014
4,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.92 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define DIALOG_WEAPLIST 3947
  3. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  4.  
  5. #define COLOR_GREY 0xAFAFAFAA
  6. #define COLOR_GREEN 0x33AA33AA
  7. #define COLOR_RED 0xAA3333AA
  8. #define COLOR_YELLOW 0xFFFF00AA
  9. #define COLOR_WHITE 0xFFFFFFAA
  10. #define COLOR_BLUE 0x0000BBAA
  11. #define COLOR_LIGHTBLUE 0x33CCFFAA
  12. #define COLOR_ORANGE 0xFF9900AA
  13. #define COLOR_RED 0xAA3333AA
  14. #define COLOR_LIME 0x10F441AA
  15. #define COLOR_MAGENTA 0xFF00FFFF
  16. #define COLOR_NAVY 0x000080AA
  17. #define COLOR_AQUA 0xF0F8FFAA
  18. #define COLOR_CRIMSON 0xDC143CAA
  19. #define COLOR_FLBLUE 0x6495EDAA
  20. #define COLOR_BISQUE 0xFFE4C4AA
  21. #define COLOR_BLACK 0x000000AA
  22. #define COLOR_CHARTREUSE 0x7FFF00AA
  23. #define COLOR_BROWN 0XA52A2AAA
  24. #define COLOR_CORAL 0xFF7F50AA
  25. #define COLOR_GOLD 0xB8860BAA
  26. #define COLOR_GREENYELLOW 0xADFF2FAA
  27. #define COLOR_INDIGO 0x4B00B0AA
  28. #define COLOR_IVORY 0xFFFF82AA
  29. #define COLOR_LAWNGREEN 0x7CFC00AA
  30. #define COLOR_SEAGREEN 0x20B2AAAA
  31. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  32. #define COLOR_MIDNIGHTBLUE 0X191970AA
  33. #define COLOR_MAROON 0x800000AA
  34. #define COLOR_OLIVE 0x808000AA
  35. #define COLOR_ORANGERED 0xFF4500AA
  36. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  37. #define COLOR_SPRINGGREEN 0x00FF7FAA
  38. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  39. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  40. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  41. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  42.  
  43. #include <a_samp>
  44.  
  45. #if defined FILTERSCRIPT
  46.  
  47. public OnFilterScriptInit()
  48. {
  49.     print("\n--------------------------------------");
  50.     print(" Weapon BackBag By George [ LOADED ]");
  51.     print("--------------------------------------\n");
  52.     return 1;
  53. }
  54.  
  55. public OnFilterScriptExit()
  56. {
  57.     return 1;
  58. }
  59.  
  60. #endif
  61.  
  62. public OnPlayerCommandText(playerid, cmdtext[])
  63. {
  64.     dcmd(weaplist, 8, cmdtext);
  65.     return 0;
  66. }
  67.  
  68. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  69. {
  70.     if(dialogid == DIALOG_WEAPLIST)
  71.     {
  72.         if(response)
  73.         {
  74.             if(listitem == 0)
  75.             {
  76.                 GivePlayerWeapon(playerid, 25, 1500);
  77.                 GivePlayerWeapon(playerid, 26, 1500);
  78.                 GivePlayerWeapon(playerid, 30, 1500);
  79.                 GivePlayerWeapon(playerid, 43, 1500);
  80.                 SetPlayerHealth(playerid, 100);
  81.                 SetPlayerArmour(playerid, 100);
  82.                 SendClientMessage(playerid, COLOR_BLUE, "You Loaded BackBag1 And Got : 1)Shotgun\n2)Sawnoff Shotgun\n3)AK-47\n4)Camera\n5)Health\n6)Armour");
  83.             }
  84.             if(listitem == 1)
  85.             {
  86.                 GivePlayerWeapon(playerid, 29, 1500);
  87.                 GivePlayerWeapon(playerid, 34, 1500);
  88.                 GivePlayerWeapon(playerid, 46, 1500);
  89.                 GivePlayerWeapon(playerid, 16, 1500);
  90.                 SetPlayerHealth(playerid, 100);
  91.                 SetPlayerArmour(playerid, 100);
  92.                 SendClientMessage(playerid, COLOR_BLUE, "You Loaded BackBag2 And Got : 1)MP5\n2)Sniper Rifle\n3)Parachute\n4)Grenade\n5)Health\n6)Armour");
  93.             }
  94.             if(listitem == 2)
  95.             {
  96.                 GivePlayerWeapon(playerid, 28, 1500);
  97.                 GivePlayerWeapon(playerid, 31, 1500);
  98.                 GivePlayerWeapon(playerid, 27, 1500);
  99.                 GivePlayerWeapon(playerid, 45, 1500);
  100.                 SetPlayerHealth(playerid, 100);
  101.                 SetPlayerArmour(playerid, 100);
  102.                 SendClientMessage(playerid, COLOR_BLUE, "You Loaded BackBag3 And Got : 1)Micro SMG/Uzi\n2)M4\n3)Combat Shotgun\n4)Thermal Goggles\n5)Health\n6)Armour");
  103.             }
  104.             if(listitem == 3)
  105.             {
  106.                 GivePlayerWeapon(playerid, 32, 1500);
  107.                 GivePlayerWeapon(playerid, 33, 1500);
  108.                 GivePlayerWeapon(playerid, 37, 1500);
  109.                 GivePlayerWeapon(playerid, 41, 1500);
  110.                 SetPlayerHealth(playerid, 100);
  111.                 SetPlayerArmour(playerid, 100);
  112.                 SendClientMessage(playerid, COLOR_BLUE, "You Loaded BackBag4 And Got : 1)Tec-9\n2)Country Rifle\n3)Flamethrower\n4)Spraycan\n5)Health\n6)Armour");
  113.             }
  114.             if(listitem == 4)
  115.             {
  116.                 GivePlayerWeapon(playerid, 18, 1500);
  117.                 GivePlayerWeapon(playerid, 22, 1500);
  118.                 GivePlayerWeapon(playerid, 35, 1500);
  119.                 GivePlayerWeapon(playerid, 44, 1500);
  120.                 SetPlayerHealth(playerid, 100);
  121.                 SetPlayerArmour(playerid, 100);
  122.                 SendClientMessage(playerid, COLOR_BLUE, "You Loaded BackBag5 And Got : 1)Molotov Cocktail\n2)9mm\n3)RPG\n4)Night Vis Goggles\n5)Health\n6)Armour");
  123.             }
  124.         }
  125.         return 1;
  126.     }
  127.  
  128.     return 0;
  129. }
  130.  
  131. dcmd_weaplist(playerid, params[])
  132. {
  133.     #pragma unused params
  134.     ShowPlayerDialog(playerid,DIALOG_WEAPLIST, DIALOG_STYLE_LIST, "Weaplist", "BackBag1\nBackBag2\nBackBag3\nBackBag4\nBackBag5", "Select", "Cancel");
  135.     return 1;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement