Problem mit /aduty als Sup bug

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 also ich habe ein /aduy befehle aber wenn ich als supporter 1 duty gehe steht da du bist nun als Probe Sup im dienst das ist okay aber wenn ich als supporter 2 aduty gehe steht da das gleich hier der befehle


    if(strcmp(cmd,"/adminduty",true)==0||strcmp(cmd,"/aduty",true)==0)
    {
    if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pSupporter] == 0)
    {
    SendClientMessage(playerid,0xFF9600FF,"Du bist kein Admin");
    }
    else if(PlayerInfo[playerid][pAdmin] == 1)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Moderator im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"*Moderator %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Moderator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 2)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Super Moderator im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Super Moderator %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Super Moderator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Auszubildener-Administrator im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Auszubildener-Administrator %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Auszubildener-Administrator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 4)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Administrator im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Administrator %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Administrator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 5)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Administrator im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Administrator %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Administrator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Full-Admin im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Full-Admin %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Full-Admin %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Head-Admin im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Head-Admin %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Head-Admin %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 2000)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Scripter im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Scripter %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Scripter %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 2001)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Stlv.Server-leitug im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Stlv.Server-leitug %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Stlv.Server-leitug%s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pAdmin] == 2002)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Server-leitug im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Server-leitug %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Server-leitug %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pSupporter] >= 1)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Probe-Supporter im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Probe-Supporter %s[ID:%d] ist nun im Dienst*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Probe-Supporter%s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    else if(PlayerInfo[playerid][pSupporter] >= 2)
    {
    if(AdminDuty[playerid] == 0)
    {
    TextDrawShowForPlayer(playerid,SupportBubble);
    SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Supporter im Dienst!");
    SetPlayerColor(playerid,0xC800FFFF); // Diese Farbe hier musst du Anpassen
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string),"* Supporter %s[ID:%d] ist nun im Dienst.*",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    SetPlayerArmour(playerid, 100);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawShowForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    AdminDuty[playerid]=1;
    }
    else if(AdminDuty[playerid] == 1)
    {
    TextDrawHideForPlayer(playerid,SupportBubble);
    for(new si;si<sizeof(SupportInfo);si++)
    {
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Text]);
    TextDrawHideForPlayer(playerid,SupportInfo[si][S_Nummern]);
    }
    format(string,sizeof(string),"Supporter%s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
    SendClientMessageToAll(0xC800FFFF, string);
    AdminDuty[playerid]=0;
    }
    }
    }