Beiträge von McGarrett

    new string[128], string2[128], string3[128], string4[128], string5[128];
    format(string,sizeof(string),"{00FFD2FF}Supporter Befehle:{FAFAFAFF}/kick <ID> <GRUND>,/supportcar");
    SendClientMessage(playerid,Weiß,string);
    format(string2,sizeof(string2),"{9BFF00FF}Moderator Befehle: {FAFAFAFF}/repair,/ban <ID> <GRUND>");
    SendClientMessage(playerid,Weiß,string2);
    format(string3,sizeof(string3),"{6E6E6EFF}Administrator Befehle: {FAFAFAFF}/cr(carrespawn)");
    SendClientMessage(playerid,Weiß,string3);
    format(string4,sizeof(string4),"{00FF1EFF}Super Administrator Befehle:");
    SendClientMessage(playerid,Weiß,string4);
    format(string5,sizeof(string5),"{FF8200FF}Owner unb Co Befehle: {FAFAFAFF}/restart,/makeleader <ID> <FRAKID>,/makeadmin <ID> <RANG>,/gm [ID] [BETRAG]");
    SendClientMessage(playerid,Weiß,string5);
    //e jetzt stimmts

    Hallo Community,


    kann man irgendwie den Dateinamen ändern?


    format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);


    Das man %s in einen anderen namen irgendwie ändert?


    Kann mir da evtl einer weiterhelfen?


    LG

    Hallo Breadfish,


    ich wollte machen wenn ich sterbe das ich dann einen Gestorben punkt bekomme...


    aber ich kriege diesen nicht...


    So hab ich es:


    public OnPlayerDeath(playerid, killerid, reason)
    {


    IstSpielerGespawnt[playerid] = false;
    if(GetPlayerWeapon(killerid) == 45) Ban(killerid);
    if(GetPlayerWeapon(killerid) == 44) Ban(killerid);
    if(GetPlayerWeapon(killerid) == 37) Ban(killerid);
    if(GetPlayerWeapon(killerid) == 18) Ban(killerid);
    if(GetPlayerWeapon(killerid) == 16) Ban(killerid);
    if(GetPlayerWeapon(killerid) == 38) Ban(killerid); //Ban if they have a minigun
    if(GetPlayerWeapon(killerid) == 37) Ban(killerid); //Ban if they have a minigun
    if(GetPlayerWeapon(killerid) == 39) Ban(killerid); //Ban if they have a minigun
    if(GetPlayerWeapon(killerid) == 36) Ban(killerid); //Ban if they have a minigun
    if(GetPlayerWeapon(killerid) == 35) Ban(killerid); //Ban if they have a minigun

    SInfo[killerid][pMord]++;
    SInfo[playerid][pGestorben]++;


    Ich sitz im auto und ich fahr gegen eine wand, dass auto geht kaputt und ich sterbe, aber ich kriege keinen Punkt drauf...


    Ich hoffe mir kann einer helfen


    LG

    Hallo community,


    wenn ich /stats mache kommt immer nur das letzte...


    So sieht mein Code aus:


    stock Statszeigen(Wer,Wem)
    {


    new Leadername[40];
    if(SInfo[Wer][pLeader] == 0) { Leadername = "---"; }
    if(SInfo[Wer][pLeader] == 1) { Leadername = "SAPD"; }
    if(SInfo[Wer][pLeader] == 2) { Leadername = "Bundeswehr"; }
    if(SInfo[Wer][pLeader] == 3) { Leadername = "Fahrschule"; }
    if(SInfo[Wer][pLeader] == 4) { Leadername = "Vagos"; }
    if(SInfo[Wer][pLeader] == 5) { Leadername = "Ballas"; }
    if(SInfo[Wer][pLeader] == 6) { Leadername = "Grove Street"; }
    if(SInfo[Wer][pLeader] == 7) { Leadername = "LCN"; }
    if(SInfo[Wer][pLeader] == 8) { Leadername = "Ordnungsamt"; }
    if(SInfo[Wer][pLeader] == 9) { Leadername = "Rettungsdienst"; }
    if(SInfo[Wer][pLeader] == 10) { Leadername = "Yakuza"; }
    if(SInfo[Wer][pLeader] == 11) { Leadername = "Hitman"; }
    if(SInfo[Wer][pLeader] == 12) { Leadername = "Terroristen"; }
    if(SInfo[Wer][pLeader] == 13) { Leadername = "Russische Mafia"; }
    if(SInfo[Wer][pLeader] == 14) { Leadername = "CNN"; }
    if(SInfo[Wer][pLeader] == 15) { Leadername = "Fast and the Furious"; }
    if(SInfo[Wer][pLeader] == 16) { Leadername = "F.B.I"; }


    new Membername[40];
    if(SInfo[Wer][pMember] == 0) { Membername = "---"; }
    if(SInfo[Wer][pMember] == 1) { Membername = "SAPD"; }
    if(SInfo[Wer][pMember] == 2) { Membername = "Bundeswehr"; }
    if(SInfo[Wer][pMember] == 3) { Membername = "Fahrschule"; }
    if(SInfo[Wer][pMember] == 4) { Membername = "Vagos"; }
    if(SInfo[Wer][pMember] == 5) { Membername = "Ballas"; }
    if(SInfo[Wer][pMember] == 6) { Membername = "Grove Street"; }
    if(SInfo[Wer][pMember] == 7) { Membername = "LCN"; }
    if(SInfo[Wer][pMember] == 8) { Membername = "Ordnungsamt"; }
    if(SInfo[Wer][pMember] == 9) { Membername = "Rettungsdienst"; }
    if(SInfo[Wer][pMember] == 10) { Membername = "Yakuza"; }
    if(SInfo[Wer][pMember] == 11) { Membername = "Hitman"; }
    if(SInfo[Wer][pMember] == 12) { Membername = "Terroristen"; }
    if(SInfo[Wer][pMember] == 13) { Membername = "Russische Mafia"; }
    if(SInfo[Wer][pMember] == 14) { Membername = "CNN"; }
    if(SInfo[Wer][pMember] == 15) { Membername = "Fast and the Furious"; }
    if(SInfo[Wer][pMember] == 16) { Membername = "F.B.I"; }


    new Respektlevel = 4;
    new sstr0[65],sstr1[65],sstr2[65],sstr3[65],sstr4[65],sstr5[65],sstr6[65],sstr7[65],sstr8[65],sstr9[65],sstr10[65],sstr11[65],sstr12[65],sstr13[65],sstr14[65],sstr15[65],sstrall16[600];
    GetPlayerName(Wer,pname,sizeof(pname));
    format(sstr0,sizeof(sstr0),"%s",pname);
    format(sstr1,sizeof(sstr1),"{FF5A00}Personalien: {FEFEFE}Geschlecht: %s",SInfo[Wer][pGeschlecht]);//Geschlecht
    format(sstr1,sizeof(sstr2)," {FEFEFE}Alter: %d",SInfo[Wer][pAlter]);//Alter
    format(sstr1,sizeof(sstr3)," {FEFEFE}Level: %d Respekt: %d/%d",SInfo[Wer][pLevel],SInfo[Wer][pRespekt],SInfo[Wer][pLevel]*Respektlevel);//Level + Respekt
    format(sstr1,sizeof(sstr4)," {FEFEFE}PayDay: %d / 60",SInfo[Wer][pPayday]);//Payday
    format(sstr1,sizeof(sstr5),"{FF5A00}Berufe: {FEFEFE}Leader: %s Member: %s",Leadername,Membername);//Fraktion
    format(sstr1,sizeof(sstr6)," {FEFEFE}Rang: %s",SInfo[Wer][pRang]);//Fraktionsrang
    format(sstr1,sizeof(sstr7)," {FEFEFE}Nebenjob: %s",SInfo[Wer][pJob]);//Nebenjob
    format(sstr1,sizeof(sstr8),"{FF5A00}Finanzen: {FEFEFE}Bankkonto: %d Bargeld: %d",SInfo[Wer][pBankAccount],SInfo[Wer][pGeld]);//Finanzen
    format(sstr1,sizeof(sstr9)," {FEFEFE}Verdientes Jobgeld: %d",SInfo[Wer][pJobgeld]);//Jobgeld
    format(sstr1,sizeof(sstr10)," {FEFEFE}Fraktionsgehalt: %d",SInfo[Wer][pLohn]);//Fraktionsgeld
    format(sstr1,sizeof(sstr11),"{FF5A00}Statistik: {FEFEFE}Morde: %d",SInfo[Wer][pMord]);//Morde
    format(sstr1,sizeof(sstr12)," {FEFEFE}Gestorben: %d",SInfo[Wer][pGestorben]);//Gestorben
    format(sstr1,sizeof(sstr13)," {FEFEFE}Knast: %d",SInfo[Wer][pKnast]);//Knast
    format(sstr1,sizeof(sstr14)," {FEFEFE}Wanteds: %d",SInfo[Wer][pWantedpunkte]);//Wanteds
    format(sstr1,sizeof(sstr15)," {FEFEFE}Verwarnungen: %d / 3",SInfo[Wer][pWarn]);//Warns
    format(sstrall16,sizeof(sstrall16),"%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s",sstr1,sstr2,sstr3,sstr4,sstr5,sstr6,sstr7,sstr8,sstr9,sstr10,sstr11,sstr12,sstr13,sstr14,sstr15,sstrall16);
    ShowPlayerDialog(Wem,DIALOG_STATS,DIALOG_STYLE_MSGBOX,sstr0,sstrall16,"Schließen","");
    return 1;
    }



    bitte helft mir weiter


    LG

    ocmd:kick(playerid,params[])
    {
    new pID;
    new Grund[128];
    new aname[MAX_PLAYER_NAME];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    GetPlayerName(pID, aname, sizeof(aname));
    if(sscanf(params,"us",pID,Grund))return SendClientMessage(playerid,COLOR_WHITE,"Benutzung: /kick [playerid][Grund]");
    if(SInfo[playerid][pAdmin] >= 1)
    {
    new string[128];
    GetPlayerName(pID, pname, sizeof(pname));
    SendClientMessage(playerid,COLOR_RED,"Du hast den Spieler gekickt!");
    format(string,sizeof(string),"[JunkBuster] Admin %s hat Spieler %s gekickt! Grund: %s",pname,aname,Grund);
    SendClientMessageToAll(COLOR_RED,string);
    Kick(pID);
    }
    return 1;
    }