/veh Problem!!! | Help |

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
  • Hi Leute,


    Ich habe ein problem:


    Wenn ich mit /veh ein Vehicle spawne funktioniert alles gut.
    Aber wenn ich dann /motor eingebe, kommt da nichtmal eine Meldung oder sonst was, und ich kann nicht fahren.
    Das ist auch wenn man bei Jobs Autos braucht, da kann man dann nicht fahren....
    Man kann hineinsteigen, heraussteigen, nicht gefreezed oder sonst was...
    Man kann nur nicht fahren!


    /unfreeze und so, funktioniert nicht...




    Kann mir jemand helfen?!?!?

  • if(strcmp(cmdtext,"/motor",true) == 0)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    State=GetPlayerState(playerid);
    if(IsPlayerConnected(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new newcar = GetPlayerVehicleID(playerid);
    new vid = GetPlayerVehicleID(playerid);
    if(motor[vid] == false)
    {
    //new PlayerName[MAX_PLAYER_NAME];
    //GetPlayerName(playerid, PlayerName,sizeof(PlayerName));
    //print("[INFO CAR(ENGINE)]:%s versucht den Motor von dem Auto[ID %s] zu starten",PlayerName,GetPlayerVehicleID(playerid));
    if(PlayerInfo[playerid][pRest] == 1)
    {
    new Bootcar = GetPlayerVehicleID(playerid);
    for(new X = 0; X < MaxVeh; X++)
    {
    if (Bootcar == PlayerCar[playerid][X][CarId])
    {
    if(PlayerCar[playerid][X][CarArrest] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE,"Du kannst nicht wegfahren, da an den Reifen eine Wegfahrsperre angebracht ist!");
    CarWarn[playerid] = 1;
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = false;
    SendClientMessage(playerid,COLOR_GREY,"Motor abgeschaltet(Wegfahren fehlgeschlagen!)");
    FreezePlayer(playerid);
    GameTextForPlayer(playerid,"~g~/exit ~w~um auszusteigen",2000,1);
    return 1;
    }
    }
    }
    }
    if(vid == PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId])
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    }
    if(IsADrugCar(newcar))
    {
    if(PlayerInfo[playerid][pJob] == 4)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist kein Drogendealer(/exit um das Fahrzeug zu verlassen!)");
    }
    }
    if(IsACopCar(newcar))
    {
    if(IsACop(playerid))
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du
    bist kein Mitglied des San Andreas Police Departments(/exit um das
    Fahrzeug zu verlassen!)");
    }
    }
    if(IsAFireCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist kein Mitglied des Fire Department(/exit um das Fahrzeug zu verlassen!)");
    }
    }
    if(IsATruck(newcar))
    {
    if(IsATruck(newcar))
    {
    if(PlayerInfo[playerid][pJob] == 16)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    //
    SendClientMessage(playerid, TEAM_GROVE_COLOR, "Bitte Fahr zu den Roten Punkt und hole dir dort Prods");
    SetPlayerCheckpoint(playerid, 1385.6671,1038.3048,10.8203, 15.0);
    format(string, sizeof(string), "Produkte: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
    SendClientMessage(playerid, COLOR_WHITE, "Info: Du kannst mit diesem Fahrzeug Produkte ausliefern.");
    SendClientMessage(playerid, COLOR_WHITE, "Info: Die Befehle lauten: /load /buyprods /sellprods");
    //
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist kein Trucker(/exit um das Fahrzeug zu verlassen!)");
    }
    }
    }
    if(IsAVagosCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist kein Mitglied der Vagos(/exit um das Fahrzeug zu verlassen!)");
    }
    }
    /*if(IsABizCar(newcar))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1) { }
    else
    {
    SendClientMessage(playerid,COLOR_WHITE,"Dieses Auto gehört dem Rentcar-Ls Geschäft!");
    SendClientMessage(playerid,COLOR_WHITE,"/rentcar um es zu mieten, /exit um es zu verlassen");
    FreezePlayer(playerid);
    }
    }*/
    if(IsAVIPCar(newcar))
    {
    if(PlayerInfo[playerid][pVIPClub] == 1)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du bist kein VIP Mitglied(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAIceCreamTruck(newcar))
    {
    if(IceDuty[playerid]==1)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Eis Verkäufer(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAMedicCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 4 ||PlayerInfo[playerid][pLeader] == 4)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"
    Du bist kein Mitglied des San Andreas Medic Center(/exit um das
    Fahrzeug zu verlassen)");
    }
    }
    if(IsALCNCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 5 ||PlayerInfo[playerid][pLeader] == 5)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der La Cosa Nostra(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAShowCarEdel(newcar))
    {
    if(Adminmode[playerid]==1)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du kannst dieses Fahrzeug an der Kasse kaufen wenn du magst!");
    }
    }
    if(IsAHandelCar(newcar))
    {
    if(Adminmode[playerid]==1)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du kannst dieses Fahrzeug an der Kasse kaufen wenn du magst!");
    }
    }
    if(IsATriadenCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 15 ||PlayerInfo[playerid][pLeader] == 15)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Triaden(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAYakuzaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Yakuza(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAPraesiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Regierung(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAHitmanCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Hitmans(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsANewsCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der San News(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAFahrschulCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || TakingLesson[playerid] == 1)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"
    Du bist kein Mitglied der Fahrschule oder nimmt keine Fahrstunde(/exit
    um das Fahrzeug zu verlassen)");
    }
    }
    if(IsABikerCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Biker Boyz(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAGrooveCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Groove Street Family(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAMullCar(newcar))
    {
    if(Mullabfuhr[playerid] == 1 && PlayerInfo[playerid][pJob] == 17)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2,"Du bist kein Müllmann oder nicht im Dienst!");
    }
    }
    if(IsABallasCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Rollen High Ballas(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsARifaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der San Fierro Rifa(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsATerrorCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der Terroristen(/exit um das Fahrzeug zu verlassen)");
    }
    }
    if(IsAoAmtCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"
    Du bist kein Mitglied des Los Santos Ordnungsamtes(/exit um das
    Fahrzeug zu verlassen)");
    }
    }
    if(IsATaxiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"
    Du bist kein Mitglied des Taxi & Co. Unternehmens(/exit um das
    Fahrzeug zu verlassen)");
    }
    }
    if(IsAFBICar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 21 ||PlayerInfo[playerid][pLeader] == 21)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = true;
    SendClientMessage(playerid,COLOR_GREY,"Motor wird gestartet..");
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s startet den Motor", pname);
    SetPlayerChatBubble(playerid, string,COLOR_PURPLE,40,2000);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Mitglied der FBI(/exit um das Fahrzeug zu verlassen)");
    }
    }
    }
    else if(motor[vid] == true)
    {
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    motor[vid] = false;
    SendClientMessage(playerid,COLOR_GREY,"Motor abgeschaltet");
    }
    }
    return 1;
    }

  • Verwende nächstesmal den PWN BB Code.
    So ist es zu unübersichtlich.