Jetzt müsste es stimmen
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] <= 8)
new string[128];
{
new spname[MAX_PLAYER_NAME];
format(string,24,"["SERVERTAG"]%s",PlayerInfo[playerid][ppName]);
SetPlayerName(playerid,string);
AdminDuty[playerid] = 1;
Mod[playerid] = Create3DTextLabel("Admindienst",0x7DFF00C7,30.0,40.0,50.0,20.0,1,1);
Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
format(string,sizeof(string),"[Teammitglied] %s geht in den Admindienst.",spname(playerid));
SendClientMessageToAll(COLOR_GRÜN,string);
SetPlayerColor(playerid, COLOR_GRÜN);
return 1;
}
}
if(AdminDuty[playerid] == 1)
new string[128];
{
new spname[MAX_PLAYER_NAME];
SetPlayerName(playerid,PlayerInfo[playerid][ppName]);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
Delete3DTextLabel(Mod[playerid]);
format(string,sizeof(string),"[Teammitglied] %s geht aus dem Admindienst",spname(playerid));
SendClientMessageToAll(ROT,string);
SetPlayerColor(playerid, COLOR_NOFRAK);
return 1;
}
return 1;
}