Guest User

Zollstationen San Andreas

a guest
Oct 16th, 2010
1,163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.08 KB | None | 0 0
  1. /*=========================================================================================================================*/
  2. /*===================================*ZOLL FILTERSCRIPT BY Casperr*====================================*/
  3. /*=====================================*CREDITS BY Casperr*=========================================*/
  4. //==========INCLUDES==========//
  5. #include <a_samp>
  6. //==========DEFINITION==========//
  7. #define COLOR_RED 0xAA3333AA
  8. #define COLOR_GREEN 0x33AA33AA
  9. #define FILTERSCRIPT
  10. #if defined FILTERSCRIPT
  11. #pragma tabsize 0
  12. //==========GATE CLOSE==========//
  13. forward GateCloseZoll1();
  14. forward GateCloseZoll2();
  15. forward GateCloseZoll3();
  16. forward GateCloseZoll4();
  17. forward GateCloseZoll5();
  18. forward GateCloseZoll6();
  19. forward GateCloseZoll7();
  20. forward GateCloseZoll8();
  21. forward GateCloseZoll9();
  22. forward GateCloseZoll10();
  23. forward GateCloseZoll11();
  24. forward GateCloseZoll12();
  25. forward GateCloseZoll13();
  26. forward GateCloseZoll14();
  27. forward GateCloseZoll15();
  28. forward GateCloseZoll16();
  29. forward GateCloseZoll17();
  30. forward GateCloseZoll18();
  31. //==========CREATE GATES==========//
  32. new zoll1;
  33. new zoll2;
  34. new zoll3;
  35. new zoll4;
  36. new zoll5;
  37. new zoll6;
  38. new zoll7;
  39. new zoll8;
  40. new zoll9;
  41. new zoll10;
  42. new zoll11;
  43. new zoll12;
  44. new zoll13;
  45. new zoll14;
  46. new zoll15;
  47. new zoll16;
  48. new zoll17;
  49. new zoll18;
  50. //==========OBJECTE==========//
  51. public OnFilterScriptInit()
  52. {
  53. print("\n========================================");
  54. print("=======|San Andreas Zollstationen|========");
  55. print("========================================\n");
  56. //=========|Zoll -1-|LS-LV ZOLL|=========//
  57. CreateObject(9623, 1737.2454833984, 516.5400390625, 30.134433746338, 358, 0, 339.99993896484);//Zoll -1-; Zoellnerhaeuschen
  58. CreateObject(978, 1721.7523193359, 517.51257324219, 28.184286117554, 0, 0, 162);//Zoll -1-; Leitplanke [Funkioniert nicht!]
  59. CreateObject(978, 1751.9862060547, 514.90771484375, 28.184286117554, 0, 0, 158);//Zoll -1-; Leitplanke [Funkioniert nicht!]
  60. //=========|Zoll -2-|LS-LV Zoll 2|=========//
  61. CreateObject(9623, 423.8703918457, 611.39068603516, 20.716243743896, 0, 0, 34);//Zoll -2-; Zoellnerhaeuschen
  62. CreateObject(978, 425.13809204102, 617.34497070313, 18.786190032959, 0, 0, 34);//Zoll -2-; Leitplanke
  63. CreateObject(978, 422.11804199219, 604.73651123047, 18.705780029297, 0, 0, 34);//Zoll -2-; Leitplanke
  64. //=========|Zoll -3-|LS_LV ZOLL|=========//
  65. CreateObject(9623, -135.30130004883, 490.74694824219, 12.547456741333, 358, 0, 346);//Zoll -3-; Zoellnerhaeuschen
  66. //=========|Zoll -4-|LS-LV MATS|=========//
  67. CreateObject(9623, -1315.5277099609, 914.72613525391, 47.968280792236, 0, 0, 316);//Zoll -4-; Zoellnerhaeuschen
  68. CreateObject(978, -1302.1881103516, 907.72833251953, 45.923923492432, 0, 0, 316);//Zoll -4-; Leitplanke
  69. CreateObject(978, -1328.8762207031, 921.77722167969, 46.106246948242, 0, 0, 135);//Zoll -4-; Leitplanke
  70. //=========|Zoll -5-|SF-BAYSIDE ZOLL|=========//
  71. CreateObject(9623, -2681.3041992188, 1695.5458984375, 69.61693572998, 0, 0, 0);//Zoll -5-; Zoellnerhaeuschen
  72. CreateObject(978, -2695.3833007813, 1691.1973876953, 67.561210632324, 0, 0, 180);//Zoll -5-; Leitplanke
  73. CreateObject(978, -2667.6569824219, 1699.6290283203, 67.561210632324, 0, 0, 0);//Zoll -5-
  74. //=========|Zoll -6-|LS-SF ZOLL|=========//
  75. CreateObject(9623, 49.054714202881, -1531.8104248047, 6.977737903595, 0, 0, 262);//Zoll -6-; Zoellnerhaeuschen
  76. CreateObject(978, 61.929790496826, -1543.6506347656, 4.9096546173096, 0, 0, 324);//Zoll -6-; Leitplanke
  77. CreateObject(978, 34.348987579346, -1540.0325927734, 4.8398232460022, 358.00122070313, 357.99877929688, 19.93017578125);//Zoll -6-; Leitplanke
  78. CreateObject(978, 37.475379943848, -1519.7397460938, 4.7549419403076, 0, 2, 145.99993896484);//Zoll -6-; Leitplanke
  79. //=========|Zoll -7-|LS-MECHABERG|=========//
  80. CreateObject(9623, -69.913452148438, -882.02740478516, 16.994424819946, 356, 0, 334);//Zoll -7-; Zoellnerhaeuschen
  81. //=========|Zoll -8-|TRUCKDEPOT-SF|=========//
  82. CreateObject(9623, -973.99273681641, -373.13186645508, 38.064125061035, 0, 0, 348);//Zoll -8-; Zoellnerhaeuschen
  83. //=========|Zoll -9-|LS-SF TUNNEL|=========//
  84. CreateObject(9623, -1109.1690673828, -892.03576660156, 76.881881713867, 352, 0, 43.899993896484);//Zoll -9-; Zoellnerhaeuschen
  85. //==========LS-LV|ZOLL-BAUSTELLE|==========//
  86. CreateObject(978, 1721.4477539063, 512.34051513672, 28.672235488892, 0, 0, 210);
  87. CreateObject(978, 1716.2862548828, 509.34552001953, 28.727752685547, 0, 0, 210);
  88. CreateObject(978, 1748.4547119141, 505.189453125, 28.877374649048, 0, 0, 134);
  89. CreateObject(978, 1726.9521484375, 527.359375, 27.667390823364, 0, 358, 297.99868774414);
  90. CreateObject(978, 166.06434631348, 94.564254760742, 466.17083740234, 0, 0, 0);
  91. CreateObject(978, 1724.5694580078, 531.74298095703, 27.490461349487, 0, 358, 298);
  92. CreateObject(978, 1752.80859375, 518.14935302734, 27.946636199951, 358, 0, 12);
  93. CreateObject(3091, 1728.2987060547, 531.5849609375, 27.296319961548, 0, 0, 136);
  94. CreateObject(3091, 1746.7945556641, 503.65274047852, 28.454412460327, 0, 0, 336);
  95. //==========|ZOLL EXTRA OBJECTS|==========//
  96. CreateObject(1238, -2672.1328125, 1685.7062988281, 66.533752441406, 0, 0, 0);
  97. CreateObject(1238, -2663.7006835938, 1679.0234375, 66.789077758789, 0, 0, 0);
  98. CreateObject(1238, -2690.451171875, 1706.2822265625, 66.921783447266, 0, 0, 0);
  99. CreateObject(1238, -2699.0756835938, 1713.7416992188, 67.450988769531, 0, 0, 0);
  100. CreateObject(978, 64.937866210938, -1523.4682617188, 4.7598505020142, 0, 0, 200);
  101. CreateObject(13562, -70.296875, -881.96472167969, 20.804996490479, 0, 0, 0);
  102. //==========GATES DEFINITION==========//
  103. zoll1 = CreateObject(978, 1742.7644042969, 518.56384277344, 28.184286117554, 0, 0, 160);//Zoll -1-
  104. zoll2 = CreateObject(978, 1730.6453857422, 514.44909667969, 28.184286117554, 0, 0, 160);//Zoll -1-
  105. zoll3 = CreateObject(978, 425.13809204102, 617.34497070313, 18.786190032959, 0, 0, 34);//Zoll -2-
  106. zoll4 = CreateObject(978, 422.11804199219, 604.73651123047, 18.705780029297, 0, 0, 34);//Zoll -2-
  107. zoll5 = CreateObject(978, -130.58474731445, 493.63586425781, 11.407550811768, 0, 0, 346);//Zoll -3-
  108. zoll6 = CreateObject(978, -141.03131103516, 487.94653320313, 11.407550811768, 0, 0, 348);//Zoll -3-
  109. zoll7 = CreateObject(978, -1322.2332763672, 915.22381591797, 46.101196289063, 0, 0, 137);//Zoll -4-
  110. zoll8 = CreateObject(978, -1309.3737792969, 914.82116699219, 45.923923492432, 0, 0, 316);//Zoll -4-
  111. zoll9 = CreateObject(978, -2686.177734375, 1691.2561035156, 67.561210632324, 0, 0, 180);//Zoll -5-
  112. zoll10 = CreateObject(978, -2677.791015625, 1699.6838378906, 67.561210632324, 0, 0, 0);//Zoll -5-
  113. zoll11 = CreateObject(978, 45.630146026611, -1526.5622558594, 5.0016055107117, 0, 0, 82);//Zoll -6-
  114. zoll12 = CreateObject(978, 52.828693389893, -1536.5474853516, 4.8654842376709, 0, 0, 262);//Zoll -6-
  115. zoll13 = CreateObject(978, -64.148765563965, -880.21838378906, 14.80371761322, 0, 0, 334);//Zoll -7-
  116. zoll14 = CreateObject(978, -76.004974365234, -883.78857421875, 15.262513160706, 0, 0, 154);//Zoll -7-
  117. zoll15 = CreateObject(978, -979.83703613281, -376.15832519531, 36.118007659912, 0, 0, 168);//Zoll -8-
  118. zoll16 = CreateObject(978, -968.92840576172, -369.97158813477, 35.996417999268, 0, 0, 348);//Zoll -8-
  119. zoll17 = CreateObject(978, -1109.4364013672, -886.95452880859, 74.26522064209, 0, 0, 42);//Zoll -9-
  120. zoll18 = CreateObject(978, -1109.1737060547, -898.07177734375, 75.324226379395, 0, 0, 222);//Zoll -9-
  121. //==========3D TEXT LABLE'S=======//
  122. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,1742.7644042969, 518.56384277344, 29.184286117554,20.0,0,0);//Zoll -1-
  123. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,1730.6453857422, 514.44909667969, 29.184286117554,20.0,0,0);//Zoll -1-
  124. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,425.13809204102, 617.34497070313, 19.786190032959,20.0,0,0);//Zoll -2-
  125. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,422.11804199219, 604.73651123047, 19.705780029297,20.0,0,0);//Zoll -2-
  126. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-130.58474731445, 493.63586425781, 12.407550811768,20.0,0,0);//Zoll -3-
  127. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-141.03131103516, 487.94653320313, 12.407550811768,20.0,0,0);//Zoll -3-
  128. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-1322.2332763672, 915.22381591797, 47.101196289063,20.0,0,0);//Zoll -4-
  129. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-1309.3737792969, 914.82116699219, 46.923923492432,20.0,0,0);//Zoll -4-
  130. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-2686.177734375, 1691.2561035156, 68.561210632324,20.0,0,0);//Zoll -5-
  131. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-2677.791015625, 1699.6838378906, 68.561210632324,20.0,0,0);//Zoll -5-
  132. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,45.630146026611, -1526.5622558594, 6.0016055107117,20.0,0,0);//Zoll -6-
  133. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,52.828693389893, -1536.5474853516, 5.8654842376709,20.0,0,0);//Zoll -6-
  134. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-64.148765563965, -880.21838378906,15.80371761322,20.0,0,0);//Zoll -7-
  135. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-76.004974365234, -883.78857421875, 16.262513160706,20.0,0,0);//Zoll -7-
  136. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-979.83703613281, -376.15832519531, 37.118007659912,20.0,0,0);//Zoll -8-
  137. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-968.92840576172, -369.97158813477, 36.996417999268,20.0,0,0);//Zoll -8-
  138. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-1109.4364013672, -886.95452880859, 75.26522064209,20.0,0,0);//Zoll -9-
  139. Create3DTextLabel("Willkommen an der Zollstation Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,-1109.1737060547, -898.07177734375, 76.324226379395,20.0,0,0);//Zoll -9-
  140. return 1;
  141. }
  142. public OnPlayerCommandText(playerid, cmdtext[])
  143. {
  144. if (strcmp(cmdtext, "/Zoll", true) == 0)
  145. {
  146. if (IsPlayerInRangeOfPoint(playerid,7.0, 1740.2059,509.7868,28.4849))//Zoll -1- /1/==|Funktioniert|==
  147. {
  148. MoveObject(zoll1, 1742.7644042969, 518.56384277344, 25.184286117554, 4.0);
  149. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 1)");
  150. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-500$", 5000, 1);
  151. GivePlayerMoney(playerid, -500);
  152. Create3DTextLabel("Willkommen an der Zollstation~n~Tippe /zoll um den Zoll zu passieren",0xFFFFFFAA,1742.7644042969, 518.56384277344, 28.184286117554,15.0,0,0);
  153. SetTimer("GateCloseZoll1", 3000, 0);
  154. }
  155. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 1733.3785,522.0158,27.9560))//Zoll -1- /2/==|Funktioniert|==
  156. {
  157. MoveObject(zoll2, 1730.6453857422, 514.44909667969, 25.184286117554, 4.0);
  158. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 1)");
  159. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  160. GivePlayerMoney(playerid, -500);
  161.  
  162. SetTimer("GateCloseZoll2", 3000, 0);
  163. }
  164. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 427.8507,613.4457,18.8158))//Zoll -2- /1/==|Funktioniert|==
  165. {
  166. MoveObject(zoll3, 425.13809204102, 617.34497070313, 15.786190032959, 4.0);
  167. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 2)");
  168. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  169. GivePlayerMoney(playerid, -500);
  170. SetTimer("GateCloseZoll3", 3000, 0);
  171. }
  172. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 418.6230,609.6362,18.8207))//Zoll -2- /2/==|Funktioniert|==
  173. {
  174. MoveObject(zoll4, 422.11804199219, 604.73651123047, 15.705780029297, 4.0);
  175. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 2)");
  176. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  177. GivePlayerMoney(playerid, -500);
  178. SetTimer("GateCloseZoll4", 3000, 0);
  179. }
  180. else if (IsPlayerInRangeOfPoint(playerid, 7.0,-131.5987,488.1131,11.5542))//Zoll -3- /1/==|Funktioniert|==
  181. {
  182. MoveObject(zoll5, 422.11804199219, 604.73651123047, 15.705780029297, 4.0);
  183. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 3)");
  184. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  185. GivePlayerMoney(playerid, -500);
  186. SetTimer("GateCloseZoll5", 3000, 0);
  187. }
  188. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -139.9438,493.1160,11.1182))//Zoll -3- /2/==|Funktioniert|==
  189. {
  190. MoveObject(zoll6, -141.03131103516, 487.94653320313, 8.407550811768, 4.0);
  191. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 3)");
  192. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  193. GivePlayerMoney(playerid, -500);
  194. SetTimer("GateCloseZoll6", 3000, 0);
  195. }
  196. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -1318.7848,919.0928,46.0326))//Zoll -4- /1/==|Funktioniert|==
  197. {
  198. MoveObject(zoll7, -1322.2332763672, 915.22381591797, 43.101196289063, 4.0);
  199. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 4)");
  200. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  201. GivePlayerMoney(playerid, -500);
  202. SetTimer("GateCloseZoll7", 3000, 0);
  203. }
  204. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -1314.2152,909.7383,46.0889))//Zoll -4- /2/==|Funktioniert|==
  205. {
  206. MoveObject(zoll8, -1309.3737792969, 914.82116699219, 42.923923492432, 4.0);
  207. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 4)");
  208. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  209. GivePlayerMoney(playerid, -500);
  210. SetTimer("GateCloseZoll8", 3000, 0);
  211. }
  212. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 62.9513,-1326.6962,4.7878))//Zoll -5- /1/==|Funktioniert|==
  213. {
  214. MoveObject(zoll9, -2686.177734375, 1691.2561035156, 64.561210632324, 4.0);
  215. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 5)");
  216. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  217. GivePlayerMoney(playerid, -500);
  218. SetTimer("GateCloseZoll9", 3000, 0);
  219. }
  220. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 62.9513,-1326.6962,4.7878))//Zoll -5- /2/==|Funktioniert|==
  221. {
  222. MoveObject(zoll10, -2677.791015625, 1699.6838378906, 64.561210632324, 4.0);
  223. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 5)");
  224. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  225. GivePlayerMoney(playerid, -500);
  226. SetTimer("GateCloseZoll10", 3000, 0);
  227. }
  228. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 51.6079,-1527.1141,4.9502))//Zoll -6- /1/==|Funktioniert|==
  229. {
  230. MoveObject(zoll11, 45.630146026611, -1526.5622558594, 2.0016055107117, 4.0);
  231. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 6)");
  232. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  233. GivePlayerMoney(playerid, -500);
  234. SetTimer("GateCloseZoll11", 3000, 0);
  235. }
  236. else if (IsPlayerInRangeOfPoint(playerid, 7.0, 46.9073,-1535.6595,5.0433))//Zoll -6- /2/==|Funktioniert|==
  237. {
  238. MoveObject(zoll12, 52.828693389893, -1536.5474853516, 1.8654842376709, 4.0);
  239. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 6)");
  240. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  241. GivePlayerMoney(playerid, -500);
  242. SetTimer("GateCloseZoll12", 3000, 0);
  243. }
  244. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -69.0040,-887.6051,15.3098))//Zoll -7- /1/==|Funktioniert|==
  245. {
  246. MoveObject(zoll13, -64.148765563965, -880.21838378906, 11.80371761322, 4.0);
  247. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 7)");
  248. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  249. GivePlayerMoney(playerid, -500);
  250. SetTimer("GateCloseZoll13", 3000, 0);
  251. }
  252. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -73.9826,-879.6197,15.0527))//Zoll -7- /2/==|Funktioniert|==
  253. {
  254. MoveObject(zoll14, -76.004974365234, -883.78857421875, 12.262513160706, 4.0);
  255. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 7)");
  256. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  257. GivePlayerMoney(playerid, -500);
  258. SetTimer("GateCloseZoll14", 3000, 0);
  259. }
  260. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -977.9248,-370.7859,36.3535))//Zoll -8- /1/==|Funktioniert|==
  261. {
  262. MoveObject(zoll15, -979.83703613281, -376.15832519531, 33.118007659912, 4.0);
  263. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 8)");
  264. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  265. GivePlayerMoney(playerid, -500);
  266. SetTimer("GateCloseZoll15", 3000, 0);
  267. }
  268. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -970.4131,-375.9337,36.0450))//Zoll -8- /2/==|Funktioniert|==
  269. {
  270. MoveObject(zoll16, -968.92840576172, -369.97158813477, 32.996417999268, 4.0);
  271. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 8)");
  272. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  273. GivePlayerMoney(playerid, -500);
  274. SetTimer("GateCloseZoll16", 3000, 0);
  275. }
  276. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -1105.9501,-891.2293,75.1637))//Zoll -9- /1/==|Funktioniert|==
  277. {
  278. MoveObject(zoll17, -1109.4364013672, -886.95452880859, 71.26522064209, 4.0);
  279. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 9)");
  280. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  281. GivePlayerMoney(playerid, -500);
  282. SetTimer("GateCloseZoll17", 3000, 0);
  283. }
  284. else if (IsPlayerInRangeOfPoint(playerid, 7.0, -1112.6023,-894.3363,74.8910))//Zoll -9- /2/==|Funktioniert|==
  285. {
  286. MoveObject(zoll18, -1109.1737060547, -898.07177734375, 72.324226379395, 4.0);
  287. SendClientMessage(playerid, COLOR_GREEN, "[Zöllner]:Gute Weiterfahrt(Zollstation 9)");
  288. GameTextForPlayer(playerid, "~g~Mautgebuehr: ~r~-5o0$", 5000, 1);
  289. GivePlayerMoney(playerid, -500);
  290. SetTimer("GateCloseZoll18", 3000, 0);
  291. }
  292. else
  293. {
  294. SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
  295. return 1;
  296. }
  297. return 1;
  298. }
  299. return 0;
  300. }
  301. public GateCloseZoll1()//Zoll -1- /1/
  302. {
  303. MoveObject(zoll1, 1742.7644042969, 518.56384277344, 28.184286117554, 4.0);//===|Ausgangsposition|===//
  304. return 1;
  305. }
  306. public GateCloseZoll2()//Zoll -1- /2/
  307. {
  308. MoveObject(zoll2, 1730.6453857422, 514.44909667969, 28.184286117554, 4.0);//===|Ausgangsposition|===//
  309. return 1;
  310. }
  311. public GateCloseZoll3()//Zoll -2- /1/
  312. {
  313. MoveObject(zoll3, 425.13809204102, 617.34497070313, 18.786190032959, 4.0);//===|Ausgangsposition|===//
  314. return 1;
  315. }
  316. public GateCloseZoll4()//Zoll -2- /2/
  317. {
  318. MoveObject(zoll4, 422.11804199219, 604.73651123047, 18.705780029297, 4.0);//===|Ausgangsposition|===//
  319. return 1;
  320. }
  321. public GateCloseZoll5()//Zoll -3- /1/
  322. {
  323. MoveObject(zoll5, -130.58474731445, 493.63586425781, 11.407550811768, 4.0);//===|Ausgangsposition|===//
  324. return 1;
  325. }
  326. public GateCloseZoll6()//Zoll -3- /2/
  327. {
  328. MoveObject(zoll6, -141.03131103516, 487.94653320313, 11.407550811768, 4.0);//===|Ausgangsposition|===//
  329. return 1;
  330. }
  331. public GateCloseZoll7()//Zoll -4- /1/
  332. {
  333. MoveObject(zoll7, -1322.2332763672, 915.22381591797, 46.101196289063, 4.0);//===|Ausgangsposition|===//
  334. return 1;
  335. }
  336. public GateCloseZoll8()//Zoll -4- /2/
  337. {
  338. MoveObject(zoll8, -1309.3737792969, 914.82116699219, 45.923923492432, 4.0);//===|Ausgangsposition|===//
  339. return 1;
  340. }
  341. public GateCloseZoll9()//Zoll -5- /1/
  342. {
  343. MoveObject(zoll9, -2686.177734375, 1691.2561035156, 67.561210632324, 4.0);//===|Ausgangsposition|===//
  344. return 1;
  345. }
  346. public GateCloseZoll10()//Zoll -5- /2/
  347. {
  348. MoveObject(zoll10, -2677.791015625, 1699.6838378906, 67.561210632324, 4.0);//===|Ausgangsposition|===//
  349. return 1;
  350. }
  351. public GateCloseZoll11()//Zoll -6- /1/
  352. {
  353. MoveObject(zoll11, 45.630146026611, -1526.5622558594, 5.0016055107117, 4.0);//===|Ausgangsposition|===//
  354. return 1;
  355. }
  356. public GateCloseZoll12()//Zoll -6- /2/
  357. {
  358. MoveObject(zoll12, 52.828693389893, -1536.5474853516, 4.8654842376709, 4.0);//===|Ausgangsposition|===//
  359. return 1;
  360. }
  361. public GateCloseZoll13()//Zoll -7- /1/
  362. {
  363. MoveObject(zoll13, -64.148765563965, -880.21838378906, 14.80371761322, 4.0);//===|Ausgangsposition|===//
  364. return 1;
  365. }
  366. public GateCloseZoll14()//Zoll -7- /2/
  367. {
  368. MoveObject(zoll14, -76.004974365234, -883.78857421875, 15.262513160706, 4.0);//===|Ausgangsposition|===//
  369. return 1;
  370. }
  371. public GateCloseZoll15()//Zoll -8- /1/
  372. {
  373. MoveObject(zoll15, -979.83703613281, -376.15832519531, 36.118007659912, 4.0);//===|Ausgangsposition|===//
  374. return 1;
  375. }
  376. public GateCloseZoll16()//Zoll -8- /2/
  377. {
  378. MoveObject(zoll16, -968.92840576172, -369.97158813477, 35.996417999268, 4.0);//===|Ausgangsposition|===//
  379. return 1;
  380. }
  381. public GateCloseZoll17()//Zoll -9- /1/
  382. {
  383. MoveObject(zoll17, -1109.4364013672, -886.95452880859, 74.26522064209, 4.0);//===|Ausgangsposition|===//
  384. return 1;
  385. }
  386. public GateCloseZoll18()//Zoll -9- /2/
  387. {
  388. MoveObject(zoll18, -1109.1737060547, -898.07177734375, 75.324226379395, 4.0);//===|Ausgangsposition|===//
  389. return 1;
  390. }
  391. #endif
  392. /*=========================================================================================================================*/
  393. /*========================================================*ZOLL ENDE*======================================================*/
Advertisement
Add Comment
Please, Sign In to add comment