Beiträge von Soldtodie

    Müsste funktionieren:


    if (strcmp(cmd, "/back", true) ==0 )
    {
    if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_WARN,"Du musst im Fahrzeug sitzen!");
    for(new i = 1;i<MAX_AUTOS;i++)
    {
    if(PlayerAuto[i][id_x] == GetPlayerVehicleID(playerid))
    {
    if(strcmp(PlayerAuto[i][vkey],Spielername(playerid),false))return SendClientMessage(playerid,COLOR_WARN,"Dieses Auto gehört nicht dir!");
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    return 1;
    }
    }
    return 1;
    }

    Wenn du das Pickup dann nicht nochmals verwendest also so:


    if(pickupid == yakuzarunter)
    {
    GameTextForPlayer(playerid, "~y~Benutze /Yakuzarunter",3000, 3);
    }


    Dann musst du davor kein "yakuzarunter = createpickup" sondern nur "createpickup" also ohne "yakuzarunter =" schreiben!
    Und das new yakuzarunter löschen!

    CreateDynamicObject(1408, -2070.7338867188, -80.21354675293, 34.915683746338, 0, 0, 179.99450683594,300.0);


    Ander das zu:


    CreateDynamicObject(1408, -2070.7338867188, -80.21354675293, 34.915683746338, 0, 0, 179.99450683594);

    Versuch es mal so:


    if(strcmp(cmd, "/Gangequip", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5.0,2819.0388,-1169.9384,1025.5703) || IsPlayerInRangeOfPoint(playerid,5.0,1211.8036,-15.4760,1000.9219) || IsPlayerInRangeOfPoint(playerid,5.0,745.0085,1439.7786,1102.7031) || IsPlayerInRangeOfPoint(playerid,5.0,327.8148,1482.8434,1084.4375) || IsPlayerInRangeOfPoint(playerid,5.0,259.5170,1243.1080,1084.2578) || IsPlayerInRangeOfPoint(playerid,5.0,2267.2373,-79.2482,26.7834) || IsPlayerInRangeOfPoint(playerid,5.0,27.3693,1343.2300,1084.3750))
    if (IsPlayerInRangeOfPoint(playerid,5.0,1233.1462,-981.1647,43.4766) || IsPlayerInRangeOfPoint(playerid,5.0,145.6218,1367.0225,1083.8594) || IsPlayerInRangeOfPoint(playerid,5.0,236.5579,1064.8623,1084.2083) || IsPlayerInRangeOfPoint(playerid,5.0,145.5831,1366.8931,1083.8594) || IsPlayerInRangeOfPoint(playerid,5.0,-222.6197,1400.7908,27.7656) || IsPlayerInRangeOfPoint(playerid,5.0,503.2602,-75.1576,998.7651) || IsPlayerInRangeOfPoint(playerid,5.0,2491.7283,-1690.8501,14.7656))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_RED, "WARNUNG : Wenn du kein Waffenschein hast, wirst du von Kent_Brockman gekickt!");
    SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /gangequip [item nummer]");
    SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: MP5+Deagle");
    return 1;
    }
    if(strcmp(tmp,"1",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
    if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    ResetPlayerWeapons(playerid);
    return 1;
    }
    }
    else if(strcmp(tmp,"2",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
    if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    GivePlayerWeapon(playerid, 24, 500);
    GivePlayerWeapon(playerid, 29, 500);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "WARNUNG : Wenn du kein Waffenschein hast, wirst du von Kent_Brockman gekickt!");
    SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /gangequip [item nummer]");
    SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: MP5+Deagle");
    return 1;
    }
    }
    }

    Also hab jetzt einen Befehl gemacht, wo ein Fraktionsfahrzeug für alle außer für die Fraktionsmember abschließt, aber irgentwie klappt das nicht so, denn da kommt tausend mal der Text von SendClientMessage!


    Hier der Befehl:


    if(!strcmp(cmdtext,"/fklock",true))
    {
    new newcar = GetPlayerVehicleID(playerid);
    for(new f=0; f<PlayerInfo[playerid][pMember] == 13 ||PlayerInfo[playerid][pLeader] == 13; f++)
    {
    if(IsALSFahrschulCar(newcar))
    {
    if(PlayerInfo[playerid][pMember] == 13 ||PlayerInfo[playerid][pLeader] == 13)
    {
    if(lock[newcar] == false)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"Du musst in einem Fahrzeug sitzen.");
    for(new i=0; i < MAX_PLAYERS; i++)
    {
    SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
    SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),f,0,0);
    SendClientMessage(playerid,0xFFFFFFAA,"Der Fraktionswagen wurde für nicht Member zugeschlossen.");
    }
    }
    }
    }
    }
    return 1;
    }

    Also ich wollte wissen wie man machen kann, dass wenn man /lock eingibt alle Cars der Fraktion FBI zugeschlossen werden! Und nur die Leute der Fraktion FBI können dann noch rein!

    Versuch es mal so:


    if(IsADrivingTest(vehicleid))
    {
    if(TakingLesson[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_YELLOW, "Dieses Fahrzeug gehört der Fahrschule!");
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du hast keinen Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    }
    }

    Ich glaub er weis viel mehr als du und wenn du den Satz von ihm nicht verstehst und es dann Falsch machst kann er auch nichts dazu, aussrasten musst du auch nicht! Wenn du dir nicht helfen lassen willst dann lass es!