Guest User

Mike

a guest
Aug 5th, 2008
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.10 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_GREEN 0x33AA33AA
  4.  
  5. //Airport pickups
  6. new airport1para;
  7. new airport2para;
  8. new airport3para;
  9. new airport4para;
  10.  
  11. new jump;
  12.  
  13. //Parachutes
  14. new andrompara1;
  15. new andrompara2;
  16. new andrompara3;
  17. new andrompara4;
  18. new andrompara5;
  19. new andrompara6;
  20. new andrompara7;
  21. new andrompara8;
  22. new andrompara9;
  23. new andrompara10;
  24.  
  25. public OnFilterScriptInit()
  26. {
  27.     print("\n--------------------------------------");
  28.     print("Mikes Andromada parachuting");
  29.     print("--------------------------------------\n");
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerSpawn(playerid)
  34. {
  35.     SetPlayerMapIcon(playerid, 1, 428.4151,2546.8318,16.2382, 5, 0 );
  36.     SetPlayerMapIcon(playerid, 2, -1421.6687,-287.7242,14.1484, 5, 0 );
  37.     SetPlayerMapIcon(playerid, 3, 1673.9154,1447.9954,10.7841, 5, 0 );
  38.     SetPlayerMapIcon(playerid, 4, 1685.4576,-2334.1506,13.5469, 5, 0 );
  39.     SetPlayerMapIcon(playerid, 5, -2675.9092,-276.2125,7.1749, 38, 0 );
  40.    
  41.      //Androm interior pickups
  42.     andrompara1 = CreatePickup(371 , 2, 312.1582,991.3581,1957.4447);
  43.     andrompara2 = CreatePickup(371 , 2, 319.7898,988.2772,1958.1556);
  44.     andrompara3 = CreatePickup(371 , 2, 319.5330,983.4193,1959.2767);
  45.     andrompara4 = CreatePickup(371 , 2, 311.5391,983.5497,1959.2466);
  46.     andrompara5 = CreatePickup(371 , 2, 318.8687,998.9326,1955.6967);
  47.     andrompara6 = CreatePickup(371 , 2, 311.8329,1004.9678,1954.3040);
  48.     andrompara7 = CreatePickup(371 , 2, 312.6456,1020.6475,1950.6855);
  49.     andrompara8 = CreatePickup(371 , 2, 319.3426,1021.0186,1950.6000);
  50.     andrompara9 = CreatePickup(371 , 2, 311.9515,1024.5446,1949.7863);
  51.     andrompara10 = CreatePickup(371 , 2, 319.7364,1024.7739,1949.7333);
  52.     airport1para = CreatePickup(1273  , 23, 1685.4576,-2334.1506,13.5469);
  53.     airport2para = CreatePickup(1273  , 23, 1673.9154,1447.9954,10.7841);
  54.     airport3para = CreatePickup(1273  , 23, -1421.6687,-287.7242,14.1484);
  55.     airport4para = CreatePickup(1273  , 23, 428.4151,2546.8318,16.2382);
  56.     jump = CreatePickup(1273  , 2, 315.6004,1029.4099,1948.1918);
  57.     return 1;
  58.     }
  59.  
  60. public OnPlayerPickUpPickup(playerid, pickupid)
  61. {
  62.         if (pickupid == jump)
  63.     {
  64.         GameTextForPlayer(playerid,"~W~dont forget to ~Y~open ~W~your ~G~parachute~W~!",6000,5);
  65.         PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
  66.         new string[256];
  67.         new name[128];
  68.         GetPlayerName(playerid,name,128);
  69.         format(string, sizeof(string), "Whats that in the sky? Is is a bird? Is it a plane? No its %s jumping from a plane hitting birds on the way down!",name);
  70.         SendClientMessageToAll(COLOR_GREEN, string);
  71.         SetPlayerPos(playerid,311.0149,1085.0867,2043.0105);
  72.         SetPlayerInterior(playerid, 0);
  73.     }
  74.         if (pickupid == airport1para)
  75.     {
  76.         GameTextForPlayer(playerid,"~W~teleported to the ~G~andromada!~N~~W~go into the ~R~green house ~W~to ~B~jump~W~!~N~oh, and get a ~G~parachute~W~!",6000,5);
  77.         SetPlayerInterior(playerid, 9);
  78.         SetPlayerPos(playerid,316.0568,985.7001,1958.7504);
  79.         SetPlayerFacingAngle(playerid, 1.9321);
  80.     }
  81.         if (pickupid == airport2para)
  82.     {
  83.         GameTextForPlayer(playerid,"~W~teleported to the ~G~andromada!~N~~W~go into the ~R~green house ~W~to ~B~jump~W~!~N~oh, and get a ~G~parachute~W~!",6000,5);
  84.         SetPlayerInterior(playerid, 9);
  85.         SetPlayerPos(playerid,316.0568,985.7001,1958.7504);
  86.         SetPlayerFacingAngle(playerid, 1.9321);
  87.     }
  88.         if (pickupid == airport3para)
  89.     {
  90.         GameTextForPlayer(playerid,"~W~teleported to the ~G~andromada!~N~~W~go into the ~R~green house ~W~to ~B~jump~W~!~N~oh, and get a ~G~parachute~W~!",6000,5);
  91.         SetPlayerInterior(playerid, 9);
  92.         SetPlayerPos(playerid,316.0568,985.7001,1958.7504);
  93.         SetPlayerFacingAngle(playerid, 1.9321);
  94.     }
  95.         if (pickupid == airport4para)
  96.     {
  97.         GameTextForPlayer(playerid,"~W~teleported to the ~G~andromada!~N~~W~go into the ~R~green house ~W~to ~B~jump~W~!~N~oh, and get a ~G~parachute~W~!",6000,5);
  98.         SetPlayerInterior(playerid, 9);
  99.         SetPlayerPos(playerid,316.0568,985.7001,1958.7504);
  100.         SetPlayerFacingAngle(playerid, 1.9321);
  101.     }
  102.         if (pickupid == andrompara1)
  103.     {
  104.         GivePlayerWeapon(playerid, 46, 1);
  105.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  106.     }
  107.         if (pickupid == andrompara2)
  108.     {
  109.         GivePlayerWeapon(playerid, 46, 1);
  110.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  111.     }
  112.         if (pickupid == andrompara3)
  113.     {
  114.         GivePlayerWeapon(playerid, 46, 1);
  115.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  116.     }
  117.         if (pickupid == andrompara4)
  118.     {
  119.         GivePlayerWeapon(playerid, 46, 1);
  120.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  121.     }
  122.         if (pickupid == andrompara5)
  123.     {
  124.         GivePlayerWeapon(playerid, 46, 1);
  125.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  126.     }
  127.         if (pickupid == andrompara6)
  128.     {
  129.         GivePlayerWeapon(playerid, 46, 1);
  130.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  131.     }
  132.         if (pickupid == andrompara7)
  133.     {
  134.         GivePlayerWeapon(playerid, 46, 1);
  135.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  136.     }
  137.         if (pickupid == andrompara8)
  138.     {
  139.         GivePlayerWeapon(playerid, 46, 1);
  140.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  141.     }
  142.         if (pickupid == andrompara9)
  143.     {
  144.         GivePlayerWeapon(playerid, 46, 1);
  145.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  146.     }
  147.         if (pickupid == andrompara10)
  148.     {
  149.         GivePlayerWeapon(playerid, 46, 1);
  150.         GameTextForPlayer(playerid,"~W~found a ~G~parachute~W~!~N~go to the ~R~green house ~W~to ~Y~jump~W~!",6000,5);
  151.     }
  152.     }
  153.  
Advertisement
Add Comment
Please, Sign In to add comment