Guest User

Untitled

a guest
May 18th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.79 KB | None | 0 0
  1.  
  2.  
  3. ganz oben
  4.  
  5. new L1Checkpoint[MAX_PLAYERS];
  6. new L2Checkpoint[MAX_PLAYERS];
  7.  
  8.  
  9.  
  10. OnPlayerEnterCheckpoint
  11. new jobcar = GetPlayerVehicleID(playerid);
  12. //-------------------------------------------- Busystem ---------------------------------------------------
  13. if(L1Checkpoint[playerid]==1)
  14. {
  15. if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
  16. {
  17. SetPlayerCheckpoint(playerid,776.9352,-1042.2952,24.2814,6.0);
  18. ProxDetector(5.0, playerid, "Nächster Halt: LS Friedhof", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  19. TogglePlayerControllable(playerid,0);
  20. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  21. L1Checkpoint[playerid]=2;
  22. }
  23. else
  24. {
  25. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  26. }
  27. }
  28. else if(L1Checkpoint[playerid]==2)
  29. {
  30. if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
  31. {
  32. SetPlayerCheckpoint(playerid,623.6121,-1254.5010,17.6575,6.0);
  33. TogglePlayerControllable(playerid,0);
  34. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  35. ProxDetector(5.0, playerid, "Nächster Halt: LCN HQ", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  36. L1Checkpoint[playerid]=3;
  37. }
  38. else
  39. {
  40. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  41. }
  42. }
  43. else if(L1Checkpoint[playerid]==3)
  44. {
  45. if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
  46. {
  47. SetPlayerCheckpoint(playerid,505.9393,-1414.6676,16.0744,6.0);
  48. ProxDetector(5.0, playerid, "Nächster Halt: Noobspawn", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  49. TogglePlayerControllable(playerid,0);
  50. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  51. L1Checkpoint[playerid]=4;
  52. }
  53. else
  54. {
  55. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  56. }
  57. }
  58. else if(L1Checkpoint[playerid]==4)
  59. {
  60. if(GetVehicleModel(jobcar) == 431 || GetVehicleModel(jobcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
  61. {
  62. SetPlayerCheckpoint(playerid,394.2750,-1654.1613,31.1475,6.0);
  63. ProxDetector(5.0, playerid, "Nächster Halt: Angelsteg", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  64. TogglePlayerControllable(playerid,0);
  65. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  66. L1Checkpoint[playerid]=5;
  67. }
  68. else
  69. {
  70. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  71. }
  72. }
  73. else if(L1Checkpoint[playerid]==5)
  74. {
  75. SetPlayerCheckpoint(playerid,1033.9972,-1615.7546,13.4760,6.0);
  76. ProxDetector(5.0, playerid, "Nächster Halt: Jobcenter", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  77. TogglePlayerControllable(playerid,0);
  78. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  79. L1Checkpoint[playerid]=6;
  80. }
  81. else if(L1Checkpoint[playerid]==6)
  82. {
  83. SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
  84. ProxDetector(5.0, playerid, "Nächster Halt: Altes Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  85. TogglePlayerControllable(playerid,0);
  86. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  87. L1Checkpoint[playerid]=7;
  88. }
  89. else if(L1Checkpoint[playerid]==7)
  90. {
  91. SetPlayerCheckpoint(playerid,1481.6018,-1735.8101,13.4760,6.0);
  92. ProxDetector(5.0, playerid, "Nächster Halt: Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  93. TogglePlayerControllable(playerid,0);
  94. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  95. L1Checkpoint[playerid]=8;
  96. }
  97. else if(L1Checkpoint[playerid]==8)
  98. {
  99. SetPlayerCheckpoint(playerid,1854.5161,-1755.6998,13.4761,6.0);
  100. ProxDetector(5.0, playerid, "Nächster Halt: Alhambra", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  101. TogglePlayerControllable(playerid,0);
  102. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  103. L1Checkpoint[playerid]=9;
  104. }
  105. else if(L1Checkpoint[playerid]==9)
  106. {
  107. SetPlayerCheckpoint(playerid,1717.9143,-1356.6332,13.4759,6.0);
  108. ProxDetector(5.0, playerid, "Nächster Halt: LS Downtown", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  109. TogglePlayerControllable(playerid,0);
  110. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  111. L1Checkpoint[playerid]=10;
  112. }
  113. else if(L1Checkpoint[playerid]==10)
  114. {
  115. SetPlayerCheckpoint(playerid,1461.2816,-1030.4275,23.7494,6.0);
  116. ProxDetector(5.0, playerid, "Nächster Halt: LS Bank", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  117. TogglePlayerControllable(playerid,0);
  118. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  119. L1Checkpoint[playerid]=11;
  120. }
  121. else if(L1Checkpoint[playerid]==11)
  122. {
  123. SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
  124. ProxDetector(5.0, playerid, "Nächster Halt: BSN", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  125. TogglePlayerControllable(playerid,0);
  126. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  127. L1Checkpoint[playerid]=12;
  128. }
  129. else if(L1Checkpoint[playerid]==12)
  130. {
  131. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $6000.");
  132. ProxDetector(5.0, playerid, "Endstelle. Wir bitten alle Fahrgäste auszusteigen.", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  133. PlayerInfo[playerid][pAccount]+=6000;
  134. DisablePlayerCheckpoint(playerid);
  135. L1Checkpoint[playerid]=0;
  136. }
  137. //LS Linie 2
  138. //BSN
  139. if(L2Checkpoint[playerid]==1)
  140. {
  141. if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
  142. {
  143. SetPlayerCheckpoint(playerid,794.0136,-1350.2284,13.1138,6.0);
  144. ProxDetector(5.0, playerid, "Nächster Halt: Market Station", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  145. TogglePlayerControllable(playerid,0);
  146. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  147. L2Checkpoint[playerid]=2;
  148. }
  149. else
  150. {
  151. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  152. }
  153. }
  154. else if(L2Checkpoint[playerid]==2)
  155. {
  156. if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
  157. {
  158. SetPlayerCheckpoint(playerid,1129.1219,-1409.4923,13.1807,6.0);
  159. ProxDetector(5.0, playerid, "Nächster Halt: LS-Krankenhaus", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  160. L2Checkpoint[playerid]=3;
  161. TogglePlayerControllable(playerid,0);
  162. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  163. }
  164. else
  165. {
  166. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  167. }
  168. }
  169. else if(L2Checkpoint[playerid]==3)
  170. {
  171. if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
  172. {
  173. SetPlayerCheckpoint(playerid,1146.2118,-1619.3352,13.5083,6.0);
  174. ProxDetector(5.0, playerid, "Nächster Halt: Jobcenter", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  175. L2Checkpoint[playerid]=4;
  176. TogglePlayerControllable(playerid,0);
  177. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  178. }
  179. else
  180. {
  181. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  182. }
  183. }
  184. else if(L2Checkpoint[playerid]==4)
  185. {
  186. if(GetVehicleModel(jobcar) == 437 || GetVehicleModel(jobcar) == 431)
  187. {
  188. SetPlayerCheckpoint(playerid,1175.2574,-1855.5714,13.4916,6.0);
  189. ProxDetector(5.0, playerid, "Nächster Halt: Altes Busdepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  190. L2Checkpoint[playerid]=5;
  191. TogglePlayerControllable(playerid,0);
  192. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  193. }
  194. else
  195. {
  196. SendClientMessage(playerid,COLOR_RED,"Sie sind in keinem Bus.");
  197. }
  198. }
  199. else if(L2Checkpoint[playerid]==5)
  200. {
  201. SetPlayerCheckpoint(playerid,1481.6018,-1735.8101,13.4760,6.0);
  202. ProxDetector(5.0, playerid, "Nächster Halt: Stadthalle", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  203. L2Checkpoint[playerid]=6;
  204. TogglePlayerControllable(playerid,0);
  205. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  206. }
  207. else if(L2Checkpoint[playerid]==6)
  208. {
  209. SetPlayerCheckpoint(playerid,1817.8978,-1919.9874,13.1065,6.0);
  210. ProxDetector(5.0, playerid, "Nächster Halt: Taxidepot", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  211. L2Checkpoint[playerid]=7;
  212. TogglePlayerControllable(playerid,0);
  213. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  214. }
  215. else if(L2Checkpoint[playerid]==7)
  216. {
  217. SetPlayerCheckpoint(playerid,1983.5197,-2170.0059,13.1067,6.0);
  218. ProxDetector(5.0, playerid, "Nächster Halt: LS-Flughafen", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  219. L2Checkpoint[playerid]=8;
  220. TogglePlayerControllable(playerid,0);
  221. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  222. }
  223. else if(L2Checkpoint[playerid]==8)
  224. {
  225. SetPlayerCheckpoint(playerid,2253.0396,-2224.6731,13.0342,6.0);
  226. ProxDetector(5.0, playerid, "Nächster Halt: Waffenfabrik", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  227. L2Checkpoint[playerid]=9;
  228. TogglePlayerControllable(playerid,0);
  229. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  230. }
  231. else if(L2Checkpoint[playerid]==9)
  232. {
  233. SetPlayerCheckpoint(playerid,1431.9406,-2286.9824,13.1099,6.0);
  234. ProxDetector(5.0, playerid, "Nächster Halt: LS Flughafen Ostseite", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  235. L2Checkpoint[playerid]=10;
  236. TogglePlayerControllable(playerid,0);
  237. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  238. }
  239. else if(L2Checkpoint[playerid]==10)
  240. {
  241. SetPlayerCheckpoint(playerid,1431.8497,-939.5906,35.8273,6.0);
  242. ProxDetector(5.0, playerid, "Nächster Halt: LS Autobahnkreuz", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  243. L2Checkpoint[playerid]=11;
  244. TogglePlayerControllable(playerid,0);
  245. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  246. }
  247. else if(L2Checkpoint[playerid]==11)
  248. {
  249. SetPlayerCheckpoint(playerid,1181.5731,-936.9670,42.8555,6.0);
  250. ProxDetector(5.0, playerid, "Nächster Halt: BSN", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  251. L2Checkpoint[playerid]=12;
  252. TogglePlayerControllable(playerid,0);
  253. SetTimerEx("HaltestelleTimer",6000,0,"i",playerid);
  254. }
  255. else if(L2Checkpoint[playerid]==12)
  256. {
  257. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sie haben diese Linie beendet und erhälten $7000.");
  258. ProxDetector(5.0, playerid, "Endstelle. Wir bitten alle Fahrgäste auszusteigen.", COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
  259. PlayerInfo[playerid][pAccount]+=7000;
  260. DisablePlayerCheckpoint(playerid);
  261. L2Checkpoint[playerid]=0;
  262. }
  263.  
  264.  
  265. ON PLAYER COMMAND TEXT
  266.  
  267. if(strcmp(cmdtext,"/linie", true) == 0)
  268. {
  269. if(PlayerInfo[playerid][pJob] == 14)
  270. {
  271. new tmpcar = GetPlayerVehicleID(playerid);
  272. if(GetVehicleModel(tmpcar) == 431 || GetVehicleModel(tmpcar) == 437 &&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
  273. {
  274. ShowPlayerDialog(playerid,DIALOG_Buslinien,DIALOG_STYLE_LIST,"Buslinien","LS-Stadtlinie 1\nLS-Stadtlinie 2\nSchließen","Wählen","");
  275. return 1;
  276. }
  277. else
  278. {
  279. SendClientMessage(playerid,COLOR_RED,"Sie müssen in einem Bus sein.");
  280. }
  281. }
  282. }
Advertisement
Add Comment
Please, Sign In to add comment