LeomarMM

Skydive

Apr 30th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. //SkyDive Filterscript maden by Jay_McReary
  2. //To compile this file, u need zcmd(include).
  3. #define FILTERSCRIPT
  4. #include <a_samp>
  5. #include <streamer>
  6. #include <zcmd>
  7. new objects[28];
  8. #define sky_color 0x7F00F500
  9. public OnFilterScriptInit()
  10. {
  11. print("\nSkydive FS by TreePuncher Loaded\n");
  12. //Cargo Plane Skydive Area Objects :>
  13. objects[0] = CreateDynamicObject(3068, 617.07, -1424.73, 2744.45, 0.00, 0.00, 89.18);//Will Add Stowaway Cargo Plane First Part
  14. objects[1] = CreateDynamicObject(3069, 605.70, -1424.47, 2741.75, 0.00, 0.00, 269.01);//Will Add Stowaway Cargo Plane Second Part
  15. //Pro Skydive Items(hard skydive)
  16. objects[2] = CreateDynamicObject(18844, -1967.68, 2680.40, 1222.93, 0.00, 0.00, 0.00);
  17. objects[3] = CreateDynamicObject(18827, -1967.61, 2680.40, 1124.53, 90.00, 0.00, 0.00);
  18. objects[4] = CreateDynamicObject(18833, -1961.54, 2679.93, 1051.68, 0.00, -25.00, 0.00);
  19. objects[5] = CreateDynamicObject(18835, -1941.70, 2678.50, 1030.66, 0.00, 0.00, 0.00);
  20. objects[6] = CreateDynamicObject(18827, -1941.55, 2678.41, 971.04, 90.00, 0.00, 0.00);
  21. objects[7] = CreateDynamicObject(18811, -1940.25, 2677.18, 897.05, 0.00, 0.00, 0.00);
  22. objects[8] = CreateDynamicObject(18809, -1939.61, 2676.74, 850.22, 0.00, 0.00, 0.00);
  23. objects[9] = CreateDynamicObject(18809, -1949.56, 2676.62, 755.71, 0.00, 8.00, 0.00);
  24. objects[10] = CreateDynamicObject(18809, -1943.05, 2676.65, 801.94, 0.00, 8.00, 0.00);
  25. objects[11] = CreateDynamicObject(18809, -1952.90, 2676.39, 709.00, 0.00, 0.00, 0.00);
  26. //Tube Skydive
  27. objects[12] = CreateDynamicObject(18843, 282.43384, 1662.86438, 1899.99243, 0.00000, 0.00000, 0.00000);
  28. objects[13] = CreateDynamicObject(18821, 288.70273, 1662.89099, 1827.72400, 0.00000, -21.00000, 0.00000);
  29. objects[14] = CreateDynamicObject(18810, 301.16794, 1662.90002, 1778.06506, 0.00000, 0.00000, 0.00000);
  30. objects[15] = CreateDynamicObject(18827, 301.21747, 1662.89099, 1704.60046, 90.00000, 0.00000, 0.00000);
  31. objects[16] = CreateDynamicObject(8417, 302.60461, 1640.69958, 1654.63928, 0.00000, 180.00000, 0.00000);
  32. objects[17] = CreateDynamicObject(8417, 303.82800, 1685.16943, 1654.63928, 0.00000, 180.00000, 0.00000);
  33. objects[18] = CreateDynamicObject(18827, 301.21747, 1662.89099, 1608.36353, 90.00000, 0.00000, 0.00000);
  34. objects[19] = CreateDynamicObject(18844, 301.50543, 1662.88879, 1512.10168, 0.00000, 0.00000, 0.00000);
  35. objects[20] = CreateDynamicObject(18842, 301.55093, 1662.89441, 1442.25928, 0.00000, 0.00000, 0.00000);
  36. objects[21] = CreateDynamicObject(18772, 301.47662, 1662.51294, 1299.13745, 90.00000, 0.00000, 0.00000);
  37. objects[22] = CreateDynamicObject(18772, 301.47662, 1662.51294, 1051.58997, 90.00000, 0.00000, 0.00000);
  38. objects[23] = CreateDynamicObject(18982, 301.40997, 1662.74463, 880.37231, 90.00000, 0.00000, 0.00000);
  39. objects[24] = CreateDynamicObject(18983, 301.38083, 1662.71411, 781.23230, 90.00000, 0.00000, 0.00000);
  40. objects[25] = CreateDynamicObject(18984, 301.29410, 1662.65771, 681.61920, 90.00000, 0.00000, 0.00000);
  41. objects[26] = CreateDynamicObject(18772, 301.28113, 1662.70911, 536.82147, 90.00000, 0.00000, 90.00000);
  42. objects[27] = CreateDynamicObject(18782, 278.29822, 1655.31042, 1882.07324, 0.00000, 0.00000, 0.00000);
  43. return 1;
  44. }
  45. CMD:cs(playerid, params[])
  46. {
  47. SetPlayerPos(playerid, 620.01,-1424.58,2745.69);
  48. SendClientMessage(playerid, sky_color, "Welcome to Cargo Skydive!");
  49. GivePlayerWeapon(playerid, 46, 1);
  50. new pname[MAX_PLAYER_NAME], string[50 + MAX_PLAYER_NAME];
  51. GetPlayerName(playerid, pname, sizeof(pname));
  52. format(string, sizeof(string), "%s has joined the Cargo Skydive! Join him at /cs", pname);
  53. SendClientMessageToAll(sky_color, string);
  54. return 1;
  55. }
  56. CMD:prs(playerid, params[])
  57. {
  58. SetPlayerPos(playerid,-1956.5273,2685.6877,1177.5302);
  59. SendClientMessage(playerid, sky_color, "Welcome to Pro Skydive!");
  60. GivePlayerWeapon(playerid, 46, 1);
  61. new pname[MAX_PLAYER_NAME], string[50 + MAX_PLAYER_NAME];
  62. GetPlayerName(playerid, pname, sizeof(pname));
  63. format(string, sizeof(string), "%s has joined the Pro Skydive! Join him at /prs", pname);
  64. SendClientMessageToAll(sky_color, string);
  65. return 1;
  66. }
  67. CMD:tsd(playerid, params[])
  68. {
  69. SetPlayerPos(playerid, 276.9364, 1653.6902, 1883.5302);
  70. SetPlayerFacingAngle(playerid, 323.5822);
  71. SendClientMessage(playerid, sky_color, "Welcome to Tube Skydive!");
  72. GivePlayerWeapon(playerid, 46, 1);
  73. new pname[MAX_PLAYER_NAME], string[50 + MAX_PLAYER_NAME];
  74. GetPlayerName(playerid, pname, sizeof(pname));
  75. format(string, sizeof(string), "%s has joined the Tube Skydive! Join him at /tsd", pname);
  76. SendClientMessageToAll(sky_color, string);
  77. return 1;
  78. }
  79. public OnFilterScriptExit()
  80. {
  81. new a=0;
  82. while(a != 27)
  83. {
  84. DestroyDynamicObject(objects[a]);
  85. a++;
  86. }
  87. return 1;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment