/stats umändern

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
  • new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200];
    new string21[200],string22[200],string23[200],string24[200],string25[200],string26[200],string27[200],string28[200],string29[200],string30[200],string31[200],string32[200],string33[200],string34[200],string35[200],string36[200],rest[1500];
    format(string1, sizeof string1, "{FF0000}%s{FFFFFF}", name);
    format(string2, sizeof string2, "{FF9900}Allgemeines{FFFFFF}");
    format(string3, sizeof string3, "----------------------------");
    format(string4, sizeof string4, "Level: %d", level);
    format(string5, sizeof string5, "Geschlecht: %s", atext);
    format(string6, sizeof string6, "Alter: %d", age);
    format(string7, sizeof string7, "Herkunft: %s", otext);
    format(string8, sizeof string8, "Spawnenergie: [%.1f]", shealth+50.0);
    format(string9, sizeof string9, "Verheiratet mit %s", married);
    format(string10, sizeof string10, "Telefonnummer: %d", pnumber);
    format(string11, sizeof string11, "{FF9900}Sonstiges / Verbrechen{FFFFFF}");
    format(string12, sizeof string12, "----------------------------");
    format(string13, sizeof string13, "Verbrechen: %d ", crimes);
    format(string14, sizeof string14, "Gefängniszeiten: %d", arrests);
    format(string15, sizeof string15, "Kosten für nächstes Level: %d$ ", costlevel);
    format(string16, sizeof string16, "Spielminuten seit Login / insgesammt: %d / %d", PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
    format(string17, sizeof string17, "{FF9900}Vermögen{FFFFFF}");
    format(string18, sizeof string18, "----------------------------");
    format(string19, sizeof string19, "Bargeld: %d$ ", cash);
    format(string20, sizeof string20, "Bankkonto: %d$ ", account);
    format(string21, sizeof string21, "Premium Rang: %s ", drank);
    format(string22, sizeof string22, "Wantedlevel: %d ", wanted);
    format(string23, sizeof string23, "Respektpunkte: %d / %d ", exp,expamount);
    format(string24, sizeof string24, "{FF9900}Savebox{FFFFFF}");
    format(string25, sizeof string25, "----------------------------");
    format(string26, sizeof string26, "Materialen: %d ", boxmats);
    format(string27, sizeof string29, "Drogen: %d ", boxdrugs);
    format(string28, sizeof string27, "{FF9900}Fraktion und Beruf{FFFFFF}");
    format(string29, sizeof string29, "----------------------------");
    format(string30, sizeof string30, "Team: %s ", ttext);
    format(string31, sizeof string31, "Organisation: %s ", ftext);
    format(string32, sizeof string32, "Rang: %s ", rtext);
    format(string33, sizeof string33, "Familie: %s ", f2text);
    format(string34, sizeof string34, "Beruf: %s ", jtext);
    format(string35, sizeof string35, "Gehalt/Payday: %s ", PlayerInfo[targetid][pGehalt]);
    format(string36, sizeof string36, "Team [%s] Organisation [%s] Rang [%s] Familie [%s] Job [%s] Gehalt/Payday: [%d$] Fraktionsmaterialien: [%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
    format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26,string27,string28,string29,string30,string31,string32,string33,string34,string35,string36);
    ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");


    Will das als /stats machen allerdings wenn ich nur imgame /stats mache steht unknown command?!

  • //======= STATS DIALOG BOX ========//
    Function Stats(playerid,targetid)
    {
    if(IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Deutschland"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Osterreich"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
    new ttext[20];
    new leader = PlayerInfo[targetid][pLeader];
    new member = PlayerInfo[targetid][pMember];
    if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
    else
    {
    if(leader != 0) ttext = Fracs[leader-1];
    if(member != 0) ttext = Fracs[member-1];
    }
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "-"; }
    new ftext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Sanitärer"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
    { ftext = "La Cosa Nostra"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
    { ftext = "Yakuza"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Fahrlehrer"; }
    else
    { ftext = "-"; }
    new f2text[20];
    new rtext[64];
    if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Solitario"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Studioso"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldato"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Assasino"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Destro"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Padre"; }
    else { rtext = "Apprendista"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)// Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Praktikant"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Polizeimeister-Anwärter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Polizeimeister"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeiobermeister"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Polizei-Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Polizeikommissar"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Polizeioberkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Polizeihauptkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Polizeiratsanwärter"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Polizeirat"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Polizeioberrat"; }
    else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Polizeidirektor"; }
    else if(PlayerInfo[targetid][pRank] == 13) { rtext = "Erster Polizeihauptkommissar"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Auszubildender Polizist"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ausgebildeter Polizist"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Streifenpolizist-Zufuß"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeistreife-Auto"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Pressesprecher der Polizei"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Einsatzleitung"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//RS
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Erfahrener"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Killer"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Elite"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Zweite Hand"; }
    else if(PlayerInfo[targetid][pRank] == 6 || PlayerInfo[targetid][pRank] == 12) { rtext = "Red King"; }
    else { rtext = "Neuling"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//WHEELMEN
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Spezial Member"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Leader"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Personenschutz"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Geheimdienst"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Geheimdienst Leiter"; }
    else if(PlayerInfo[targetid][pRank] >= 7 && PlayerInfo[targetid][pRank] < 12) { rtext = "Minister"; }
    else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Bundespräsident"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else
    {
    rtext = "-";
    }
    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
    else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Farmer"; }
    //else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
    else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Pilot"; }
    else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Müllmann"; }
    else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Angler"; }
    else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
    else { jtext = "-"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "ÜBERSKILLER"; }
    else { drank = "-"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new age = PlayerInfo[targetid][pAge];
    new ptime = PlayerInfo[targetid][pConnectTime];
    new lotto = PlayerInfo[targetid][pLottoNr];
    new deaths = PlayerInfo[targetid][pDeaths];
    new fishes = PlayerInfo[targetid][pFishes];
    new bigfish = PlayerInfo[targetid][pBiggestFish];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new boxdrugs = PlayerInfo[targetid][pBoxDrugs];
    new boxmats = PlayerInfo[targetid][pBoxMats];
    new wanted = WantedLevel[targetid];
    new level = PlayerInfo[targetid][pLevel];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new account = PlayerInfo[targetid][pAccount];
    new nxtlevel = PlayerInfo[targetid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = PlayerInfo[targetid][pInt];
    new local = PlayerInfo[targetid][pLocal];
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    new Float:plHealth, Float:plArmour;
    GetPlayerPos(targetid, px, py, pz);
    GetPlayerHealth(targetid,plHealth);
    GetPlayerArmour(targetid,plArmour);
    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200];
    new string21[200],string22[200],string23[200],string24[200],string25[200],string26[200],string27[200],string28[200],string29[200],string30[200],string31[200],string32[200],string33[200],string34[200],string35[200],string36[200],rest[1500];
    format(string1, sizeof string1, "{FF0000}%s{FFFFFF}", name);
    format(string2, sizeof string2, "{FF9900}Allgemeines{FFFFFF}");
    format(string3, sizeof string3, "----------------------------");
    format(string4, sizeof string4, "Level: %d", level);
    format(string5, sizeof string5, "Geschlecht: %s", atext);
    format(string6, sizeof string6, "Alter: %d", age);
    format(string7, sizeof string7, "Herkunft: %s", otext);
    format(string8, sizeof string8, "Spawnenergie: [%.1f]", shealth+50.0);
    format(string9, sizeof string9, "Verheiratet mit %s", married);
    format(string10, sizeof string10, "Telefonnummer: %d", pnumber);
    format(string11, sizeof string11, "{FF9900}Sonstiges / Verbrechen{FFFFFF}");
    format(string12, sizeof string12, "----------------------------");
    format(string13, sizeof string13, "Verbrechen: %d ", crimes);
    format(string14, sizeof string14, "Gefängniszeiten: %d", arrests);
    format(string15, sizeof string15, "Kosten für nächstes Level: %d$ ", costlevel);
    format(string16, sizeof string16, "Spielminuten seit Login / insgesammt: %d / %d", PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
    format(string17, sizeof string17, "{FF9900}Vermögen{FFFFFF}");
    format(string18, sizeof string18, "----------------------------");
    format(string19, sizeof string19, "Bargeld: %d$ ", cash);
    format(string20, sizeof string20, "Bankkonto: %d$ ", account);
    format(string21, sizeof string21, "Premium Rang: %s ", drank);
    format(string22, sizeof string22, "Wantedlevel: %d ", wanted);
    format(string23, sizeof string23, "Respektpunkte: %d / %d ", exp,expamount);
    format(string24, sizeof string24, "{FF9900}Savebox{FFFFFF}");
    format(string25, sizeof string25, "----------------------------");
    format(string26, sizeof string26, "Materialen: %d ", boxmats);
    format(string27, sizeof string29, "Drogen: %d ", boxdrugs);
    format(string28, sizeof string27, "{FF9900}Fraktion und Beruf{FFFFFF}");
    format(string29, sizeof string29, "----------------------------");
    format(string30, sizeof string30, "Team: %s ", ttext);
    format(string31, sizeof string31, "Organisation: %s ", ftext);
    format(string32, sizeof string32, "Rang: %s ", rtext);
    format(string33, sizeof string33, "Familie: %s ", f2text);
    format(string34, sizeof string34, "Beruf: %s ", jtext);
    format(string35, sizeof string35, "Gehalt/Payday: %s ", PlayerInfo[targetid][pGehalt]);
    format(string36, sizeof string36, "Team [%s] Organisation [%s] Rang [%s] Familie [%s] Job [%s] Gehalt/Payday: [%d$] Fraktionsmaterialien: [%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
    format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26,string27,string28,string29,string30,string31,string32,string33,string34,string35,string36);
    ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");




    So sieht alles aus !

  • i-wo in das Script muss das rein
    ich habe meine
    Befehle also alle ocmd´s ganz unten
    für ocmd brauchst du aber ne Inc Datei die dann dann bei Pawno Includes einfügste gebe dir mal hier LINK
    also versuch
    ocmd:stats(playerid,params[])
    {



    return 1;
    }
    den Text da ganz oben da rein zwischen das return 1 unddem oberem klammer und ganz oben unter
    include a_samp musst du #include <ocmd> machen

  • Es ging ja schon !


    Hier der Befehl.


    //-------------------------------[Stats]--------------------------------------------------------------------------
    if (strcmp(cmd, "/stats", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (gPlayerLogged[playerid] != 0)
    {
    Stats(playerid,playerid);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
    }
    }
    return 1;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • schick mal denn ganzen Public per pastebin.



    //E: YAY 666 Beiträge.

  • //-------------------------------[Stats]--------------------------------------------------------------------------
    if (strcmp(cmd, "/stats", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (gPlayerLogged[playerid] != 0)
    {
    Stats(playerid,playerid);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
    }
    }
    return 1;
    }
    //======= STATS DIALOG BOX ========//
    Function Stats(playerid,targetid)
    {
    if(IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Deutschland"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Osterreich"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
    new ttext[20];
    new leader = PlayerInfo[targetid][pLeader];
    new member = PlayerInfo[targetid][pMember];
    if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
    else
    {
    if(leader != 0) ttext = Fracs[leader-1];
    if(member != 0) ttext = Fracs[member-1];
    }
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "-"; }
    new ftext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Sanitärer"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
    { ftext = "La Cosa Nostra"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
    { ftext = "Yakuza"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Fahrlehrer"; }
    else
    { ftext = "-"; }
    new f2text[20];
    new rtext[64];
    if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Solitario"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Studioso"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldato"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Assasino"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Destro"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Padre"; }
    else { rtext = "Apprendista"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)// Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Praktikant"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Polizeimeister-Anwärter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Polizeimeister"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeiobermeister"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Polizei-Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Polizeikommissar"; }
    else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Polizeioberkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Polizeihauptkommissar"; }
    else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Polizeiratsanwärter"; }
    else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Polizeirat"; }
    else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Polizeioberrat"; }
    else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Polizeidirektor"; }
    else if(PlayerInfo[targetid][pRank] == 13) { rtext = "Erster Polizeihauptkommissar"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Auszubildender Polizist"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ausgebildeter Polizist"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Streifenpolizist-Zufuß"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeistreife-Auto"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Pressesprecher der Polizei"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Einsatzleitung"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//RS
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Erfahrener"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Killer"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Elite"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Zweite Hand"; }
    else if(PlayerInfo[targetid][pRank] == 6 || PlayerInfo[targetid][pRank] == 12) { rtext = "Red King"; }
    else { rtext = "Neuling"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//WHEELMEN
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Spezial Member"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Leader"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Personenschutz"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Geheimdienst"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Geheimdienst Leiter"; }
    else if(PlayerInfo[targetid][pRank] >= 7 && PlayerInfo[targetid][pRank] < 12) { rtext = "Minister"; }
    else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Bundespräsident"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Azubi"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Praktikant"; }
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else
    {
    rtext = "-";
    }
    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
    else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Farmer"; }
    //else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
    else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Pilot"; }
    else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Müllmann"; }
    else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Angler"; }
    else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
    else { jtext = "-"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "ÜBERSKILLER"; }
    else { drank = "-"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new age = PlayerInfo[targetid][pAge];
    new ptime = PlayerInfo[targetid][pConnectTime];
    new lotto = PlayerInfo[targetid][pLottoNr];
    new deaths = PlayerInfo[targetid][pDeaths];
    new fishes = PlayerInfo[targetid][pFishes];
    new bigfish = PlayerInfo[targetid][pBiggestFish];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new boxdrugs = PlayerInfo[targetid][pBoxDrugs];
    new boxmats = PlayerInfo[targetid][pBoxMats];
    new wanted = WantedLevel[targetid];
    new level = PlayerInfo[targetid][pLevel];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new account = PlayerInfo[targetid][pAccount];
    new nxtlevel = PlayerInfo[targetid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = PlayerInfo[targetid][pInt];
    new local = PlayerInfo[targetid][pLocal];
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    new Float:plHealth, Float:plArmour;
    GetPlayerPos(targetid, px, py, pz);
    GetPlayerHealth(targetid,plHealth);
    GetPlayerArmour(targetid,plArmour);
    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200];
    new string21[200],string22[200],string23[200],string24[200],string25[200],string26[200],string27[200],string28[200],string29[200],string30[200],string31[200],string32[200],string33[200],string34[200],string35[200],string36[200],rest[1500];
    format(string1, sizeof string1, "{FF0000}%s{FFFFFF}", name);
    format(string2, sizeof string2, "{FF9900}Allgemeines{FFFFFF}");
    format(string3, sizeof string3, "----------------------------");
    format(string4, sizeof string4, "Level: %d", level);
    format(string5, sizeof string5, "Geschlecht: %s", atext);
    format(string6, sizeof string6, "Alter: %d", age);
    format(string7, sizeof string7, "Herkunft: %s", otext);
    format(string8, sizeof string8, "Spawnenergie: [%.1f]", shealth+50.0);
    format(string9, sizeof string9, "Verheiratet mit %s", married);
    format(string10, sizeof string10, "Telefonnummer: %d", pnumber);
    format(string11, sizeof string11, "{FF9900}Sonstiges / Verbrechen{FFFFFF}");
    format(string12, sizeof string12, "----------------------------");
    format(string13, sizeof string13, "Verbrechen: %d ", crimes);
    format(string14, sizeof string14, "Gefängniszeiten: %d", arrests);
    format(string15, sizeof string15, "Kosten für nächstes Level: %d$ ", costlevel);
    format(string16, sizeof string16, "Spielminuten seit Login / insgesammt: %d / %d", PlayerInfo[targetid][pMinutesSinceLogin],PlayerInfo[targetid][pGesamtMinutes]);
    format(string17, sizeof string17, "{FF9900}Vermögen{FFFFFF}");
    format(string18, sizeof string18, "----------------------------");
    format(string19, sizeof string19, "Bargeld: %d$ ", cash);
    format(string20, sizeof string20, "Bankkonto: %d$ ", account);
    format(string21, sizeof string21, "Premium Rang: %s ", drank);
    format(string22, sizeof string22, "Wantedlevel: %d ", wanted);
    format(string23, sizeof string23, "Respektpunkte: %d / %d ", exp,expamount);
    format(string24, sizeof string24, "{FF9900}Savebox{FFFFFF}");
    format(string25, sizeof string25, "----------------------------");
    format(string26, sizeof string26, "Materialen: %d ", boxmats);
    format(string27, sizeof string29, "Drogen: %d ", boxdrugs);
    format(string28, sizeof string27, "{FF9900}Fraktion und Beruf{FFFFFF}");
    format(string29, sizeof string29, "----------------------------");
    format(string30, sizeof string30, "Team: %s ", ttext);
    format(string31, sizeof string31, "Organisation: %s ", ftext);
    format(string32, sizeof string32, "Rang: %s ", rtext);
    format(string33, sizeof string33, "Familie: %s ", f2text);
    format(string34, sizeof string34, "Beruf: %s ", jtext);
    format(string35, sizeof string35, "Gehalt/Payday: %s ", PlayerInfo[targetid][pGehalt]);
    format(string36, sizeof string36, "Team [%s] Organisation [%s] Rang [%s] Familie [%s] Job [%s] Gehalt/Payday: [%d$] Fraktionsmaterialien: [%d]", ttext,ftext,rtext,f2text,jtext,PlayerInfo[targetid][pGehalt], FrakMatsHolding[targetid]);
    format(rest, sizeof rest, "%s\n\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26,string27,string28,string29,string30,string31,string32,string33,string34,string35,string36);
    ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");


    Das ist alles mehr gibts nicht davon.