Beiträge von Özgür Johnson

    mach mal so //SupportSystem


    if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/support", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(JustReported[playerid] == 1)


    {


    SendClientMessage(playerid, COLOR_GREY, " Bitte warte 30 Sekunden bis du den Nächsten Report schreiben kannst !");


    return 1;


    }


    ShowPlayerDialog(playerid ,DIALOG_REPORT, DIALOG_STYLE_INPUT,
    "{F80000}Einen Report senden","Du hast eine Frage oder möchtest einen
    Cheater melden?\nSchreibe denen Text hier rein:","Senden", "Abbrechen");


    }


    return 1;


    }


    if(strcmp(cmd, "/cr", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(gPlayerLogged[playerid] == 0)


    {


    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");


    return 1;


    }


    if(PlayerInfo[playerid][pAdmin] > 0)


    {


    tmp = strtok(cmdtext, idx);


    if(!strlen(tmp))


    {


    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /cr [SpielerID/SpielerName]");


    return 1;


    }


    giveplayerid = ReturnUser(tmp);


    if(IsPlayerConnected(giveplayerid))


    {


    if(giveplayerid != INVALID_PLAYER_ID)


    {


    GetPlayerName(playerid, sendername, sizeof(sendername));


    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));


    format(string, sizeof(string), "** Adminstrator [ID:%d]%s hat den Report geschlossen!", playerid, sendername);


    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN, string);


    format(string, sizeof(string), "** Du hast den Support geschlossen!", playerid, sendername);


    SendClientMessage(playerid, COLOR_LIGHTGREEN, string);


    SetPlayerToTeamColor(playerid);


    ReportCall[playerid] = 999;


    ReportCall[giveplayerid] = 999;


    }


    }


    }


    }


    }


    if(strcmp(cmd, "/ar", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(gPlayerLogged[playerid] == 0)


    {


    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");


    return 1;


    }


    if(PlayerInfo[playerid][pAdmin] > 0)


    {


    tmp = strtok(cmdtext, idx);


    if(!strlen(tmp))


    {


    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /ar [SpielerID/SpielerName]");


    return 1;


    }


    giveplayerid = ReturnUser(tmp);


    if(IsPlayerConnected(giveplayerid))


    {


    if(giveplayerid != INVALID_PLAYER_ID)


    {


    if(PlayerNeedsHelp[giveplayerid] == 1)


    {


    PlayerNeedsHelp[giveplayerid] = 0;


    GetPlayerName(playerid, sendername, sizeof(sendername));


    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));


    format(string, sizeof(string), "AdmWarnung: %s hat den Report von:
    [ID:%d]%s Angenommen.", sendername, giveplayerid, giveplayer);


    ABroadCast(COLOR_YELLOW, string, 1);


    SendClientMessage(playerid, COLOR_YELLOW,"Schreib nun mit dem Spieler per Chat du bist Automatisch Verbunden.");


    SendClientMessage(playerid, COLOR_YELLOW,"Du kannst den Report mit '/cr [SpielerID/SpielerName]' schließen");


    SetPlayerColor(playerid,0x000000FF);


    format(string, sizeof(string), "** Adminstrator [ID:%d]%s hat dein
    Report Angenommen, er wird dich nun Supporten.", playerid, sendername);


    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN, string);


    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN,"Du kannst nun per Chat mit dem Admin Schreiben.");


    SendClientMessage(playerid, COLOR_LIGHTGREEN,"Du kannst nun per Chat mit dem Spieler Schreiben.");


    ReportCall[giveplayerid] = playerid;


    ReportCall[playerid] = giveplayerid; //Verbinde zum Reporter


    }


    else


    {


    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keine Report anfrage !");


    return 1;


    }


    }


    }


    }


    else


    {


    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Administrator ! ");


    return 1;


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/tr", true) == 0)


    {




    if(IsPlayerConnected(playerid))


    {


    if(gPlayerLogged[playerid] == 0)


    {


    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");


    return 1;


    }


    if(PlayerInfo[playerid][pAdmin] > 0)


    {


    tmp = strtok(cmdtext, idx);


    if(!strlen(tmp))


    {


    SendClientMessage(playerid, COLOR_WHITE, "HINT: /tr [SpielerID/SpielerName]");


    return 1;


    giveplayerid = ReturnUser(tmp);


    if(IsPlayerConnected(giveplayerid))


    {


    if(giveplayerid != INVALID_PLAYER_ID)


    {


    if(PlayerNeedsHelp[giveplayerid] == 1)


    {


    PlayerNeedsHelp[giveplayerid] = 0;


    GetPlayerName(playerid, sendername, sizeof(sendername));


    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));


    format(string, sizeof(string), "AdmWarning: %s hat die Support Anfrage
    von [ID:%d]%s gelöscht.", sendername, giveplayerid, giveplayer);


    ABroadCast(COLOR_YELLOW, string, 1);


    format(string, sizeof(string), "** Administrator [ID:%d]%s hat deine Support Anfrage verweigert !", playerid, sendername);


    SendClientMessage(giveplayerid, 0xB35959AA, string);


    }


    else


    {


    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keine Report anfrage !");


    return 1;


    }


    }


    }


    }


    else


    {


    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Administrator ! ");


    return 1;


    }


    }


    return 1;