Advertisement
Guest User

Untitled

a guest
Jul 21st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.29 KB | None | 0 0
  1. public OnPlayerTimer()
  2. {
  3. new string[128], vehicleid;
  4.  
  5. for(new i=0;i<GetMaxPlayers();i++)
  6. {
  7. if(IsPlayerConnected(i))
  8. {
  9. if(GetPlayerVirtualWorld(i) == 0 && GetPlayerInterior(i) == 0)
  10. {
  11. new Float:xx, Float:yy, Float:zz;
  12. GetPlayerPos(i, xx, yy, zz);
  13. if((xx > -992.5172 && xx < 4000.0000) && (yy < 528.0000 && yy > -4000.0000)){ // Los Santos
  14. SetPlayerWeather(i, currentWeather[0]);
  15. }
  16. if((xx > -4000.0000 && xx< -992.5172) && (yy < 4000.0000 && yy > -4000.0000)){ // San Fierro
  17. SetPlayerWeather(i, currentWeather[1]);
  18. }
  19. if((xx > -992.5172 && xx< 4000.0000) && (yy < 4000.0000 && yy > 528.0000)){ // Las Venturas
  20. SetPlayerWeather(i, currentWeather[2]);
  21. }
  22. }else
  23. {
  24. SetPlayerWeather(i, 2);
  25. }
  26. if(Spieler[i][pLoggedIn])
  27. {
  28. PayDay(i);
  29. format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
  30. if(pPersoWait[i] > 1)
  31. {
  32. pPersoWait[i] --;
  33. format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
  34. ShowPlayerDialog(i, DIALOG_PERSO2, DIALOG_STYLE_MSGBOX, "Stadthalle: Personalausweis", COLOR_HEX_WHITE"Dein Personalausweis wird momentan bearbeitet.\n", string, "");
  35. }else if(pPersoWait[i] == 1){
  36. pPersoWait[i] = 0;
  37. format(string, sizeof(string), "Schließen");
  38. ShowPlayerDialog(i, DIALOG_PERSO2, DIALOG_STYLE_MSGBOX, "Stadthalle: Personalausweis", COLOR_HEX_WHITE"Du hast deinen Personalausweis erhalten\n"COLOR_HEX_YELLOW"\nBitte gehe damit vorsichtig um!", string, "");
  39. }
  40. if(pPayGuthaben[i] > 0)
  41. {
  42. if(pPhoning[i] == 1 && !(pCurrentCall[i] == -2))
  43. {
  44. Spieler[i][pHandyGuthaben] -= 5;
  45. GameTextForPlayer(i, "~r~$-5", 5000, 1);
  46. }
  47. pPayGuthaben[i] --;
  48. }
  49. else
  50. {
  51. if(pPhoning[i] == 1)pPayGuthaben[i] = 60;
  52. else pPayGuthaben[i] = 0;
  53. }
  54. if(pHealed[i] > 0)
  55. {
  56. pHealed[i] --;
  57. }
  58. else pHealed[i] = 0;
  59. if(pErstehilfeUse[i] > 0)
  60. {
  61. pErstehilfeUse[i] --;
  62. }
  63. else pErstehilfeUse[i] = 0;
  64. if(Spieler[i][pTot] > 0)
  65. {
  66. if(Spieler[i][pTotUnix] > 0)
  67. {
  68. format(string, sizeof(string), "~r~Krankenhaus: ~w~%d Sekunden", (Spieler[i][pTotUnix]));
  69. PlayerTextDrawSetString(i, pTextTime[i][2], string);
  70. Spieler[i][pTotUnix] --;
  71. }
  72. else
  73. {
  74. Spieler[i][pTot] = 0;
  75. Spieler[i][pTotUnix] = 0;
  76. Spieler[i][pTotX] = 0.0;
  77. Spieler[i][pTotY] = 0.0;
  78. Spieler[i][pTotZ] = 0.0;
  79. SpawnPlayerEx(i);
  80. }
  81. }
  82. if(Spieler[i][pJailed] > 0)
  83. {
  84. if(Spieler[i][pJailTime] > 0)
  85. {
  86. format(string, sizeof(string), "~r~Knast: ~w~%d Sekunden", Spieler[i][pJailTime]);
  87. PlayerTextDrawSetString(i, pTextTime[i][2], string);
  88. Spieler[i][pJailTime] --;
  89. }
  90. else
  91. {
  92. PlayerTextDrawHide(i, pTextTime[i][0]);
  93. PlayerTextDrawHide(i, pTextTime[i][1]);
  94. PlayerTextDrawHide(i, pTextTime[i][2]);
  95. Spieler[i][pJailed] = 0;
  96. Spieler[i][pJailTime] = 0;
  97. Spieler[i][pJailType] = 0;
  98. GameTextForPlayer(i, "~g~Freiheit", 4000, 1);
  99. SetPlayerInterior(i, 0);
  100. SetPlayerPos(i, 1544.4935,-1675.8558,13.5585);
  101. SetPlayerVirtualWorld(i, 0);
  102. UnfreezePlayer(i);
  103. }
  104. }
  105. vehicleid = GetPlayerVehicleID(i);
  106. UpdatePlayerTacho(i);
  107. if(pInformationTimer[i] > 0)pInformationTimer[i] --;
  108. else if(pInformationTimer[i] <= 0)
  109. {
  110. pInformationTimer[i] = 0;
  111. UpdateDynamic3DTextLabelText(Spieler[i][pInformation], COLOR_WHITE, " ");
  112. }
  113. if(pTutorialSkinWait[i] > 1)pTutorialSkinWait[i] --;
  114. else if(pTutorialSkinWait[i] == 1)
  115. {
  116. ClearPlayerChat(i, 20);
  117. pTutorialSkinWait[i] = 0;
  118. for(new xS=0;xS<MAX_SKIN_DATA;xS++)
  119. {
  120. if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
  121. {
  122. pChoosedSkin[i] = SkinData[xS][skinID];
  123. pChoosedID[i] = xS;
  124. SetPlayerSkin(i, pChoosedSkin[i]);
  125. break;
  126. }
  127. }
  128. PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
  129. PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
  130. PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
  131. SelectTextDraw(i, 0xA3B4C5FF);
  132. SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
  133. SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
  134. SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
  135. SetPlayerFacingAngle(i, 173.5490);
  136. SetPlayerInterior(i, 3);
  137. SetPlayerVirtualWorld(i, 2000+i);
  138. FreezePlayer(i);
  139. SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Knöpfe drückst.");
  140. SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, klicke auf den entsprechenden Knopf.");
  141. }
  142. if(Spieler[i][pCurrentTutorial] == 1)
  143. {
  144. if(Spieler[i][pFahrlehrerWait] > 0)
  145. {
  146. Spieler[i][pFahrlehrerWait] --;
  147. if(Spieler[i][pFahrlehrerWait] == 30)
  148. {
  149. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Auf unserem Server wird erwartet, dass du auf der rechten Straßenseite fährst.");
  150. }
  151. else if(Spieler[i][pFahrlehrerWait] == 24)
  152. {
  153. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Halte dich an die Begrenzung von "COLOR_HEX_YELLOW"80km/h"COLOR_HEX_WHITE" innerorts. Außerorts (Autobahnen, Landstraßen, ..) gibt es keine Tempolimits.");
  154. }
  155. else if(Spieler[i][pFahrlehrerWait] == 18)
  156. {
  157. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Wenn du einen Beamten im Einsatz siehst, fahre bitte an den Straßenrand!");
  158. }
  159. else if(Spieler[i][pFahrlehrerWait] == 12)
  160. {
  161. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Wenn es zwischen "COLOR_HEX_YELLOW"20 "COLOR_HEX_WHITE"und"COLOR_HEX_YELLOW" 7"COLOR_HEX_WHITE" Uhr ist, schalte bitte das Licht an. ("COLOR_HEX_YELLOW"/licht"COLOR_HEX_WHITE")");
  162. }
  163. else if(Spieler[i][pFahrlehrerWait] == 6)
  164. {
  165. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Den Motor schaltest du mit '"COLOR_HEX_YELLOW"/motor"COLOR_HEX_WHITE"' an.");
  166. }
  167. else if(Spieler[i][pFahrlehrerWait] == 1)
  168. {
  169. SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Viel Glück wünscht dir die "COLOR_HEX_YELLOW"SA Fahrschule"COLOR_HEX_WHITE".");
  170. Spieler[i][pFahrlehrerWait] = 0;
  171. UnfreezePlayer(i);
  172. }
  173. }
  174. }
  175. if(Spieler[i][pTutorial] > 0)
  176. {
  177. if(Spieler[i][pCurrentTutorial] == 1)
  178. {
  179. if(vehicleid == Spieler[i][pFSVehicle])
  180. {
  181. new Float:health, Float:health2;
  182. GetVehicleHealth(vehicleid, health);
  183. GetPlayerHealth(i, health2);
  184. if(health < 240 && health2 > 0)
  185. {
  186. DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
  187. DeleteVehicle(Spieler[i][pFSVehicle]);
  188. Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
  189. SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
  190. SetCameraBehindPlayer(i);
  191. Spieler[i][pCurrentTutorial] = 0;
  192. Spieler[i][pFahrlehrerWarning] = 0;
  193. SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
  194. SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
  195. }
  196. if(!IsPlayerOnAutobahn(i))
  197. {
  198. if(GetVehicleSpeed(vehicleid) > 85)
  199. {
  200. Spieler[i][pFahrlehrerWarning] ++;
  201. format(string, sizeof(string), COLOR_HEX_RED"** "COLOR_HEX_WHITE"%d/10 Fehlerpunkten - Maximal 80km/h!", Spieler[i][pFahrlehrerWarning]);
  202. SendClientMessage(i, COLOR_RED, string);
  203. if(Spieler[i][pFahrlehrerWarning] >= 10)
  204. {
  205. DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
  206. DeleteVehicle(Spieler[i][pFSVehicle]);
  207. Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
  208. SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
  209. SetCameraBehindPlayer(i);
  210. Spieler[i][pCurrentTutorial] = 0;
  211. SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut! (10/10 Fehlerpunkten)");
  212. Spieler[i][pFahrlehrerWarning] = 0;
  213. SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
  214. }
  215. }
  216. }
  217. }
  218. else
  219. {
  220. DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
  221. DeleteVehicle(Spieler[i][pFSVehicle]);
  222. Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
  223. SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
  224. SetCameraBehindPlayer(i);
  225. Spieler[i][pCurrentTutorial] = 0;
  226. SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
  227. Spieler[i][pFahrlehrerWarning] = 0;
  228. SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
  229. }
  230. }
  231. }
  232. if(Spieler[i][pBusTime] > 1)
  233. {
  234. if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
  235. {
  236. if(IsVehicleABus(vehicleid))
  237. {
  238. if(IsPlayerInCheckpoint(i))
  239. {
  240. Spieler[i][pBusTime] --;
  241. //format(string, sizeof(string), "~w~Haltestelle..~b~%d", Spieler[i][pBusTime]);
  242. //GameTextForPlayer(i, string, 1200, 5);
  243. ShowBusTextDraw(i);
  244. }
  245. }
  246. else
  247. {
  248. Spieler[i][pBusTime] = 0;
  249. HideBusTextDraw(i);
  250. SendClientMessage(i, COLOR_GREY, "** Der Countdown wurde abgebrochen!");
  251. }
  252. }
  253. }
  254. else
  255. {
  256. if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
  257. {
  258. if(IsVehicleABus(vehicleid))
  259. {
  260. if(IsPlayerInCheckpoint(i))
  261. {
  262. switch(GetPlayerCheckpointID(i))
  263. {
  264. // Linie 1
  265. case CP_BUSFAHRER_LINIE_1_1:{SetPlayerCheckpointEx(i, 1481.5775,-1730.3295,12.9539, 3.0, CP_BUSFAHRER_LINIE_1_2, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Stadthalle"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i); Spieler[i][pBusStamp] = gettime();}
  266. case CP_BUSFAHRER_LINIE_1_2:{SetPlayerCheckpointEx(i, 1437.1228,-1031.9480,23.2275, 3.0, CP_BUSFAHRER_LINIE_1_3, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Bank"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  267. case CP_BUSFAHRER_LINIE_1_3:{SetPlayerCheckpointEx(i, 1195.7300,-935.7947,42.3151, 3.0, CP_BUSFAHRER_LINIE_1_4, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Burger Shot North"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  268. case CP_BUSFAHRER_LINIE_1_4:{SetPlayerCheckpointEx(i, 534.6187,-1243.9463,16.0791, 3.0, CP_BUSFAHRER_LINIE_1_5, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Rodeo (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  269. case CP_BUSFAHRER_LINIE_1_5:{SetPlayerCheckpointEx(i, 166.8460,-1524.6187,11.7255, 3.0, CP_BUSFAHRER_LINIE_1_6, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Rodeo (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  270. case CP_BUSFAHRER_LINIE_1_6:{SetPlayerCheckpointEx(i, 411.0383,-1774.9216,4.8480, 3.0, CP_BUSFAHRER_LINIE_1_7, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Santa Maria Beach"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  271. case CP_BUSFAHRER_LINIE_1_7:{SetPlayerCheckpointEx(i, 815.4914,-1786.2496,13.1840, 3.0, CP_BUSFAHRER_LINIE_1_8, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Verona Beach"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  272. case CP_BUSFAHRER_LINIE_1_8:{SetPlayerCheckpointEx(i, 1480.6875,-1734.8828,12.9449, 3.0, CP_BUSFAHRER_LINIE_1_9, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Stadthalle"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  273. case CP_BUSFAHRER_LINIE_1_9:{SetPlayerCheckpointEx(i, 1733.4503,-1749.0454,13.0947, 3.0, CP_BUSFAHRER_LINIE_1_10, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Busdepot"); PlayerPlaySound(i, 1057, 0, 0, 0);HideBusTextDraw(i);}
  274. case CP_BUSFAHRER_LINIE_1_10:
  275. {
  276. HideBusTextDraw(i);
  277. DisablePlayerCheckpointEx(i);
  278. UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
  279. SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
  280. new randomGehalt = randomex(2800, 3200); // Maximum ungf. 35200$
  281. format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
  282. SendClientMessage(i, COLOR_WHITE, string);
  283. new randomSkill = randomex(1, 5);
  284. format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
  285. SendClientMessage(i, COLOR_WHITE, string);
  286. Spieler[i][pJobMoney] += randomGehalt;
  287. Spieler[i][pJobCount] ++;
  288. GivePlayerBusSkill(i, randomSkill);
  289. PlayerPlaySound(i, 1057, 0, 0, 0);
  290. format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 1 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
  291. SendClientMessageToAll(COLOR_YELLOW, string);
  292. print(string);
  293. }
  294. // Linie 2
  295. case CP_BUSFAHRER_LINIE_2_1:{SetPlayerCheckpointEx(i, 1871.9470,-1935.1178,13.2142, 3.0, CP_BUSFAHRER_LINIE_2_2, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: El Corona"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i); Spieler[i][pBusStamp] = gettime();}
  296. case CP_BUSFAHRER_LINIE_2_2:{SetPlayerCheckpointEx(i, 2276.1943,-1752.5480,13.2144, 3.0, CP_BUSFAHRER_LINIE_2_3, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Ganton"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  297. case CP_BUSFAHRER_LINIE_2_3:{SetPlayerCheckpointEx(i, 2698.1465,-1660.6047,11.9219, 3.0, CP_BUSFAHRER_LINIE_2_4, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  298. case CP_BUSFAHRER_LINIE_2_4:{SetPlayerCheckpointEx(i, 2878.0823,-1435.9349,10.6250, 3.0, CP_BUSFAHRER_LINIE_2_5, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  299. case CP_BUSFAHRER_LINIE_2_5:{SetPlayerCheckpointEx(i, 2639.8193,-1076.9867,69.2849, 3.0, CP_BUSFAHRER_LINIE_2_6, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  300. case CP_BUSFAHRER_LINIE_2_6:{SetPlayerCheckpointEx(i, 2674.0710,-1446.1620,30.2073, 3.0, CP_BUSFAHRER_LINIE_2_7, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Beach (C)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  301. case CP_BUSFAHRER_LINIE_2_7:{SetPlayerCheckpointEx(i, 2345.7659,-1539.8009,23.6675, 3.0, CP_BUSFAHRER_LINIE_2_8, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Los Santos (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  302. case CP_BUSFAHRER_LINIE_2_8:{SetPlayerCheckpointEx(i, 2306.7446,-1249.1027,23.6773, 3.0, CP_BUSFAHRER_LINIE_2_9, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: East Los Santos (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  303. case CP_BUSFAHRER_LINIE_2_9:{SetPlayerCheckpointEx(i, 2437.0984,-1089.1384,42.0089, 3.0, CP_BUSFAHRER_LINIE_2_10, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  304. case CP_BUSFAHRER_LINIE_2_10:{SetPlayerCheckpointEx(i, 2520.8274,-1045.1201,69.2458, 3.0, CP_BUSFAHRER_LINIE_2_11, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (C)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  305. case CP_BUSFAHRER_LINIE_2_11:{SetPlayerCheckpointEx(i, 2179.4429,-1004.3890,62.5859, 3.0, CP_BUSFAHRER_LINIE_2_12, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Las Colinas (D)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  306. case CP_BUSFAHRER_LINIE_2_12:{SetPlayerCheckpointEx(i, 1969.5055,-1106.6772,25.3558, 3.0, CP_BUSFAHRER_LINIE_2_13, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Glen Park (A)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  307. case CP_BUSFAHRER_LINIE_2_13:{SetPlayerCheckpointEx(i, 1887.3757,-1338.5367,13.2142, 3.0, CP_BUSFAHRER_LINIE_2_14, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Glen Park (B)"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  308. case CP_BUSFAHRER_LINIE_2_14:{SetPlayerCheckpointEx(i, 1835.5477,-1524.1456,13.2116, 3.0, CP_BUSFAHRER_LINIE_2_15, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Idlewood"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  309. case CP_BUSFAHRER_LINIE_2_15:{SetPlayerCheckpointEx(i, 1733.1927,-1749.1240,13.3542, 3.0, CP_BUSFAHRER_LINIE_2_16, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Los Santos Busdepot"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i);}
  310. case CP_BUSFAHRER_LINIE_2_16:
  311. {
  312. HideBusTextDraw(i);
  313. DisablePlayerCheckpointEx(i);
  314. UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
  315. SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
  316. new randomGehalt = randomex(4000, 4500); // Maximum ungf. 36000$
  317. format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
  318. SendClientMessage(i, COLOR_WHITE, string);
  319. new randomSkill = randomex(5, 10);
  320. format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
  321. SendClientMessage(i, COLOR_WHITE, string);
  322. Spieler[i][pJobMoney] += randomGehalt;
  323. Spieler[i][pJobCount] ++;
  324. GivePlayerBusSkill(i, randomSkill);
  325. PlayerPlaySound(i, 1057, 0, 0, 0);
  326. format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 2 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
  327. SendClientMessageToAll(COLOR_YELLOW, string);
  328. print(string);
  329. }
  330. }
  331. }
  332. }
  333. }
  334. }
  335. }
  336. }
  337. }
  338. return 1;
  339. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement