Kann mir bitte jemand helfen den befehl so zumachen das wen man /aduty macht on duty und off duty gehen kann?
dcmd_aoffd(playerid,params[])
{
#pragma unused params
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(SInfo[playerid][pAdmin] >= 1)
{
new string[128];
format(string,sizeof(string),"Administrator %s ist nun außer Dienst!",aname);
SendClientMessageToAll(0xFF6E00FF,string);
SetPlayerColor(playerid, 0xAAAAAA00);
Delete3DTextLabel(Spielerlabel[playerid]);
}
return 1;
}
dcmd_aond(playerid,params[])
{
#pragma unused params
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(SInfo[playerid][pAdmin] >= 1)
{
new string[128];
format(string,sizeof(string),"Administrator %s ist nun im Dienst!",aname);
SendClientMessageToAll(0xFF00E1FF,string);
SetPlayerColor(playerid,0xFF00E1FF);
Spielerlabel[playerid] = Create3DTextLabel("Supporter OnDuty", 0xEB0000FF, 0, 0, 1.0, 20.0,-1,0);
Attach3DTextLabelToPlayer(Spielerlabel[playerid], playerid, 0.0, 0.0, 0.7);
}
return 1;
}