Hey in meinen script kann man nicht Adminduty gehen wegen diese pAdminOnDuty das ich vorhin mal geschrieben habe kann mir da irgendeiner helfen?
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] <= 8 || PlayerInfo[playerid][pAdminOnDuty] == true)
{
new stringa[128];
format(stringa,24,""#SERVERTAG"%s",PlayerInfo[playerid][ppName]);
SetPlayerName(playerid,stringa);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("Admindienst",0x7DFF00C7,30.0,40.0,50.0,20.0,1,1);
Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
format(stringa,sizeof(stringa),""#SERVERFARBE"Teammitglied: {FFFFFF}%s geht in den Admindienst.",sendername,playerid);
SendClientMessageToAll(COLOR_GREEN,stringa);
SetPlayerColor(playerid, COLOR_GREEN);
}
return 1;
}
if(AdminDuty[playerid] == 1 || PlayerInfo[playerid][pAdminOnDuty] == false)
{
new stringb[128];
format(stringb,sizeof(stringb),""#SERVERFARBE"Teammitglied: {FFFFFF}%s ist nun nicht mehr im Admindienst.",sendername,playerid);
SendClientMessageToAll(ROT,stringb);
SetPlayerName(playerid,PlayerInfo[playerid][ppName]);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
Delete3DTextLabel(Admin[playerid]);
SetPlayerColor(playerid, COLOR_NOFRAK);
AdminDuty[playerid] = 0;
}
return 1;
}