Beiträge von maddinat0r

    Wird alles mit dini gemach, es sollten einfach die aktuellen Koordinaten gespeichert werden.
    Gemacht wird es mit Spieler[playerid][lastx] = Die x Koordinate
    Und das gleiche mit y und z.

    Ich versuch schon seit Stunden einen /gmx Befehl zu machen, jedoch ohne Erfolg.
    Ich möchte, dass die Koordinaten in der Account.ini vor dem Restart gespeichert werden und mein Script ist kein GF.
    Der Befehl sollte mit dcmd gemacht werden (sollte ja nicht allzu schwer sein, ich nehm auch strcmp Befehle an)

    Okay, versuchs jetzt



    if(IsAYakuzaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 6 || PlayerInfo[playerid][pLeader] != 6)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Yakuza Mafiosi!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAPraesiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 7 || PlayerInfo[playerid][pLeader] != 7)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Präsident/Bodyguard!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAHitmanCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 8 || PlayerInfo[playerid][pLeader] != 8)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Taxifahrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsANewsCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 9 || PlayerInfo[playerid][pLeader] != 9)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein News Reporter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsATaxiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 10 || PlayerInfo[playerid][pLeader] != 10)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Taxifahrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAFSCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 11 || PlayerInfo[playerid][pLeader] != 11)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Fahrlehrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAHellsCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 12 || PlayerInfo[playerid][pLeader] != 12)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Biker der Hells Angels!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAGroveCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 13 || PlayerInfo[playerid][pLeader] != 13)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Grove Street Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsABallasCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 14 || PlayerInfo[playerid][pLeader] != 14)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Ballas Gangster!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAtwoFtwoFCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 15 || PlayerInfo[playerid][pLeader] != 15)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein 2F2F Drifter!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsALSVCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 16 || PlayerInfo[playerid][pLeader] != 16)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Vagos Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAVarriosCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 17 || PlayerInfo[playerid][pLeader] != 17)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Atze!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsARifaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pLeader] != 18)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Rifa Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAWCCCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 19 || PlayerInfo[playerid][pLeader] != 19)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein West Coast Custom Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsATerrorCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 20 || PlayerInfo[playerid][pLeader] != 20)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Terrorist!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAFBICar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 21 || PlayerInfo[playerid][pLeader] != 21)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein FBI Agent!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAFeuerwehrCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 22 || PlayerInfo[playerid][pLeader] != 22)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein News Reporter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsARussiaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 23 || PlayerInfo[playerid][pLeader] != 23)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Russischer Mafiosi!");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }
    if(IsAOamtCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 24 || PlayerInfo[playerid][pLeader] != 24)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Ordnungsamt Beamter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 1;
    }

    Oh habn bisschen geschielt, dachte Das alles unter YakuzaCar ach zu YakuzaCar hingehört^^
    Ich such mal weiter


    EDIT:
    Vielleicht klappt es jetzt

    if(IsAYakuzaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 6 || PlayerInfo[playerid][pLeader] != 6)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Yakuza Mafiosi!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAPraesiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 7 || PlayerInfo[playerid][pLeader] != 7)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Präsident/Bodyguard!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAHitmanCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 8 || PlayerInfo[playerid][pLeader] != 8)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Taxifahrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsANewsCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 9 || PlayerInfo[playerid][pLeader] != 9)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein News Reporter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsATaxiCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 10 || PlayerInfo[playerid][pLeader] != 10)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Taxifahrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAFSCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 11 || PlayerInfo[playerid][pLeader] != 11)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Fahrlehrer!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAHellsCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 12 || PlayerInfo[playerid][pLeader] != 12)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Biker der Hells Angels!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAGroveCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 13 || PlayerInfo[playerid][pLeader] != 13)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Grove Street Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsABallasCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 14 || PlayerInfo[playerid][pLeader] != 14)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Ballas Gangster!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAtwoFtwoFCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 15 || PlayerInfo[playerid][pLeader] != 15)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein 2F2F Drifter!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsALSVCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 16 || PlayerInfo[playerid][pLeader] != 16)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Vagos Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAVarriosCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 17 || PlayerInfo[playerid][pLeader] != 17)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Atze!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsARifaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 18 || PlayerInfo[playerid][pLeader] != 18)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Rifa Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAWCCCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 19 || PlayerInfo[playerid][pLeader] != 19)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein West Coast Custom Mitglied!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsATerrorCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 20 || PlayerInfo[playerid][pLeader] != 20)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Terrorist!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAFBICar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 21 || PlayerInfo[playerid][pLeader] != 21)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein FBI Agent!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAFeuerwehrCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 22 || PlayerInfo[playerid][pLeader] != 22)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein News Reporter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsARussiaCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 23 || PlayerInfo[playerid][pLeader] != 23)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Russischer Mafiosi!");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }
    if(IsAOamtCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] != 24 || PlayerInfo[playerid][pLeader] != 24)
    {
    SendClientMessage(playerid,COLOR_GREY," Du bist kein Ordnungsamt Beamter !");
    RemovePlayerFromVehicle(playerid);
    }
    return 0;
    }

    Ach verdammt, hab geschielt, sry xD
    Um es wieder gut zu machen, starte ich meinen Testserver und suche dir die richtige Zahl für die Entertaste raus xD


    EDIT: 16 ist die richtige Zahl, entweder liegt n Fehler im Script oder du drückst die falsche Taste xD


    if(newkeys == 16)// mein kumpel meint das ist die entertaste bin ich mir aber nicht so sicher weil es doch anderst heist
    {//jedenfals soll das hier passiren
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2695.6880, -1704.6300, 11.8438))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,2315.952880,-1.618174,26.742187);
    }
    }
    }// Die Klammer hat gefehlt, sonst sollte alles richtig sein, vielleicht fehlt nochn return 1;, bin mir aber nicht sicher

    if(strcmp(cmd,"/Taxi",true) == 0)
    ( // oO Keine Normalen Klammern, geschweifte!
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    ( //Geschweifte
    if(Taxivar == 0)
    ( //Geschweifte
    MoveObject(Taxi,993.01104736328,-1380.9935302734,15.088447570801,4.0);
    Taxivar = 1;
    ) //Geschweifte xD
    else
    (// Geschweifte
    MoveObject(Taxi,1006.0093383789,-1381.072265625,15.024868011475,3.0);
    Taxivar = 0;
    ) //Geschweifte
    )// Geschweifte
    else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied des Taxi Teams!"); //Hier fehlen die klammern ganz
    return 1;
    //Klammer fehlt

    Verbesserte Version:

    if(strcmp(cmd,"/Taxi",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    if(Taxivar == 0)
    {
    MoveObject(Taxi,993.01104736328,-1380.9935302734,15.088447570801,4.0);
    Taxivar = 1;
    }
    else
    {
    MoveObject(Taxi,1006.0093383789,-1381.072265625,15.024868011475,3.0);
    Taxivar = 0;
    }
    }
    else { SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied des Taxi Teams!"); }
    return 1;
    }