Hallo Liebes Breadfish also ich habe ein /aduty befehle drin also wenn ich mich admin 5 mache passiert nix aber wenn ich admin 1 2 3 4 6 7 8 9 1337 1338 2001 2002 mache geht es bitte helfen! hier der Befehle
if (strcmp(cmd, "/adminduty", true) == 0 strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Moderator im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Mod[playerid] = Create3DTextLabel("*Moderator on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* Moderator %s[ID:%d] ist nun im Dienst [Er ist Lilla markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerHealth(playerid, 0x7F800000);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Super-Moderator im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Mod[playerid] = Create3DTextLabel("*Moderator on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* Super-Moderator %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerHealth(playerid, 0x7F800000);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessage(playerid,COLOR_ORANGE,"Du bist nun als Administrator im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Supermod[playerid] = Create3DTextLabel("*Administrator on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Supermod[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"*Administrator %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerHealth(playerid, 0x7F800000);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==1337)
{
SendClientMessage(playerid,COLOR_ORANGE,"Du bist nun als Fraktionsverwalter im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*Administrator on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Fraktionsverwalter %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==1338)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Administrator im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*Administrator on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Administrator %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==2000)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als [G.S.R] High Admin im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*[G.S.R] High Admin on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"[G.S.R] High Admin %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==2001)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als [G.S.R] Stelv.Community Leitung im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*[G.S.R] Stelv.Community Leitung on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"[G.S.R] Stelv.Community Leitung %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] >=2002)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als [G.S.R] Community Leitung im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("*[G.S.R] Community Leitung on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"[G.S.R] Community Leitung %s[ID:%d] ist nun im Dienst [Er ist Lilamarkiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerArmour(playerid, 100);
return 1;
}
else if(PlayerInfo[playerid][pSupporter] >= 1)
{
SendClientMessage(playerid,0xC800FFFF,"Du bist nun als Supporter im Dienst!");
SetPlayerColor(playerid,0xC800FFFF);
AdminDuty[playerid] = 1;
Supporter[playerid] = Create3DTextLabel("*Supporter on Duty*",0xC800FFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Supporter[playerid], playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Supporter %s[ID:%d] ist nun im Dienst [Er ist Lila markiert]*",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
SetPlayerHealth(playerid, 0x7F800000);
SetPlayerArmour(playerid, 100);
return 1;
}
}
if(AdminDuty[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
format(string,sizeof(string),"Moderator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
format(string,sizeof(string),"Moderator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
format(string,sizeof(string),"Administrator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] >=1337)
{
format(string,sizeof(string),"Administrator %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] >=1338)
{
format(string,sizeof(string),"[G.S.R] High Admin %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] >=2000)
{
format(string,sizeof(string),"[G.S.R] High Admin %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] >=2001)
{
format(string,sizeof(string),"[G.S.R] stlv.Community %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pAdmin] >=2002)
{
format(string,sizeof(string),"[G.S.R] Community %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
else if(PlayerInfo[playerid][pSupporter] >= 1)
{
format(string,sizeof(string),"Supporter %s[ID:%d] ist nun nicht mehr im Dienst. *",sendername,playerid);
SendClientMessageToAll(0xC800FFFF, string);
}
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
Delete3DTextLabel(Admin[playerid]);
Delete3DTextLabel(Supermod[playerid]);
Delete3DTextLabel(Mod[playerid]);
Delete3DTextLabel(Supporter[playerid]);
Delete3DTextLabel(Admin[playerid]);
Delete3DTextLabel(Supermod[playerid]);
Delete3DTextLabel(Mod[playerid]);
Delete3DTextLabel(Supporter[playerid]);
SetPlayerArmour(playerid, 0);
AdminDuty[playerid] = 0;
{
if(PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerColor(playerid, NAMECOLOR_LSCOP);
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
}
return 1;
}
return 1;
}