aufeinmal ein Textdraw

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Zeig uns mal "OnPlayerEnterVehicle" (oder so :D)

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • Function OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    FRAC_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
    if (LessonExitedVehicle[playerid] != 0)
    {
    if (IsADrivingTest(vehicleid) || IsAFlyingTest(vehicleid) || IsASailingTest(vehicleid))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Willkommen zurück...");
    LessonExitedVehicle[playerid] = 0;
    KillTimer(drivingtestexittmr[playerid]);
    }
    }
    new newcar = GetPlayerVehicleID(playerid);
    if(IsABoat(newcar))
    {
    if(PlayerInfo[playerid][pBoatLic] < 1 && GetPlayerState(playerid) == 2)
    {
    if(TakingLesson[playerid] == 1||pTestBoat[playerid] != 1) { }
    else { RemovePlayerFromVehicle(playerid); }
    }
    }
    // SetPlayerArmedWeapon(playerid,29);
    if(IsANoTachoVehicle(vehicleid) || IsPlayerNPC(playerid))
    {
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    }
    if(GetVehicleModel(vehicleid) == 548 && ispassenger == 1)
    {
    PutPlayerInVehicle(playerid, vehicleid, 1);
    TogglePlayerControllable(playerid, 1);
    InCargo[playerid] = vehicleid;
    }
    if(GetVehicleModel(vehicleid) == 417 && ispassenger == 1)
    {
    PutPlayerInVehicle(playerid, vehicleid, 1);
    TogglePlayerControllable(playerid, 1);
    InLevi[playerid] = vehicleid;
    }
    if(GetVehicleModel(vehicleid) == 427 && ispassenger == 1)
    {
    PutPlayerInVehicle(playerid, vehicleid, 1);
    TogglePlayerControllable(playerid, 1);
    InEnfo[playerid] = vehicleid;
    }
    if(PlayerInfo[playerid][pAdmin] == 0)
    {
    if(GetVehicleModel(vehicleid) == 432 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 520)
    {
    if(IsPlayerInFrac(playerid,3)|| PlayerInfo[playerid][pLeader] == 7) { }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD1,"Du weißt nicht wie du in das Fahrzeug kommen sollst!");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(!IsANoTachoVehicle(vehicleid) && ispassenger != 1)
    {
    if(TDeaktivierung[playerid] == 1)
    {
    SetTimerEx("foursecondtextdraw",4000,0,"i",playerid);
    TextDrawShowForPlayer(playerid, Fahrzeugkontrolle);
    TextDrawShowForPlayer(playerid,InfoIcon);
    return 1;
    }
    if(TDeaktivierung[playerid] == 0)
    {
    return 1;
    }
    }
    if(GetVehicleModel(vehicleid) == 532 && ispassenger != 1 && PlayerInfo[playerid][pJob] == 6)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "INFO: {FFFFFF}Ernte (/ernten) nun die Felder!");
    SetTimerEx("foursecondtextdraw",4000,0,"i",playerid);
    TextDrawHideForPlayer(playerid, Fahrzeugkontrolle);
    TextDrawShowForPlayer(playerid, FarmerInfo);
    TextDrawShowForPlayer(playerid,InfoIcon);
    }
    return 1;
    }

  • Zeig mir mal bitte "forcesecondtextdraw" :)

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • public foursecondtextdraw(playerid)
    {
    TextDrawHideForPlayer(playerid, Fahrzeugkontrolle);
    TextDrawHideForPlayer(playerid,InfoIcon);
    TextDrawHideForPlayer(playerid, FarmerInfo);
    }
    Sollte glaub ich mal nix damit zutun haben. :=)

  • Schon mal nach TextDrawShowForPlayer(playerid,"0"); oder so geschaut ? Kann sein, dass sich ein Fehler untergeschlichen hat. Oder das mal ein Test Textdraw war ;)

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • WantedLevelAnzahl[playerid] = TextDrawCreate(522.000000, 99.000000, "0");
    TextDrawBackgroundColor(WantedLevelAnzahl[playerid], 255);
    TextDrawFont(WantedLevelAnzahl[playerid], 3);
    TextDrawLetterSize(WantedLevelAnzahl[playerid], 0.560000, 1.799999);
    TextDrawColor(WantedLevelAnzahl[playerid], -1);
    TextDrawSetOutline(WantedLevelAnzahl[playerid], 1);
    TextDrawSetProportional(WantedLevelAnzahl[playerid], 1);
    Nur das mehr nicht.

  • Das wär dann wohl der Textdraw ? Klammer das mal aus und schau was passiert ;)

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • hast dus nun ausgeklammert und geschaut was passiert?

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Wird wohl ein Timer aktiviert worden sein :o Komische Platzierung eines Wantedstands... hmm

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • Wo ichs so seh das könnt auch ein "o" sein :D Aber das sieht auch nicht unbedingt nach textdraw aus :o

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • Function OnPlayerStateChange(playerid, newstate, oldstate)
    {
    FRAC_OnPlayerStateChange(playerid, newstate, oldstate);
    if( newstate == PLAYER_STATE_DRIVER )
    {
    if(PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pMember] == 24) return 1;
    if(GetPlayerVehicleID(playerid) != CarHacker[playerid][lastcarid])
    {
    if(CarHacker[playerid][lastcartime] > gettime())
    {
    PlayerInfo[playerid][pLevel] = -999;
    BanEx(playerid,"Carswitchhack");
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s wurde vom AntiBot gebannt (JustBunker).",name);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    Ban(playerid);
    return 1;
    }
    CarHacker[playerid][lastcartime] = gettime() + 1;
    CarHacker[playerid][lastcarid] = GetPlayerVehicleID(playerid);
    }
    }
    if(newstate == PLAYER_STATE_DRIVER)
    {
    SetPlayerArmedWeapon(playerid,0);
    if(PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pMember] == 24) return 1;
    }
    if(newstate == PLAYER_STATE_PASSENGER)
    {
    // SetPlayerArmedWeapon(playerid,29);
    new Weap[2];
    GetPlayerWeaponData(playerid, 4, Weap[0], Weap[1]);
    SetPlayerArmedWeapon(playerid, Weap[0]);
    }
    M_OnPlayerStateChange(playerid, newstate, oldstate);
    new string[90];
    if(newstate==PLAYER_STATE_DRIVER)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
    {
    if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
    {
    IsTowTrucker[playerid]=1;
    TowTruckers++;
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Nutze die Strg Taste, um ein Auto abzuschleppen.");
    }
    }
    }
    else if(TowTruckers > 0 && newstate == PLAYER_STATE_DRIVER)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Wenn Probleme auftreten ruf den Ordnungsdienst mit /noamt.");
    }
    else if(newstate == PLAYER_STATE_ONFOOT &&(IsTowTrucker[playerid] == 1))
    {
    IsTowTrucker[playerid] = 0;
    TowTruckers--;
    }
    else if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 417)
    {
    SetPlayerPos(playerid, 1261.269,-803.480,1185.830);
    SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 1);
    InLevi[playerid] = GetPlayerVehicleID(playerid);
    }
    else if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 548)
    {
    SetPlayerPos(playerid, 89.773613, 2027.749756, 2865.647705);
    SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    InCargo[playerid] = GetPlayerVehicleID(playerid);
    }
    else if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 427 && IsACop(playerid))
    {
    SetPlayerPos(playerid, 260.4671,118.6456,1029.7023);
    SetPlayerFacingAngle(playerid, 178.6620);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 3);
    InEnfo[playerid] = GetPlayerVehicleID(playerid);
    }
    else if(newstate == PLAYER_STATE_PASSENGER && PlayerInfo[playerid][pJailed] > 0 && !IsAPlane(GetPlayerVehicleID(playerid)))
    {
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
    {
    PlayerInKart[playerid] = 0;
    KartingPlayers --;
    }
    if(TransportDuty[playerid] > 0)
    {
    if(TransportDuty[playerid] == 1)
    {
    TaxiDrivers -= 1;
    }
    else if(TransportDuty[playerid] == 2)
    {
    BusDrivers -= 1;
    }
    TransportDuty[playerid] = 0;
    format(string, sizeof(string), "* Nun bist du nicht mehr im Dienst, du hast $%d verdient.", TransportMoney[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoney(playerid, TransportMoney[playerid]);
    ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
    }
    if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
    {
    if(IsPlayerConnected(TransportDriver[playerid]))
    {
    TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
    TransportTime[TransportDriver[playerid]] = 0;
    TransportCost[TransportDriver[playerid]] = 0;
    format(string, sizeof(string), "~w~Der Transport kostet~n~~r~$%d",TransportCost[playerid]);
    GameTextForPlayer(playerid, string, 5000, 1);
    format(string, sizeof(string), "~w~Der Kunde verlässt das Fahrzeug~n~~g~Du bekommst $%d",TransportCost[playerid]);
    GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
    GivePlayerMoney(playerid, -TransportCost[playerid]);
    TransportCost[playerid] = 0;
    TransportTime[playerid] = 0;
    TransportDriver[playerid] = 999;
    }
    }
    TelePos[playerid][0] = 0.0;
    TelePos[playerid][1] = 0.0;
    }
    if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new vehicleid = GetPlayerVehicleID(playerid);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0)
    {
    if(GetPlayerMoney(playerid) < TransportValue[i])
    {
    format(string, sizeof(string), "* Du brauchst $%d um einsteigen zu können.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    RemovePlayerFromVehicle(playerid);
    }
    else
    {
    if(TransportDuty[i] == 1)
    {
    format(string, sizeof(string), "* Du bezahlst $%d dem Taxifahrer.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Kunde %s betritt dein Taxi.", name);
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    TransportTime[i] = 1;
    TransportTime[playerid] = 1;
    TransportCost[playerid] = TransportValue[i];
    TransportCost[i] = TransportValue[i];
    TransportDriver[playerid] = i;
    }
    else if(TransportDuty[i] == 2)
    {
    format(string, sizeof(string), "* Du bezahlst $%d dem Busfahrer.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Passagier %s betritt den Bus.", name);
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    }
    GivePlayerMoney(playerid, - TransportValue[i]);
    TransportMoney[i] += TransportValue[i];
    }
    }
    }
    }
    }
    if(newstate == PLAYER_STATE_WASTED)
    {
    if(WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 800;
    new count;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsACop(i) && CrimInRange(70.0, playerid,i))
    {
    count = 1;
    format(string, sizeof(string), "~w~Verbrecher getötet ~g~$%d", price);
    GameTextForPlayer(i, string, 5000, 1);
    ConsumingMoney[i] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    SaveFraktionsKassen();
    PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
    }
    }
    }
    if(count == 1)
    {
    if(WantedLevel[playerid] >= 60)
    {
    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 2;
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 45);
    format(string, sizeof(string), "Du bist für %d Minuten (%d Sekunden) im Gefängnis und musst $%d bezahlen.", (PlayerInfo[playerid][pJailTime]/60), PlayerInfo[playerid][pJailTime], price);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 60);
    TextDrawHideForPlayer(playerid, WantedStern[playerid]);
    TextDrawHideForPlayer(playerid, WantedLevelAnzahl[playerid]);
    }
    else
    {
    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 45);
    format(string, sizeof(string), "Du bist für %d Sekunden im Gefängnis und musst $%d bezahlen.", PlayerInfo[playerid][pJailTime], price);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    TextDrawHideForPlayer(playerid, WantedStern[playerid]);
    TextDrawHideForPlayer(playerid, WantedLevelAnzahl[playerid]);
    }
    }
    }
    }
    if(newstate == PLAYER_STATE_DRIVER) //buggy dont finnish
    {// 38 / 49 / 56 = SS
    // SetPlayerArmedWeapon(playerid, 0);
    new newcar = GetPlayerVehicleID(playerid);
    new oldcar = gLastCar[playerid];
    TelePos[playerid][0] = 0.0;
    TelePos[playerid][1] = 0.0;
    if(IsABoat(newcar))
    {
    if(PlayerInfo[playerid][pBoatLic] < 1)
    {


    }
    }
    else if(IsAPlane(newcar))
    {
    if(PlayerInfo[playerid][pFlyLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    //SendClientMessage(playerid, COLOR_GRAD1, "Du hast noch keinen Flugschein, und kannst den Motor nicht starten.");
    // SendClientMessage(playerid, COLOR_GRAD1, "Du verlässt den Fahrzeug");
    // RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsABike(newcar))
    {
    if(PlayerInfo[playerid][pMotoLic] < 1)
    {
    if(TakingLesson[playerid] == 1) { }
    else
    {
    // SendClientMessage(playerid, COLOR_GRAD1, "Du hast noch keinen Motorrad Schein, und kannst den Motor nicht starten.");
    // SendClientMessage(playerid, COLOR_GRAD1, "Du verlässt den Fahrzeug");
    // RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsARoller(newcar))
    {
    if(PlayerInfo[playerid][pRollerLic] < 1)
    {
    if(TakingLesson[playerid] == 1)
    {


    }
    else
    {
    // SendClientMessage(playerid, COLOR_LIGHTRED, "* Du hast kein Roller Schein !");
    // SendClientMessage(playerid, COLOR_WHITE, "Wenn du erwischt wirst, wird das Folgen haben!");
    }
    }
    }
    else if(IsALKW(newcar))
    {
    if(PlayerInfo[playerid][pLKWLic] == 0)
    {
    if(TakingLesson[playerid] == 0)
    {
    // SendClientMessage(playerid, COLOR_GRAD1, "Du hast noch keinen LKW Schein, und kannst den Motor nicht starten.");
    // SendClientMessage(playerid, COLOR_GRAD1, "Du verlässt den Fahrzeug");
    // RemovePlayerFromVehicle(playerid);
    }
    }
    }
    else if(IsANoLicVehicle(newcar)) { }
    else
    {
    if(PlayerInfo[playerid][pCarLic] < 1)
    {
    if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    //SetPlayerWantedLevel(playerid,WantedLevel[playerid]+1);
    }
    if((TakingLesson[playerid] == 1) || IsPlayerNPC(playerid))
    {
    }
    else
    {
    return 1;
    }
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    }
    else if(PlayerDrunk[playerid] >= 5)
    {
    WantedPoints[playerid] += 1;
    SetPlayerCriminal(playerid,255, "Betrunken am Steuer...");
    }
    }


    if(GetVehicleModel(newcar) == 408)
    {
    if(PlayerInfo[playerid][pJob] == 17)
    {
    if(Mullabfuhr[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"[INFO]{FFFFFF} Um deinen Dienst als Müllmann zu starten, benutze /starten");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieses Wagen ist nur für Müllmänner da!");
    RemovePlayerFromVehicle(playerid);
    }
    }


    for(new v=0; v<sizeof(HafenKlause); v++)
    {
    if(newcar == HafenKlause[v])
    {
    new cost = SBizzInfo[1][sbEntranceCost];
    if(GetPlayerMoney(playerid) >= cost)
    {
    GivePlayerMoney(playerid,-cost);
    SBizzInfo[1][sbTill] += cost;
    format(string,sizeof(string),"Bootsfahrt:Du zahlst $%d",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    //GameTextForPlayer(playerid,string,5000,3);
    }
    else
    {
    format(string,sizeof(string)," Die Bootsfahrt kostet $%d. Du hast nicht soviel!",cost);
    SendClientMessage(playerid,COLOR_WHITE,string);
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    }
    if(GetVehicleModel(newcar) == 525 && !IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,COLOR_WHITE," Dieser Wagen ist Eigentum der Abschleppfirma!");
    RemovePlayerFromVehicle(playerid);
    }
    if(!IsPlayerInFrac(playerid, 11) && TakingLesson[playerid] != 1)
    {
    for(new pv = 0; pv < sizeof(FahrschulVehs); pv++)
    {
    if(newcar == FahrschulVehs[pv])
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Fahr/Flugprüfung!");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }
    }
    if(IsAnAmbulance(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22) { }
    else { RemovePlayerFromVehicle(playerid); }
    }
    if(PlayerKarting[playerid] != 0)
    {
    new kart = GetPlayerVehicleID(playerid);
    if(kart==110||kart==111||kart==112||kart==113||kart==114||kart==115)
    {
    PlayerInKart[playerid] = 1;
    KartingPlayers ++;
    }
    }
    if(IsABus(newcar) && newcar != RMBus)
    {
    if(PlayerInfo[playerid][pJob] != 14)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Busfahrer !");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    if(oldcar != 301)
    {
    if((oldcar != 0) && (HireCar[playerid] != oldcar))
    {
    if(gLastDriver[oldcar] == playerid && oldcar != newcar)
    {
    gLastDriver[oldcar] = 300;
    gCarLock[oldcar] = 0;
    UnLockCar(oldcar);
    }
    }
    }


    gLastCar[playerid] = newcar;
    gLastDriver[newcar] = playerid;
    }
    if(newstate == PLAYER_STATE_SPAWNED)
    {
    new Float: lwx, Float:lwy, Float:lwz;
    GetPlayerPos(playerid, lwx, lwy, lwz);
    if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || IsPlayerInRangeOfPoint(playerid,1000.0, -1041.9,-1868.4,79.1))
    {
    SetPlayerSpawn(playerid);
    }
    if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
    else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
    MedicBill[playerid] = 1;
    TelePos[playerid][0] = 0.0;
    TelePos[playerid][1] = 0.0;
    gPlayerSpawned[playerid] = 1;
    SafeTime[playerid] = 60;
    }
    return 1;
    }

  • if(SpeedoON[i] == 0)
    {
    TextDrawShowForPlayer(i, box[i]); TextDrawShowForPlayer(i, fahrzeug[i]); TextDrawShowForPlayer(i, kmh[i]);
    TextDrawShowForPlayer(i, tank[i]); TextDrawShowForPlayer(i, tFuelInfo[i]);
    TextDrawShowForPlayer(i, tFuelLogo[i]);TextDrawShowForPlayer(i, kmhanzeige[i]);TextDrawShowForPlayer(i, Tacho[i][15]);
    SpeedoON[i] = 1;
    }
    (?)