So, es kann nur hier dran liegen:
Function AdminDienst(playerid)
{
new sendername[MAX_PLAYER_NAME],string[128];
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3 || PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 6 || PlayerInfo[playerid][pAdmin] == 7)
{
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Meldung: %s hat sich als Supporter angemeldet. Er ist mit /support erreichbar.",sendername,playerid);
SendClientMessageToAll(COLOR_SUPPORT, string);
return 1;
}
}
else if(PlayerInfo[playerid][pSex] == 2)
{
if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3 || PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 6 || PlayerInfo[playerid][pAdmin] == 7)
{
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Meldung: %s hat sich als Supporterin angemeldet. Sie ist mit /support erreichbar.",sendername,playerid);
SendClientMessageToAll(COLOR_SUPPORT, string);
return 1;
}
}
}
if(AdminDuty[playerid] == 1)
{
if(PlayerInfo[playerid][pSex] == 1)
{
AdminDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Meldung: %s hat sich als Supporter abgemeldet.",sendername);
SendClientMessageToAll(COLOR_SUPPORT, string);
}
else
if(PlayerInfo[playerid][pSex] == 2)
{
AdminDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Meldung: %s hat sich als Supporterin abgemeldet.",sendername);
SendClientMessageToAll(COLOR_SUPPORT, string);
}
}
return 1;
}