You are not an approved Leader, you are now an Civilian

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, Liebe Leute
    Ich hab das Magical Reallife Script
    und wenn ich mich Hitman Leader mache
    kommt You are not an Approved Leader, you are now an Civilian
    Jedoch kann ich nicht mehr die Leadersachen benutzen also /giverank und so
    aber die Hitmanrechte also /portable und so weiter.
    Hoffe ihr könnt mir helfen


    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "You are not an Approved Leader, you are now a Civilian !");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    Wenn ich des rausmache gehen die Befehle immer noch nicht.


    #edit kann mir den niemand helfen? ist dringend

    Mit freundlichen Grüßen
    Exqool

    2 Mal editiert, zuletzt von ZaferK ()

  • Gehen leider immernoch keine Befehle :(


    /makeleader


    if(strcmp(cmd, "/makeleader", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] <= 1334)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht berechtigt, diesen Befehl zu benutzen !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /makeleader [playerid/PartOfName] [Number(1-10)]");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 1 = LSPD, 2 = FBI, 3 = NG, 4 = Medic, 5 = LCN, 6 = 21st Street");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 7 = Mayor, 8 = Hitman, 9 = News Reporter, 10 = Taxi");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 11 = Fahrlehrer, 12 = Groove Street, 13 = Yakuza, 14 = ADAC");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 15 = Transporter, 16 = Special Force, 17 = Terroristen, 18 = San Trans");
    return 1;
    }
    new para1;
    new level;
    para1 = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /makeleader [playerid/PartOfName] [Number(1-10)]");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 1 = LSPD, 2 = FBI, 3 = NG, 4 = Medic, 5 = LCN, 6 = 21st Street");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 7 = Mayor, 8 = Hitman, 9 = News Reporter, 10 = Taxi");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 11 = Fahrlehrer, 12 = Groove Street, 13 = Yakuza, 14 = ADAC");
    SendClientMessage(playerid, COLOR_GRAD2, "Verfügbare Fraktionen: 15 = Transporter, 16 = Special Force, 17 = Terroristen, 18 = San Trans");
    return 1;
    }
    level = strval(tmp);
    if(level > 18 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 17!"); return 1; }
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
    {
    SendClientMessage(playerid, COLOR_GREY, " That player is in a Faction / Family !");
    return 1;
    }
    if(RequestJobMoney[para1]==1)
    {
    SendClientMessage(para1, COLOR_GREY, "Du hast nun einen Job, und dein Arbeitslosengeld ist gekündigt.");
    RequestJobMoney[para1]=0;
    }
    if(PlayerInfo[para1][pLeader] >= 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist schon ein Leader, Bitte benutze erst /unmakeleader !");
    return 1;
    }
    if(PlayerInfo[para1][pJobLock] >= 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Dieser Spieler hat Jobsperre !");
    return 1;
    }
    if(PlayerInfo[para1][pJob] > 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Dieser Spieler hat einen Job !");
    return 1;
    }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[para1][pLeader] = level;
    format(string, sizeof(string), "* Du wurdest von Admin %s zum Leader deiner gewählten Fraktion gemacht.", sendername);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Du hast %s die Kontrolle über die Fraktion Nr. %d gegeben.", giveplayer,level);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    getdate(year, month, day);
    PlayerInfo[para1][pJobInvite] = 1;
    PlayerInfo[para1][pJobInviteMonth] = month;
    PlayerInfo[para1][pJobInviteDate] = day;


    if(level == 0) { PlayerInfo[para1][pChar] = 0; }
    else if(level == 1)
    {
    PlayerInfo[para1][pChar] = 228; PlayerInfo[para1][pModel] = 288; SpawnPlayer(para1);
    }
    else if(level == 2)
    {
    PlayerInfo[para1][pChar] = 228; PlayerInfo[para1][pModel] = 228;SpawnPlayer(para1);
    }
    else if(level == 3)
    {
    PlayerInfo[para1][pChar] = 228; PlayerInfo[para1][pModel] = 228;SpawnPlayer(para1);
    }
    else if(level == 4)
    {
    PlayerInfo[para1][pChar] = 228; PlayerInfo[para1][pModel] = 274;SpawnPlayer(para1);
    }
    else if(level == 5)
    {
    PlayerInfo[para1][pChar] = 113; PlayerInfo[para1][pModel] = 113;SpawnPlayer(para1);
    }
    else if(level == 6)
    {
    PlayerInfo[para1][pChar] = 115; PlayerInfo[para1][pModel] = 115;SpawnPlayer(para1);
    }
    else if(level == 7)
    {
    PlayerInfo[para1][pChar] = 147; PlayerInfo[para1][pModel] = 147;SpawnPlayer(para1);
    }
    else if(level == 8)
    {
    PlayerInfo[para1][pChar] = 294; PlayerInfo[para1][pModel] = 294;SpawnPlayer(para1); PlayerInfo[para1][pHitman] = 2;
    }
    else if(level == 9)
    {
    PlayerInfo[para1][pChar] = 227; PlayerInfo[para1][pModel] = 227;SpawnPlayer(para1);
    }
    else if(level == 10)
    {
    PlayerInfo[para1][pChar] = 61; PlayerInfo[para1][pModel] = 61;SpawnPlayer(para1);
    }
    else if(level == 11)
    {
    PlayerInfo[para1][pChar] = 59; PlayerInfo[para1][pModel] = 59;SpawnPlayer(para1);
    }
    else if(level == 12)
    {
    PlayerInfo[para1][pChar] = 270;PlayerInfo[para1][pModel] = 270; SpawnPlayer(para1);
    }
    else if(level == 13)
    {
    PlayerInfo[para1][pChar] = 120; PlayerInfo[para1][pModel] = 120; SpawnPlayer(para1);
    }
    else if(level == 14)
    {
    PlayerInfo[para1][pChar] = 202; PlayerInfo[para1][pModel] = 202; SpawnPlayer(para1); PlayerInfo[para1][pJob] = 7;
    }
    else if(level == 15)
    {
    PlayerInfo[para1][pChar] = 294; PlayerInfo[para1][pModel] = 294; SpawnPlayer(para1);
    }
    else if(level == 16)
    {
    PlayerInfo[para1][pChar] = 228; PlayerInfo[para1][pModel] = 228; SpawnPlayer(para1);
    }
    else if(level == 17)
    {
    PlayerInfo[para1][pChar] = 220; PlayerInfo[para1][pModel] = 220; SpawnPlayer(para1);
    }
    else if(level == 18)
    {
    PlayerInfo[para1][pChar] = 217; PlayerInfo[para1][pModel] = 217; SpawnPlayer(para1);
    PlayerInfo[para1][pJob] = 16;
    }
    gTeam[para1] = 11;
    PlayerInfo[para1][pTeam] = 11;
    PlayerInfo[para1][pRank] = 6;
    SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
    if(PlayerInfo[para1][pLeader] == 8 || PlayerInfo[para1][pHitman] >= 1)
    {
    PlayerInfo[para1][pLeader] = 0;
    PlayerInfo[para1][pRank] = 0;
    PlayerInfo[para1][pHitmanRank] = 6;
    PlayerInfo[para1][pJobInviteMonth] = 0;
    PlayerInfo[para1][pJobInviteDate] = 0;
    }
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht berechtigt, diesen Befehl zu benutzen !");
    }
    }
    return 1;
    }

    Mit freundlichen Grüßen
    Exqool

    3 Mal editiert, zuletzt von ZaferK ()