Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTimer()
- {
- new string[128], vehicleid;
- for(new i=0;i<GetMaxPlayers();i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerVirtualWorld(i) == 0 && GetPlayerInterior(i) == 0)
- {
- new Float:xx, Float:yy, Float:zz;
- GetPlayerPos(i, xx, yy, zz);
- if((xx > -992.5172 && xx < 4000.0000) && (yy < 528.0000 && yy > -4000.0000)){ // Los Santos
- SetPlayerWeather(i, currentWeather[0]);
- }
- if((xx > -4000.0000 && xx< -992.5172) && (yy < 4000.0000 && yy > -4000.0000)){ // San Fierro
- SetPlayerWeather(i, currentWeather[1]);
- }
- if((xx > -992.5172 && xx< 4000.0000) && (yy < 4000.0000 && yy > 528.0000)){ // Las Venturas
- SetPlayerWeather(i, currentWeather[2]);
- }
- }else
- {
- SetPlayerWeather(i, 2);
- }
- if(Spieler[i][pLoggedIn])
- {
- PayDay(i);
- format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
- if(pPersoWait[i] > 1)
- {
- pPersoWait[i] --;
- format(string, sizeof(string), "%d Sekunden", pPersoWait[i]);
- ShowPlayerDialog(i, DIALOG_PERSO2, DIALOG_STYLE_MSGBOX, "Stadthalle: Personalausweis", COLOR_HEX_WHITE"Dein Personalausweis wird momentan bearbeitet.\n", string, "");
- }else if(pPersoWait[i] == 1){
- pPersoWait[i] = 0;
- format(string, sizeof(string), "Schließen");
- 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, "");
- }
- if(pPayGuthaben[i] > 0)
- {
- if(pPhoning[i] == 1 && !(pCurrentCall[i] == -2))
- {
- Spieler[i][pHandyGuthaben] -= 5;
- GameTextForPlayer(i, "~r~$-5", 5000, 1);
- }
- pPayGuthaben[i] --;
- }
- else
- {
- if(pPhoning[i] == 1)pPayGuthaben[i] = 60;
- else pPayGuthaben[i] = 0;
- }
- if(pHealed[i] > 0)
- {
- pHealed[i] --;
- }
- else pHealed[i] = 0;
- if(pErstehilfeUse[i] > 0)
- {
- pErstehilfeUse[i] --;
- }
- else pErstehilfeUse[i] = 0;
- if(Spieler[i][pTot] > 0)
- {
- if(Spieler[i][pTotUnix] > 0)
- {
- format(string, sizeof(string), "~r~Krankenhaus: ~w~%d Sekunden", (Spieler[i][pTotUnix]));
- PlayerTextDrawSetString(i, pTextTime[i][2], string);
- Spieler[i][pTotUnix] --;
- }
- else
- {
- Spieler[i][pTot] = 0;
- Spieler[i][pTotUnix] = 0;
- Spieler[i][pTotX] = 0.0;
- Spieler[i][pTotY] = 0.0;
- Spieler[i][pTotZ] = 0.0;
- SpawnPlayerEx(i);
- }
- }
- if(Spieler[i][pJailed] > 0)
- {
- if(Spieler[i][pJailTime] > 0)
- {
- format(string, sizeof(string), "~r~Knast: ~w~%d Sekunden", Spieler[i][pJailTime]);
- PlayerTextDrawSetString(i, pTextTime[i][2], string);
- Spieler[i][pJailTime] --;
- }
- else
- {
- PlayerTextDrawHide(i, pTextTime[i][0]);
- PlayerTextDrawHide(i, pTextTime[i][1]);
- PlayerTextDrawHide(i, pTextTime[i][2]);
- Spieler[i][pJailed] = 0;
- Spieler[i][pJailTime] = 0;
- Spieler[i][pJailType] = 0;
- GameTextForPlayer(i, "~g~Freiheit", 4000, 1);
- SetPlayerInterior(i, 0);
- SetPlayerPos(i, 1544.4935,-1675.8558,13.5585);
- SetPlayerVirtualWorld(i, 0);
- UnfreezePlayer(i);
- }
- }
- vehicleid = GetPlayerVehicleID(i);
- UpdatePlayerTacho(i);
- if(pInformationTimer[i] > 0)pInformationTimer[i] --;
- else if(pInformationTimer[i] <= 0)
- {
- pInformationTimer[i] = 0;
- UpdateDynamic3DTextLabelText(Spieler[i][pInformation], COLOR_WHITE, " ");
- }
- if(pTutorialSkinWait[i] > 1)pTutorialSkinWait[i] --;
- else if(pTutorialSkinWait[i] == 1)
- {
- ClearPlayerChat(i, 20);
- pTutorialSkinWait[i] = 0;
- for(new xS=0;xS<MAX_SKIN_DATA;xS++)
- {
- if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
- {
- pChoosedSkin[i] = SkinData[xS][skinID];
- pChoosedID[i] = xS;
- SetPlayerSkin(i, pChoosedSkin[i]);
- break;
- }
- }
- PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
- PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
- PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
- SelectTextDraw(i, 0xA3B4C5FF);
- SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
- SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
- SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
- SetPlayerFacingAngle(i, 173.5490);
- SetPlayerInterior(i, 3);
- SetPlayerVirtualWorld(i, 2000+i);
- FreezePlayer(i);
- SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Knöpfe drückst.");
- SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, klicke auf den entsprechenden Knopf.");
- }
- if(Spieler[i][pCurrentTutorial] == 1)
- {
- if(Spieler[i][pFahrlehrerWait] > 0)
- {
- Spieler[i][pFahrlehrerWait] --;
- if(Spieler[i][pFahrlehrerWait] == 30)
- {
- SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Auf unserem Server wird erwartet, dass du auf der rechten Straßenseite fährst.");
- }
- else if(Spieler[i][pFahrlehrerWait] == 24)
- {
- 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.");
- }
- else if(Spieler[i][pFahrlehrerWait] == 18)
- {
- SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Wenn du einen Beamten im Einsatz siehst, fahre bitte an den Straßenrand!");
- }
- else if(Spieler[i][pFahrlehrerWait] == 12)
- {
- 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")");
- }
- else if(Spieler[i][pFahrlehrerWait] == 6)
- {
- SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Den Motor schaltest du mit '"COLOR_HEX_YELLOW"/motor"COLOR_HEX_WHITE"' an.");
- }
- else if(Spieler[i][pFahrlehrerWait] == 1)
- {
- SendClientMessage(i, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Viel Glück wünscht dir die "COLOR_HEX_YELLOW"SA Fahrschule"COLOR_HEX_WHITE".");
- Spieler[i][pFahrlehrerWait] = 0;
- UnfreezePlayer(i);
- }
- }
- }
- if(Spieler[i][pTutorial] > 0)
- {
- if(Spieler[i][pCurrentTutorial] == 1)
- {
- if(vehicleid == Spieler[i][pFSVehicle])
- {
- new Float:health, Float:health2;
- GetVehicleHealth(vehicleid, health);
- GetPlayerHealth(i, health2);
- if(health < 240 && health2 > 0)
- {
- DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
- DeleteVehicle(Spieler[i][pFSVehicle]);
- Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
- SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
- SetCameraBehindPlayer(i);
- Spieler[i][pCurrentTutorial] = 0;
- Spieler[i][pFahrlehrerWarning] = 0;
- SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
- SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
- }
- if(!IsPlayerOnAutobahn(i))
- {
- if(GetVehicleSpeed(vehicleid) > 85)
- {
- Spieler[i][pFahrlehrerWarning] ++;
- format(string, sizeof(string), COLOR_HEX_RED"** "COLOR_HEX_WHITE"%d/10 Fehlerpunkten - Maximal 80km/h!", Spieler[i][pFahrlehrerWarning]);
- SendClientMessage(i, COLOR_RED, string);
- if(Spieler[i][pFahrlehrerWarning] >= 10)
- {
- DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
- DeleteVehicle(Spieler[i][pFSVehicle]);
- Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
- SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
- SetCameraBehindPlayer(i);
- Spieler[i][pCurrentTutorial] = 0;
- SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut! (10/10 Fehlerpunkten)");
- Spieler[i][pFahrlehrerWarning] = 0;
- SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
- }
- }
- }
- }
- else
- {
- DestroyDynamic3DTextLabel(Vehicle[Spieler[i][pFSVehicle]][vehText]);
- DeleteVehicle(Spieler[i][pFSVehicle]);
- Spieler[i][pFSVehicle] = INVALID_VEHICLE_ID;
- SetPlayerPos(i, 1098.1738,-1748.1469,13.3885);
- SetCameraBehindPlayer(i);
- Spieler[i][pCurrentTutorial] = 0;
- SendClientMessage(i, COLOR_RED, "** "COLOR_HEX_GREY"Du bist durchgefallen, versuche es erneut!");
- Spieler[i][pFahrlehrerWarning] = 0;
- SetPlayerCheckpointEx(i, 1098.1738,-1748.1469,13.3885, 2.0, CP_TUTORIAL_6, CP_TYPE_TUTORIAL);
- }
- }
- }
- if(Spieler[i][pBusTime] > 1)
- {
- if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
- {
- if(IsVehicleABus(vehicleid))
- {
- if(IsPlayerInCheckpoint(i))
- {
- Spieler[i][pBusTime] --;
- //format(string, sizeof(string), "~w~Haltestelle..~b~%d", Spieler[i][pBusTime]);
- //GameTextForPlayer(i, string, 1200, 5);
- ShowBusTextDraw(i);
- }
- }
- else
- {
- Spieler[i][pBusTime] = 0;
- HideBusTextDraw(i);
- SendClientMessage(i, COLOR_GREY, "** Der Countdown wurde abgebrochen!");
- }
- }
- }
- else
- {
- if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
- {
- if(IsVehicleABus(vehicleid))
- {
- if(IsPlayerInCheckpoint(i))
- {
- switch(GetPlayerCheckpointID(i))
- {
- // Linie 1
- 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();}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- case CP_BUSFAHRER_LINIE_1_10:
- {
- HideBusTextDraw(i);
- DisablePlayerCheckpointEx(i);
- UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
- SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
- new randomGehalt = randomex(2800, 3200); // Maximum ungf. 35200$
- format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
- SendClientMessage(i, COLOR_WHITE, string);
- new randomSkill = randomex(1, 5);
- format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
- SendClientMessage(i, COLOR_WHITE, string);
- Spieler[i][pJobMoney] += randomGehalt;
- Spieler[i][pJobCount] ++;
- GivePlayerBusSkill(i, randomSkill);
- PlayerPlaySound(i, 1057, 0, 0, 0);
- format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 1 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- print(string);
- }
- // Linie 2
- 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();}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- 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);}
- case CP_BUSFAHRER_LINIE_2_16:
- {
- HideBusTextDraw(i);
- DisablePlayerCheckpointEx(i);
- UpdateDynamic3DTextLabelText(Vehicle[vehicleid][vehText], COLOR_LIGHTWHITE, "Leerfahrt");
- SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Leerfahrt!");
- new randomGehalt = randomex(4000, 4500); // Maximum ungf. 36000$
- format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"$%d "COLOR_HEX_WHITE"auf deinen nächsten Zahltag erhalten!", randomGehalt);
- SendClientMessage(i, COLOR_WHITE, string);
- new randomSkill = randomex(5, 10);
- format(string, sizeof(string), COLOR_HEX_WHITE"Du hast "COLOR_HEX_YELLOW"%d EXP"COLOR_HEX_WHITE" erhalten.", randomSkill);
- SendClientMessage(i, COLOR_WHITE, string);
- Spieler[i][pJobMoney] += randomGehalt;
- Spieler[i][pJobCount] ++;
- GivePlayerBusSkill(i, randomSkill);
- PlayerPlaySound(i, 1057, 0, 0, 0);
- format(string, sizeof(string), "[DEBUG] [BUS] %s(ID:%d) hat Linie 2 in %d Sekunden fertiggestellt.", GetName(i), i, gettime()-Spieler[i][pBusStamp]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- print(string);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement