Guest User

FeLiPe

a guest
Jul 13th, 2010
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.96 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3.  
  4. #include <a_samp>
  5. #include <a_npc>
  6. #include <core>
  7. #include <float>
  8. #include <string>
  9. #include <file>
  10. #include <time>
  11. #include <datagram>
  12. #include <a_players>
  13. #include <a_vehicles>
  14. #include <a_objects>
  15. #include <a_sampdb>
  16. #include <Sinclude>
  17. #include <properties 1.6.8>
  18. #include <dutils>
  19. #include <dudb>
  20.  
  21.  
  22. new weapons;
  23.  
  24.  
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. weapons = CreatePickup(1318, 23, 1916.51, 1381.41, 9.88);
  29. return 1;
  30. }
  31.  
  32. public OnPlayerPickUpPickup(playerid, pickupid)
  33. {
  34.    if(pickupid == weapons)
  35.      {
  36.      ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a weapon", "Grenade \n Tear gas \n Molotovs \n Pistol \n Silenced pistol \n Desert Eagle \n Shotgun \n Sawn off shotgun \n Combat Shotgun\n Micro uzi \n Mp5 \n Ak47\n m4 \n tec9 \n Rifle \n Sniper \n Rocket launcher + target \n Common rocket launcher \n Flame Thrower\n Minigun", "Buy", "Cancel");
  37.      return 1;
  38.      }
  39. return 1;
  40. }
  41.  
  42. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  43. {
  44.      if(dialogid == 2)
  45.     {
  46.         if(response)
  47.         {
  48.             if(GetPlayerMoney(playerid) >= 10000) {
  49.             if(listitem == 0)
  50.             {
  51.             GivePlayerWeapon(playerid, 16, 9999);
  52.             }
  53.             if(listitem == 1)
  54.             {
  55.             GivePlayerWeapon(playerid, 17, 9999);
  56.             }
  57.             if(listitem == 2)
  58.             {
  59.             GivePlayerWeapon(playerid, 18, 9999);
  60.             return 1;
  61.             }
  62.             if(listitem == 3)
  63.             {
  64.             GivePlayerWeapon(playerid, 22, 9999);
  65.             return 1;
  66.             }
  67.             if(listitem == 4)
  68.             {
  69.             GivePlayerWeapon(playerid, 23, 9999);
  70.             return 1;
  71.             }
  72.             if(listitem == 5)
  73.             {
  74.             GivePlayerWeapon(playerid, 24, 9999);
  75.             return 1;
  76.             }
  77.                         if(listitem == 6)
  78.             {
  79.             GivePlayerWeapon(playerid, 25, 9999);
  80.             return 1;
  81.             }
  82.             if(listitem == 7)
  83.             {
  84.             GivePlayerWeapon(playerid, 26, 9999);
  85.             return 1;
  86.             }
  87.             if(listitem == 8)
  88.             {
  89.             GivePlayerWeapon(playerid, 27, 9999);
  90.             return 1;
  91.             }
  92.             if(listitem == 9)
  93.             {
  94.             GivePlayerWeapon(playerid, 28, 9999);
  95.             return 1;
  96.             }
  97.             if(listitem == 10)
  98.             {
  99.             GivePlayerWeapon(playerid, 29, 9999);
  100.             return 1;
  101.             }
  102.             if(listitem == 11)
  103.             {
  104.             GivePlayerWeapon(playerid, 30, 9999);
  105.             return 1;
  106.             }
  107.             if(listitem == 12)
  108.             {
  109.             GivePlayerWeapon(playerid, 31, 9999);
  110.             return 1;
  111.             }
  112.             if(listitem == 13)
  113.             {
  114.             GivePlayerWeapon(playerid, 32, 9999);
  115.             return 1;
  116.             }
  117.             if(listitem == 14)
  118.             {
  119.             GivePlayerWeapon(playerid, 33, 9999);
  120.             return 1;
  121.             }
  122.             if(listitem == 15)
  123.             {
  124.             GivePlayerWeapon(playerid, 34, 9999);
  125.             return 1;
  126.             }
  127.             if(listitem == 16)
  128.             {
  129.             GivePlayerWeapon(playerid, 35, 9999);
  130.             return 1;
  131.             }
  132.             if(listitem == 17)
  133.             {
  134.             GivePlayerWeapon(playerid, 36, 9999);
  135.             return 1;
  136.             }
  137.             if(listitem == 18)
  138.             {
  139.             GivePlayerWeapon(playerid, 37, 9999);
  140.             return 1;
  141.             }
  142.             if(listitem == 19)
  143.             {
  144.             GivePlayerWeapon(playerid, 38, 9999);
  145.             return 1;
  146.             }
  147.             }
  148.  
  149.  
  150.         }
  151.     }
  152. return 1;
  153. }
  154. // feito por FeLiPe , So por fun mesmo x=
Advertisement
Add Comment
Please, Sign In to add comment