/admins (Report Anzahl)

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
  • Hallo. @Jeffry


    Ich wollte fragen ob mit jemanden Scripten kann.
    Das wenn jemand /admins macht


    Da auch die Anzahl der bearbeiteten Reports von der Person steht.
    Natürlich soll dies auch in den Scriptfiles gespeichert werden.
    Also das heißt wenn sogar Serverrestart vom Host kommt das die Reports anzahl bleibt.
    Hoffe jemand macht mir das :)


    Mein /admins System:


    } if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xAFAFAFAA, "Admins/Supporter Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pSupporter] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Probe.Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pSupporter] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"B-MOD: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"B-MOD: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 6) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 1337) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Eventmanager: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 1338) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Fraktionsverwalter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 2000) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Stv.Serverleiter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } if(PlayerInfo[i][pAdmin] == 2001) { GetPlayerName(i, sendername, sizeof(sendername)); format(string,sizeof(string),"Serverleiter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]); SendClientMessage(playerid, 0xAFAFAFAA, string); } } } } return 1;


    Also Anstatt "HandyNummer" soll "Reports:" stehen :)

    Einmal editiert, zuletzt von Eazy. ()

  • Verstehe ich es nun richtig, du möchtest also das wenn ein Team Mitglied einen Report bearbeitet, das in seinen Stats ein Eintrag wie z.B "Bearbeitete Reports" steht und dort pro angenommen Report dann "+1" dazu gezählt wird?

    ehm. Administration StateV ~ Domi

  • Beitrag von Eazy. ()

    Dieser Beitrag wurde von dennismitzwein gelöscht ().
  • Beitrag von MysteryReallife ()

    Dieser Beitrag wurde von dennismitzwein aus folgendem Grund gelöscht: Spam ().
  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Beitrag von Eazy. ()

    Dieser Beitrag wurde von dennismitzwein gelöscht ().
  • Beitrag von Eazy. ()

    Dieser Beitrag wurde von dennismitzwein gelöscht ().
  • Da Eazy. in meinem Projekt mit macht.
    Brauchen wir zurzeit immer noch solch ein System.


    Zurzeit sieht unser /admins System so aus:



    }
    if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, 0xAFAFAFAA, "Admins/Supporter Online:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pSupporter] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Probe.Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pSupporter] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"B-MOD: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"B-MOD: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 5)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 6)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Eventmanager: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Fraktionsverwalter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2000)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Stv.Serverleiter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2001)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Serverleiter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    }
    }
    }
    return 1;


    Und wir würden anstatt die Nummer, Anzahl der Reports haben

  • Ersetze allePlayerInfo[i][pPnumber]
    mit
    PlayerInfo[i][pReports]



    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46640) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46646) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46652) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46658) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46664) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46670) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46676) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46682) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46688) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46694) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46700) : error 017: undefined symbol "pReports"
    C:\Users\azat\Desktop\GermanSky\gamemodes\GermanSky.pwn(46706) : error 017: undefined symbol "pReports"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    12 Errors.


    :/ woran kann das liegen



    Habe es so gemacht wie es sein sollte und wie du es gesagt hast:



    }
    if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, 0xAFAFAFAA, "Admins/Supporter Online:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pSupporter] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Probe.Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pSupporter] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 5)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 6)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Administrator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"High-Admin: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2000)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Stv.Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    if(PlayerInfo[i][pAdmin] == 2001)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    }
    }
    }
    return 1;

  • Habe dir das etwas umgeschrieben:

    if(strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, 0xAFAFAFAA, "Admins/Supporter Online:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    switch(PlayerInfo[i][pSupporter])
    {
    case 1:format(string,sizeof(string),"Probe.Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 2:format(string,sizeof(string),"Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    }
    switch(PlayerInfo[i][pAdmin])
    {
    case 1:format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 2:format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 3:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 4:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 5:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 6:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 1337:format(string,sizeof(string),"Administrator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 1338:format(string,sizeof(string),"High-Admin: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 2000:format(string,sizeof(string),"Stv.Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    case 2001:format(string,sizeof(string),"Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
    }
    SendClientMessage(playerid, 0xAFAFAFAA, string);
    }
    }
    }
    return 1;
    }


    In deinem Spielerenum pReports definieren.


    LG

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen