Adminhilfe in dialog

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi was is daran falsch ?


    if(listitem==7)//Admin
    {
    if(SpielerInfo[playerid][Adminlevel]>=6)
    {
    new string[1355];
    strins(string,"\n{54FF52}/createbase - {FFFFFF}Admin Level 6\n{54FF52}/setbasezone - {FFFFFF}Admin Level 6\n{54FF52}/setbaseinnenraum - {FFFFFF}Admin Level 6\n{54FF52}/setbasedruglabor - {FFFFFF}Admin Level 6\n{54FF52}/setbasedruglager - {FFFFFF}Admin Level 6",0);
    strins(string,"\n{54FF52}/fraktionen - {FFFFFF}Admin Level 4\n{54FF52}/createhouse - {FFFFFF}Admin Level 5\n{54FF52}/deletehouse - {FFFFFF}Admin Level 5\n{54FF52}/createclubhouse - {FFFFFF}Admin Level 5\n{54FF52}/deleteclubhouse - {FFFFFF}Admin Level 5\n{54FF52}/kick - {FFFFFF}Admin Level 1\n{54FF52}/gmx - {FFFFFF}Admin Level 6",0);
    strins(string,"\n{54FF52}/setarmor - {FFFFFF}Admin Level 3\n{54FF52}/setskin - {FFFFFF}}Admin Level 3\n{54FF52}/setlevel - {FFFFFF}}Admin Level 5\n{54FF52}/paintcar - {FFFFFF}Admin Level 2\n{54FF52}/givegun - {FFFFFF}Admin Level 6\n{54FF52}/makeadmin - {FFFFFF}Admin Level 6\n{54FF52}/makeleader - {FFFFFF}Admin Level 5\n{54FF52}/unmakeleader - {FFFFFF}Admin Level 5",0);
    strins(string,"\n{54FF52}/o - {FFFFFF}Admin Level 1\n{54FF52}/toggleooc - {FFFFFF}Admin Level 3\n{54FF52}/a - {FFFFFF}Admin Level 1\n{54FF52}/sup - {FFFFFF}Admin Level 1\n{54FF52}/goto - {FFFFFF}Admin Level 1\n{54FF52}/gethere - {FFFFFF}Admin Level 1\n{54FF52}/setheal - {FFFFFF}Admin Level 3\n{54FF52}/ban - {FFFFFF}Admin Level 2\n{54FF52}/mute - {FFFFFF}Admin Level 2",0);
    strins(string,"\n{54FF52}/freeze - {FFFFFF}Admin Level 2\n{54FF52}/makekanzler - {FFFFFF}Admin Level 6\n{54FF52}/spawn - {FFFFFF}Admin Level 2\n{54FF52}/setmypos - {FFFFFF}Admin Level 6",0);
    ShowPlayerDialog(playerid,DIALOG_HELPINFO,DIALOG_STYLE_MSGBOX,"{FFFFFF}Admin-Befehle",string,"Zurück","");
    }
    else
    {
    SendClientMessage(playerid,ROT,"Sie sind kein Admin!");
    ShowPlayerDialog(playerid,DIALOG_HILFE,DIALOG_STYLE_LIST,"Hilfe",Hilfetext,"Auswählen","Abbrechen");
    }
    }

  • if(listitem==7)//Admin
    {
    if(SpielerInfo[playerid][Adminlevel]>=6)
    {
    {
    new string[1355];
    strins(string,"\n{54FF52}/createbase - {FFFFFF}Admin Level 6\n{54FF52}/setbasezone - {FFFFFF}Admin Level 6\n{54FF52}/setbaseinnenraum - {FFFFFF}Admin Level 6\n{54FF52}/setbasedruglabor - {FFFFFF}Admin Level 6\n{54FF52}/setbasedruglager - {FFFFFF}Admin Level 6",0);
    strins(string,"\n{54FF52}/fraktionen - {FFFFFF}Admin Level 4\n{54FF52}/createhouse - {FFFFFF}Admin Level 5\n{54FF52}/deletehouse - {FFFFFF}Admin Level 5\n{54FF52}/createclubhouse - {FFFFFF}Admin Level 5\n{54FF52}/deleteclubhouse - {FFFFFF}Admin Level 5\n{54FF52}/kick - {FFFFFF}Admin Level 1\n{54FF52}/gmx - {FFFFFF}Admin Level 6",0);
    strins(string,"\n{54FF52}/setarmor - {FFFFFF}Admin Level 3\n{54FF52}/setskin - {FFFFFF}}Admin Level 3\n{54FF52}/setlevel - {FFFFFF}}Admin Level 5\n{54FF52}/paintcar - {FFFFFF}Admin Level 2\n{54FF52}/givegun - {FFFFFF}Admin Level 6\n{54FF52}/makeadmin - {FFFFFF}Admin Level 6\n{54FF52}/makeleader - {FFFFFF}Admin Level 5\n{54FF52}/unmakeleader - {FFFFFF}Admin Level 5",0);
    strins(string,"\n{54FF52}/o - {FFFFFF}Admin Level 1\n{54FF52}/toggleooc - {FFFFFF}Admin Level 3\n{54FF52}/a - {FFFFFF}Admin Level 1\n{54FF52}/sup - {FFFFFF}Admin Level 1\n{54FF52}/goto - {FFFFFF}Admin Level 1\n{54FF52}/gethere - {FFFFFF}Admin Level 1\n{54FF52}/setheal - {FFFFFF}Admin Level 3\n{54FF52}/ban - {FFFFFF}Admin Level 2\n{54FF52}/mute - {FFFFFF}Admin Level 2",0);
    strins(string,"\n{54FF52}/freeze - {FFFFFF}Admin Level 2\n{54FF52}/makekanzler - {FFFFFF}Admin Level 6\n{54FF52}/spawn - {FFFFFF}Admin Level 2\n{54FF52}/setmypos - {FFFFFF}Admin Level 6",0);
    ShowPlayerDialog(playerid,DIALOG_HELPINFO,DIALOG_STYLE_MSGBOX,"{FFFFFF}Admin-Befehle",string,"Zurück","");
    }
    else
    {
    SendClientMessage(playerid,ROT,"Sie sind kein Admin!");
    ShowPlayerDialog(playerid,DIALOG_HILFE,DIALOG_STYLE_LIST,"Hilfe",Hilfetext,"Auswählen","Abbrechen");
    }
    }