Beiträge von Sunny10369

    Habe auch ein Problem mit den Cars. Bei den Taxi werde ich immer rausgeworfen außer bei der Taxi limmo. Ich habe auch alles mögliche probiert, Vielleicht kann mir ja jemand Helfen,


    forward IsATaxiCar(carid);
    forward IsATaxi(playerid);
    new TaxiCars[10];


    public IsATaxi(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==10)
    {
    return 1;
    }
    else if(leader==10)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsATaxiCar(carid)
    {
    for(new i = 0; i < sizeof(TaxiCars); i++)
    {
    if(carid == TaxiCars[i])
    {
    return 1;
    }
    }
    return 0;
    }


    if(IsATaxi(newcar))
    {
    if(IsATaxiCar(playerid)) { }
    else
    {
    if(PlayerInfo[playerid][pMember] == 10 ||PlayerInfo[playerid][pLeader] == 10) { }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied der Fraktion");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }



    TaxiCars[0] = AddStaticVehicle(420,-1988.8114,120.6054,27.3174,0.1940,6,6); // Taxi1
    TaxiCars[1] = AddStaticVehicle(420,-1988.7582,128.9441,27.3169,359.5623,6,6); // Taxi2 Limo
    TaxiCars[2] = AddStaticVehicle(409,-1988.7678,138.7023,27.3431,0.6743,0,1); // Taxi3
    TaxiCars[3] = AddStaticVehicle(420,-1988.9442,148.5148,27.3169,0.2032,6,6); // Taxi4
    TaxiCars[4] = AddStaticVehicle(420,-1989.0106,157.2219,27.3251,0.9595,6,6); // Taxi5
    TaxiCars[5] = AddStaticVehicle(420,-1989.0930,166.1077,27.3185,1.5312,6,6); // Taxi6
    TaxiCars[6] = AddStaticVehicle(420,-1989.7849,195.0724,27.3147,359.8025,6,6); // Taxi7
    TaxiCars[7] = AddStaticVehicle(420,-1993.7404,195.2865,27.3169,175.1761,6,6); // Taxi8
    TaxiCars[8] = AddStaticVehicle(420,-1998.0922,195.7587,27.3216,0.1057,6,6); // Taxi9
    TaxiCars[9] = AddStaticVehicle(487,-1992.8213,103.1269,27.7197,270.9072,6,6); // TaxiHeli10


    PS: Beim Taxi 2 (limo) werde ich nicht rausgeworfen und ich kann auch /fare machen. Bei den andern ist es nicht möglich :(
    LG Sunny


    Edit: Kann es sein das es mit dem hier vielleicht zutun hat?
    TransportDuty[playerid] = 0;
    format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoney(playerid, TransportMoney[playerid]);
    ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
    return 1;
    }
    new Veh = GetPlayerVehicleID(playerid);
    mit dem hier? ----> if(Veh == 82 || Veh == 84 || Veh == 85 || Veh == 94)
    {
    if(GetPlayerState(playerid) == 2)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
    return 1;
    }