Beiträge von BlackMonster

    command(setadminlevel, playerid, params[])
    {
    new id, level, string[128];
    if(!IsPlayerAdmin(playerid))
    return false;
    if(sscanf(params, "ud", id, level))
    return SendClientMessage(playerid, COLOR_WHITE, "Befehl: /(s)et(a)dmin(l)evel [Name/ID] [AdminLevel]");

    if(GetPVarInt(playerid, "Authentication") != 1)
    return SendClientMessage(playerid, COLOR_BRIGHTRED, "Du bist nicht eingeloggt!");
    if(GetPVarInt(id, "Authentication") != 1)
    return SendClientMessage(playerid, COLOR_BRIGHTRED, "Der Spieler ist nicht eingeloggt!");


    if(pStats[id][pAdminLevel] == 0)
    {
    switch(level)
    {
    case 1: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL1);
    case 2: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Congratulations, %s! You have been hired as a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Congratulations, %s! You have been hired as the \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    case 6: format(string, sizeof(string), "Congratulations, %s! You have been hired as the \"%s\" on our server staff team!", GetName(id), ADMINLVL6);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have hired %s(%d) onto the server staff team.", GetName(id), id);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level > pStats[id][pAdminLevel])
    {
    switch(level)
    {
    case 2: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Congratulations, %s! You have been promoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Congratulations, %s! You have been promoted as a \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    case 6: format(string, sizeof(string), "Congratulations, %s! You have been promoted as a \"%s\" on our server staff team!", GetName(id), ADMINLVL6);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have promoted %s(%d) to an administrator level %d.", GetName(id), id, level);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level < pStats[id][pAdminLevel])
    {
    switch(level)
    {
    case 1: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL1);
    case 2: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL2);
    case 3: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL3);
    case 4: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL4);
    case 5: format(string, sizeof(string), "Oh no, %s! You have been demoted to a \"%s\" on our server staff team!", GetName(id), ADMINLVL5);
    }
    SendClientMessage(id, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "You have demoted %s(%d) to an administrator level %d.", GetName(id), id, level);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level == 0)
    {
    SendClientMessage(id, COLOR_LIGHTBLUE, "Yikes! You have been fired from our server staff team and no longer hold any server \"power\".");
    format(string, sizeof(string), "You have fired %s(%d), they are no longer apart of the server staff team.", GetName(id), id);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
    else if(level == pStats[id][pAdminLevel]) SendClientMessage(playerid, COLOR_LIGHTRED, "That player already has that admin level!");
    else if(id == playerid && pStats[playerid][pAdminLevel] != 0 && level > pStats[playerid][pAdminLevel]) SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot set your own admin level!");


    pStats[id][pAdminLevel] = level;
    SaveStatus(id);
    return 1;
    }


    z.b hier das ich kann keinen Admin machen , weil der sagt Der User ist nicht Online -.-

    Guten tag,
    ich habe ein Problem wenn ich /help mache kommt : Server: Unknown Command.
    Und wenn ich z.b ein Spieler makeadmin mache oder porten will kommt Der Spieler ist nicht Online .


    Also Wenn ich befehle gebe was mit ID zutun hat kommt immer Fehler .



    Wenn einer mir helfen würde wäre ich dankbar.



    Lg