Guest User

Dennis

a guest
Oct 2nd, 2009
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4. #if defined FILTERSCRIPT
  5.  
  6. new fsgate;
  7. new bsgate;
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.  
  12. //==============put your cars here, all for you===============CARS==============
  13.  
  14.  
  15.  
  16. //==============================================================================
  17.  
  18. //GATES
  19. //gate
  20. fsgate = CreateObject(980, -708.092529, 965.329712, 14.245029, 0.0000, 0.0000, 272.3375, 500);
  21. bsgate = CreateObject(980, -659.069275, 922.952515, 13.906204, 0.0000, 0.0000, 221.6307, 500);
  22.  
  23. //other objects
  24. CreateObject(8153, -687.353394, 945.943115, 14.572392, 1.7189, 0.0000, 179.5182, 500);
  25. CreateObject(987, -707.279724, 911.567688, 11.418621, 0.0000, 0.0000, 0.0000, 500);
  26. CreateObject(987, -695.192627, 911.382813, 11.244030, 0.0000, 0.0000, 0.0000, 500);
  27. CreateObject(987, -683.468140, 911.242432, 11.110306, 0.0000, 0.0000, 0.0000, 500);
  28. CreateObject(987, -671.547913, 911.204529, 11.132813, 0.0000, 0.0000, 42.9718, 500);
  29. CreateObject(987, -654.777222, 926.601685, 11.148870, 0.0000, 0.0000, 55.8634, 500);
  30. CreateObject(987, -648.148926, 936.211060, 11.128724, 0.0000, 0.0000, 103.1324, 500);
  31. CreateObject(987, -650.832703, 947.432434, 11.132813, 0.0000, 0.0000, 98.8352, 500);
  32. CreateObject(987, -652.667664, 958.935120, 11.132813, 0.0000, 0.0000, 120.3212, 500);
  33. CreateObject(987, -658.513184, 969.174927, 11.132813, 0.0000, 0.0000, 110.7633, 500);
  34. CreateObject(987, -661.664124, 977.280762, 11.132813, 0.0000, 0.0000, 149.4379, 500);
  35. CreateObject(3576, -671.886414, 933.030396, 12.625485, 0.0000, 0.0000, 0.0000, 500);
  36. CreateObject(3630, -678.565308, 930.262878, 12.625435, 0.0000, 0.0000, 222.4901, 500);
  37. CreateObject(3264, -747.137756, 734.902771, 17.221397, 0.0000, 0.0000, 17.1887, 500);
  38. CreateObject(3264, -759.304077, 735.438354, 17.219738, 0.0000, 0.0000, 278.3535, 500);
  39. CreateObject(3265, -750.895447, 745.734314, 17.291710, 0.0000, 0.0000, 25.7831, 500);
  40. CreateObject(3265, -592.670227, 1089.247437, 10.531189, 0.0000, 0.0000, 167.5902, 500);
  41. CreateObject(3264, -597.658936, 1099.371338, 10.512582, 0.0000, 0.0000, 103.1324, 500);
  42. CreateObject(1550, -685.606873, 960.494263, 11.526155, 0.0000, 0.0000, 0.0000, 500);
  43. CreateObject(910, -700.039429, 943.283569, 12.615533, 0.0000, 0.0000, 179.5182, 500);
  44. CreateObject(3794, -674.666260, 945.379578, 11.732214, 0.0000, 0.0000, 346.2490, 500);
  45. CreateObject(3797, -674.934692, 942.726563, 13.536524, 0.0000, 0.0000, 0.0000, 500);
  46. CreateObject(16644, -685.569763, 953.659790, 17.613535, 358.2811, 351.4056, 271.4780, 500);
  47. CreateObject(16782, -683.905823, 971.709900, 15.175919, 0.0000, 0.0000, 269.7591, 500);
  48. CreateObject(3393, -683.326782, 971.220154, 11.130594, 0.0000, 0.0000, 87.6625, 500);
  49. CreateObject(3788, -669.480347, 943.572998, 11.652171, 0.0000, 0.0000, 0.0000, 500);
  50. CreateObject(3789, -672.561646, 943.408936, 11.472484, 347.1084, 0.8594, 8.5944, 500);
  51. CreateObject(3788, -676.170715, 944.155396, 11.652172, 0.0000, 0.0000, 336.7952, 500);
  52. CreateObject(3786, -676.244324, 944.104126, 11.840304, 0.0000, 0.0000, 330.7792, 500);
  53. CreateObject(3795, -670.910645, 945.658630, 11.473818, 0.0000, 0.0000, 337.6546, 500);
  54. CreateObject(987, -708.324951, 959.553894, 11.231031, 0.0000, 0.0000, 265.4620, 500);
  55. CreateObject(987, -708.805176, 952.622009, 11.454308, 0.0000, 0.0000, 274.0563, 500);
  56. CreateObject(3279, -703.510193, 977.188416, 11.485794, 0.0000, 0.0000, 0.0000, 500);
  57. CreateObject(3279, -702.834656, 917.045959, 11.449213, 0.0000, 0.0000, 0.0000, 500);
  58. CreateObject(3279, -679.633301, 855.766052, 10.817993, 0.0000, 0.0000, 0.0000, 500);
  59. CreateObject(3279, -621.145508, 1039.937500, 10.520969, 0.0000, 0.0000, 128.9156, 500);
  60. CreateObject(3279, -732.684204, 938.880615, 9.168814, 0.0000, 297.2611, 278.3535, 500);
  61. CreateObject(2567, -673.627625, 961.249634, 13.060413, 0.0000, 0.0000, 0.0000, 500);
  62. CreateObject(3761, -679.417053, 960.978760, 13.131794, 0.0000, 0.0000, 269.7591, 500);
  63. CreateObject(925, -683.842773, 960.977783, 12.194717, 0.0000, 0.0000, 0.0000, 500);
  64. CreateObject(925, -683.853943, 960.923279, 14.227420, 0.0000, 0.0000, 0.0000, 500);
  65. CreateObject(964, -680.674805, 970.645813, 11.132813, 0.0000, 0.0000, 0.0000, 500);
  66. CreateObject(2004, -681.402039, 971.914063, 13.230916, 0.0000, 0.0000, 0.0000, 500);
  67. CreateObject(5422, -670.275574, 967.240234, 13.145180, 0.0000, 0.0000, 0.0000, 500);
  68. CreateObject(11327, -692.478821, 966.158386, 15.569205, 0.0000, 73.0521, 0.0000, 500);
  69. CreateObject(1671, -683.023682, 969.923462, 11.593027, 0.0000, 0.0000, 171.8874, 500);
  70. CreateObject(628, -692.005859, 970.558533, 13.219860, 0.0000, 0.0000, 0.0000, 500);
  71. CreateObject(2647, -681.153503, 970.727966, 12.255087, 0.0000, 0.0000, 0.0000, 500);
  72. CreateObject(2663, -680.944153, 970.417847, 12.353365, 0.0000, 0.0000, 0.0000, 500);
  73. CreateObject(3392, -687.057861, 971.299072, 11.171688, 0.0000, 0.0000, 85.9437, 500);
  74. CreateObject(3461, -688.123596, 931.497986, 11.082871, 0.0000, 0.0000, 0.0000, 500);
  75. CreateObject(1550, -685.290894, 960.904724, 11.513705, 0.0000, 0.0000, 0.0000, 500);
  76. CreateObject(1550, -685.950623, 960.500793, 11.492589, 0.0000, 30.9397, 343.6707, 500);
  77. CreateObject(16782, -686.277344, 971.688843, 15.167252, 0.0000, 0.0000, 270.6186, 500);
  78. CreateObject(3525, -708.628723, 959.418213, 14.978281, 0.0000, 0.0000, 271.4781, 500);
  79. CreateObject(3525, -708.522949, 971.401672, 15.927313, 0.0000, 0.0000, 268.8997, 500);
  80. CreateObject(2028, -683.864014, 935.683533, 14.041124, 0.0000, 0.0000, 269.7591, 500);
  81. CreateObject(1792, -683.227783, 935.842102, 14.530559, 0.0000, 0.0000, 268.0403, 500);
  82. CreateObject(1750, -683.060852, 972.189331, 13.395037, 0.0000, 0.0000, 0.0000, 500);
  83. CreateObject(1750, -686.092041, 971.914063, 13.414321, 0.0000, 0.0000, 0.0000, 500);
  84. CreateObject(1825, -690.961975, 936.734314, 12.610968, 0.0000, 0.0000, 0.0000, 500);
  85. CreateObject(2814, -691.094360, 936.548706, 13.487732, 0.0000, 0.0000, 198.5300, 500);
  86. CreateObject(2769, -691.065491, 936.887207, 13.502193, 0.0000, 0.0000, 0.0000, 500);
  87. return 1;
  88. }
  89.  
  90. public OnFilterScriptExit()
  91. {
  92. return 1;
  93. }
  94. //==============================================================================
  95. public OnPlayerCommandText(playerid, cmdtext[ ])
  96. //==================================Front gate==================================
  97. {
  98. if (strcmp("/fopen", cmdtext, true, 10) == 0)
  99. {
  100. fsgate = MoveObject(fsgate, -708.4445,951.8799,12.4685, 2.000000);
  101. return 1;
  102. }
  103. //close
  104. {
  105. if(strcmp(cmdtext,"/fclose", true) == 0)
  106. {
  107. fsgate = MoveObject(-708.092529, 965.329712, 14.245029, 2.000000);
  108. return 1;
  109. }
  110. }
  111. //==========================back gate===========================================
  112. {//open
  113. if (strcmp("/bopen", cmdtext, true, 10) == 0)
  114. {
  115. bsgate = MoveObject(-670.6251,912.6789,12.1273, 1.500000);
  116. return 1;
  117. }
  118. }
  119. //close
  120. {
  121. if(strcmp(cmdtext,"/bclose", true) == 0)
  122. {
  123. bsgate = MoveObject(-659.069275, 922.952515, 13.906204, 1.500000);
  124. return 1;
  125. }
  126. return 0;
  127. }
  128. }
  129. #endif
  130.  
Advertisement
Add Comment
Please, Sign In to add comment