if(strcmp(cmd,"/aduty",true)== 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new name[MAX_PLAYER_NAME];
new string[64];
GetPlayerName(playerid,name,sizeof(name));
if(ADuty[playerid] == 1)
{
format(string,sizeof(string),"Admin ist nichtmehr Onduty",name);
SendClientMessageToAll(FARBE,string);
ADuty[playerid] = 0;
}
else
{
format(string,sizeof(string),"Admin ist nun nichtmehr Onduty",name);
SendClientMessageToAll(FARBE,string);
ADuty[playerid] = 1;
}
}
else
{
SendClientMessage(playerid,FARBE,"Du bist nicht befugt!");
}
}
return 1;
}
Bitte.