Beiträge von Filip_D.

    Ja hallo auch, aber ich brauch immmernoch hilfe beim Debuggen oder wie des heißt, weil ich des noch nie gemacht habe, bzw es nicht verstehe.


    LG

    Ja den 2ten Link von dem hab ich das Script auch übernommen, aber es geht immernoch nicht :)


    LG


    Sry habs auch gerade mit 2 Getestet geht aber auch nicht :)

    Hey,


    Ich habe als Filterscript das FIlterscript von Trooper[Y] eingefügt, das Abseilungsystem >> LINK <<


    Ich habe es selber Versucht, doch wenn ich Numpad 1 , 2 und numpad + Drücke dann passiert nichts also ich kann mich nicht Abseilen.


    Ich weiß nicht woran das Liegt und ich weiß nicht warum es nicht geht weil ich das ja auch als FS eingetragen habe, ich habe hier auch einen Pastebin >> Link <<


    Liebe Grüße, Filip

    Hey,


    Ich habe folgendes Problem, ich habe irgendwas gemacht damit man sich als User Leader machen kann von Gangs und Fraktionen, sollte ja nicht sein :)


    Hier der Code:


    if(strcmp("/Leadermake", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] <= 2000)
    {
    SendClientMessage(playerid, COLOR_KEINADMIN, "*** INFO: Dies ist ein Adminbefehl, du bist kein Admin.");
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "___________________________________________________________________________________");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "Benutze: /Leadermake [SpielerName/ID] [Number(1-24; -1 für Leaderuninvite)]");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "1 = LVPD | 2 = Parkhouse Drifter | 3 = Feuerwehr | 4 = Medic | 5 = La Cosa Nostra ");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "6 = Yakuza | 7 = FBI | 8 = Hitman | 9 = New's Reporter | 10 = Wheelman | 11 = Fahrschule ");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "12 = Regierung | 13 = Ordnungsamt | 14 = LSPD | 15 = Biker Boys | 16 = SFPD ");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "17 = Camorra | 18 = Aztecas | 19 = Grove Street | 20 = Ballas | 21 = WCC ");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "22 = Triaden | 23 = Red Soldiers | 24 = L.S. Vagos | 25 = Guerilla | 26 = Cali Kartell");
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "___________________________________________________________________________________");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    new level = strval(tmp);
    if(level > 26 || level < -1) { SendClientMessage(playerid, COLOR_ERRORTEXT, " Es gibt nur 26 Fraktionen/Gangs, bitte wähle zwischen 1-25!"); return 1; }
    if(IsPlayerConnected(giveplayerid))
    {
    if(PlayerInfo[giveplayerid][pMember] > 0)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Dieser Spieler ist ein Member einer Gang/Fraktion!");
    return 1;
    }
    new ftext[20];
    if(level == -1) { ftext = "Zivilisten"; }
    else if(level == 1) { ftext = "LV-PD"; }
    else if(level == 2) { ftext = "Drift Access"; }
    else if(level == 3) { ftext = "Feuerwehr"; }
    else if(level == 4) { ftext = "Medic"; }
    else if(level == 5) { ftext = "La Cosa Nostra"; }
    else if(level == 6) { ftext = "Yakuza"; }
    else if(level == 7) { ftext = "FBI"; }
    else if(level == 8) { ftext = "Hitman Agency"; }
    else if(level == 9) { ftext = "News Reporter"; }
    else if(level == 10) { ftext = "Wheelman Agency"; }
    else if(level == 11) { ftext = "Fahrschule"; }
    else if(level == 12) { ftext = "Regierung"; }
    else if(level == 13) { ftext = "Ordnungsamt"; }
    else if(level == 14) { ftext = "LS-PD"; }
    else if(level == 15) { ftext = "Biker Boys"; }
    else if(level == 16) { ftext = "SF-PD"; }
    else if(level == 17) { ftext = "Camorra"; }
    else if(level == 18) { ftext = "V.L.Atztecas"; }
    else if(level == 19) { ftext = "Grove Street"; }
    else if(level == 20) { ftext = "Ballas"; }
    else if(level == 21) { ftext = "West Coast Customs"; }
    else if(level == 22) { ftext = "Triaden"; }
    else if(level == 23) { ftext = "Red Soldiers"; }
    else if(level == 24) { ftext = "L.S.Vagos"; }
    else if(level == 25) { ftext = "Guerillas"; }
    else if(level == 26) { ftext = "Cali Kartell"; }
    else { return 1; }
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[giveplayerid][pLeader] = level;
    PlayerInfo[giveplayerid][pTeam] = level;
    PlayerInfo[giveplayerid][pRank] = 12;
    format(string, sizeof(string), " Du wurdest vom Admin %s zum Leader der/den %s gemacht.", sendername, ftext);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), " Du hast %s zum Leader der/den %s gemacht.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    printf("Admin %s hat %s einen Leaderinvite für %s gegeben.", sendername, giveplayer, ftext);
    format(string,sizeof(string),"Admin %s hat %s einen Leaderinvite für %s gegeben.", sendername, giveplayer, ftext);
    Kleidungsshop[giveplayerid] = 1;
    JoinSkinAuswahl(giveplayerid);
    EnterToLog("makeleader",string);
    if(level != -1)
    {
    new Tage = 30;
    new wielange = (Tage*24*60*60);
    new Zeit = wielange+Time();
    PlayerInfo[giveplayerid][pInviteSperre] = Zeit;
    format(string, sizeof(string), "UPDATE `users` SET `InviteDatum`='%d' WHERE `Name`='%s'", Time(), giveplayer);
    self_mysql_query(string);
    }
    if(PlayerInfo[giveplayerid][pAdmin] < 1337)
    {
    Kleidungsshop[giveplayerid] = 1;
    PlayerInfo[giveplayerid][pJob] = 0;
    JoinSkinAuswahl(giveplayerid);
    SendClientMessage(giveplayerid, COLOR_LIGHTRED, "* Wähle einen Skin aus mit den Pfeiltasten. Bestätigen mit Umschalt.");
    SetPVarInt(giveplayerid, "PVTeam", level);
    }
    }
    }
    return 1;
    }


    Und noch ein Problem, wenn ich /dtc eingebe steht ich bin kein Admin obwohl ich weiß das des nicht sein kann :(


    if(strcmp(cmd, "/deletethiscar", true) == 0 || strcmp(cmd, "/dtc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] <= 2000)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "** INFO ** Das ist ein Adminbefehl, du bist kein Admin!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    DestroyVehicle(GetPlayerVehicleID(playerid));
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_GREY, "Du hast dieses Fahrzeug erfolgreich gelöscht.");
    }
    }
    return 1;
    }


    LG

    Hey,


    Ich habe Folgendes Problem, wenn ich ESC Drücke kann ich auf einmal garnichts mehr mit der Maus Anfangen ich habe es auch in Kompibilitätsmodus auf Windows 98 Gesetzt jedoch treten dannach mehrere Bugs auf, z.B Ich kann keine Texte mehr Einfügen und ich habe die Möglichkeit nicht mehr zu Springen,


    Kennt jemand eine Altanative wie man den Bug Fixen kann?


    LG

    So gehts aber immernoch nicht


    if(strcmp(cmd,"/showmarke",true)==0)
    {
    new rtext[64];
    if(gTeam[playerid] == 5 || PlayerInfo[playerid][pFMember] < 255)//The 2 Organisations
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Solitario"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Adepto"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Soldato"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Consiguere"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Destro"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Don"; }
    else { rtext = "Bambino"; }
    }
    else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Praktikant"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Polizeimeister-Anwärter"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Polizeimeister"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Polizeiobermeister"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Polizei-Ausbilder"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Polizeikommissar"; }
    else if(PlayerInfo[playerid][pRank] == 7) { rtext = "Polizeioberkommissar"; }
    else if(PlayerInfo[playerid][pRank] == 8) { rtext = "Polizeihauptkommissar"; }
    else if(PlayerInfo[playerid][pRank] == 9) { rtext = "Polizeiratsanwärter"; }
    else if(PlayerInfo[playerid][pRank] == 10) { rtext = "Polizeirat"; }
    else if(PlayerInfo[playerid][pRank] == 11) { rtext = "Polizeioberrat"; }
    else if(PlayerInfo[playerid][pRank] == 12) { rtext = "Polizeidirektor"; }
    else if(PlayerInfo[playerid][pRank] == 13) { rtext = "Polizei-Präsident"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Auszubildender Polizist"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Ausgebildeter Polizist"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Streifenpolizist-Zufuß"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Polizeistreife-Auto"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Pressesprecher der Polizei"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Einsatzleitung"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)//RS
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Erfahrener"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Killer"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Elite"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Zweite Hand"; }
    else if(PlayerInfo[playerid][pRank] == 6 || PlayerInfo[playerid][pRank] == 12) { rtext = "Red King"; }
    else { rtext = "Neuling"; }
    }
    else if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)//WHEELMEN
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Member"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Spezial Member"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Co-Leader"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Leader"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Private"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Sergeant"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Major"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Captain"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Lieutenant"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Personenschutz"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Geheimdienst"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Geheimdienst Leiter"; }
    else if(PlayerInfo[playerid][pRank] >= 7 && PlayerInfo[playerid][pRank] < 12) { rtext = "Minister"; }
    else if(PlayerInfo[playerid][pRank] == 12) { rtext = "Bundespräsident"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Azubi"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Neuling"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Local Reporter"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Local Editor"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Network Anchor"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Network Producer"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Taxi Rookie"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Taxi Company Owner"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(playerid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[playerid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[playerid][pRank] == 2) { rtext = "Instructor"; }
    else if(PlayerInfo[playerid][pRank] == 3) { rtext = "Senior Instructor"; }
    else if(PlayerInfo[playerid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[playerid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[playerid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if (ProxDetectorS(8.0, playerid, giveplayerid))
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "|***DIENSTMARKE***|");
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Name: %s ", sendername);
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Rang: %s ", rtext);
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "|***DIENSTMARKE***|");
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Staatsfraktion: %s ", ftext);
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Du hast deine Dienstmarke %s gezeigt", giveplayer);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
    }

    Okay Danke, dann noch eine Frage, also im Script ist rtext Definiert, aber mir wird der Rang trotzdem nicht Angezeigt? Wieso das, ich frage hier damit ich kein 2tes Thema erstelle


    if(strcmp(cmd,"/showmarke",true)==0)
    {
    new rtext[20];
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showmarke [Playerid/TeilDesNamen]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if (ProxDetectorS(8.0, playerid, giveplayerid))
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "|***DIENSTMARKE***|");
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Name: %s ", sendername);
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Rang: %s ", rtext);
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "|***DIENSTMARKE***|");
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Du hast deine Dienstmarke %s gezeigt", giveplayer);
    SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Spieler nicht in deiner nähe!");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
    return 1;
    }
    }
    }
    }