Guest User

Mike

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