Etwas mehr Code wäre evtl hilfreich.
Zum Beispiel der ganze Teil wo der Fraktionsbefehle Dialog ausgegeben werden soll.
ocmd:frakhelp(playerid,params[]){
#pragma unused params
if(PlayerInfo[playerid][Team] == 0)return SendClientMessage(playerid, COLOR_RED,"Du bist in keiner Fraktion!");
FrakHelpMenu(playerid);
return 1;
}
stock FrakHelpMenu(playerid){
new strdialog[2600];
switch(PlayerInfo[playerid][Team]) {
case 1: { //Cripz
if(PlayerInfo[playerid][Leader] == 1) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 2: { //Bloodz
if(PlayerInfo[playerid][Leader] == 2) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 3: { //Triaden
if(PlayerInfo[playerid][Leader] == 3) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 4: { //LCN
if(PlayerInfo[playerid][Leader] == 4) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 5: { //Vagos
if(PlayerInfo[playerid][Leader] == 5) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 6: { //SeSe
if(PlayerInfo[playerid][Leader] == 6) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /giveschein | /gov | /invite | /removebl\n/respawncars | /setbl | /setrank | /showme | /showmeoff | /sperrzone | /sperrzoner | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /abseilen | /cuff | /entsperrzoll | entsperrzollall | /frisk | /grab | /hs | /members | /nagelbrett | /nagelbrettdelete | /pu | /ram | /rb | /rrb\n/rrball | /showcars | /showzoll");
strcat(strdialog,""cWhite"/sirene | /sperrzoll | /su | /take | /tazer | /ticket | /tor | /uncuff | /ungrab | /unhs | /wanted\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 7: { //Terror
if(PlayerInfo[playerid][Leader] == 7) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /uninvite | /healp (Healpunkt umsetzen) | /waffenp (Waffenpunkte umsetzen) | /eingangp | /ausgangp | /cbrall\n/tpark | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bl | /bombs | /breakrb | /einnehmen | /explode | /members | /sellbomb | /tor | /zund | /abseilen | /explodezeit\n/bombzeit | /grab");
strcat(strdialog,""cWhite"/skin | /cbr | /cbi | /rcrob | /rcbomb | /cblist | /bombl\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 8: { //Yakuza
if(PlayerInfo[playerid][Leader] == 8) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 9: return 1; //LV Polizist
case 10: { //Cali
if(PlayerInfo[playerid][Leader] == 10) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 11: { //SAPD
if(PlayerInfo[playerid][Leader] == 11) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /gov | /invite | /removebl\n/respawncars | /setbl | /setrank | /sperrzone | /sperrzoner | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /arrest | /abseilen | /alktest | /anhalten | /arm | /bl | /checkblitzer | /clear | /clearpu | /convicts | /cuff | /entsperrzoll | /entsperrzollall\n/find | /frisk | /grab | /hs | /members/nagelbrett | /nagelbrettdelete\n");
strcat(strdialog,""cWhite"/pu | /ram | /rb | /removei | /rrb | /rrball | /ruecken | /showcars | /showzoll | /sirene | /sperrzoll | /su | /take | /tazer | /ticket | /tor\n/uncuff | /ungrab | /unhs | /wanted | /wg | /giveschein\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 12: return 1; //Medic
case 13: return 1; //Feuerwehr
case 14: { //SAED
if(PlayerInfo[playerid][Leader] == 14) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /uninvite | /gov | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /accept auftrag | /auftrage | /bl | /brande | /carfind | /checkblitzer | /clearpu | /done | /finda | /hs | /heal\n/blitzer | /blitzerr | /showblitzer |");
strcat(strdialog,""cWhite" /members | /pu | /refill | /repair | /repairme | /showcars\n/sperrfahrzeug | /tazer | /tor | /unhs | /wb | /torall | /oticket | /entzug | /suchtstatus\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 15: return 1; //Taxi
case 16: { //News Reporter
if(PlayerInfo[playerid][Leader] == 16) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bl | /camoff | /camon | /interview | /interviewoff | /members | /setcam | /showme | /showmeoff | /tor | /tazer | /lp | /news | /read | /baustellen\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 17: return 1; //Pilot
case 18: { //FBI
if(PlayerInfo[playerid][Leader] == 18) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /gov | /invite | /removebl\n/respawncars | /setbl | /setrank | /sperrzone | /sperrzoner | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /arrest | /abseilen | /alktest | /anhalten | /arm | /bl | /checkblitzer | /clear | /convicts | /cuff | /entsperrzoll | /entsperrzollall\n/find | /frisk | /grab | /hs | /members | /nagelbrett | /nagelbrettdelete | /ram | /rb | /removei | /rrb | /rrball\n");
strcat(strdialog,""cWhite"/ruecken | /showcars | /showzoll | /sirene | /sperrzoll | /su | /take | /tazer | /ticket | /tor | /uncuff | /ungrab | /unhs\n/wanted | /wg | /hein | /haus | /nameaus | /namean | /giveschein\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 19: { //Army
if(PlayerInfo[playerid][Leader] == 19) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite"/autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /gov | /invite | /removebl\n/respawncars | /setbl | /setrank | /sperrzone | /sperrzoner | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /arrest | /abseilen | /alktest | /anhalten | /arm | /bl | /checkblitzer | /clear | /convicts | /cuff | /entsperrzoll | /entsperrzollall\n/find | /frisk | /grab | /hs | /members | /nagelbrett | /nagelbrettdelete | /ram | /rb | /removei\n");
strcat(strdialog,""cWhite"/rrb | /rrball | /ruecken | /showcars | /showzoll | /sirene | /sperrzoll | /su | /take | /tazer | /ticket | /tor | /uncuff | /ungrab\n/unhs | /wanted | /wg | /giveschein /removebomb\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 20: return 1; //SFPD
case 21: { //Hitman
strcat(strdialog,""cBlue"Befehle:"cWhite" Befehle sind nicht vorhanden in der Liste!");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 22: { //Fahrschule
if(PlayerInfo[playerid][Leader] == 22) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /accept auftrag | /auftrage | /bl | /done | /finda | /give | /members | /pruef | /pruefliste | /tor | /unpruef\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 23: { //Wheelman Agency
if(PlayerInfo[playerid][Leader] == 23) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /uninvite | /veventr | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /accept auftrag | /auftrage | /bl | /done | /finda | /getfree | /members | /setcp | /tor\n");
strcat(strdialog,""cWhite"Für die Race Befehle -> /racehelp");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 24: return 1; //Red Soldiers
case 25: { //VLA
if(PlayerInfo[playerid][Leader] == 25) {
strcat(strdialog,""cRed"Leader Befehle:"cWhite" /autohaus | /changecar | /fhausauf | /fhauszu | /fmembers | /fparken | /giverank | /invite | /removebl\n/respawncars | /setbl | /setrank | /startwar | /uninvite | /removef\n\n");
}
strcat(strdialog,""cBlue"Befehle:"cWhite" /bizrob | /bl | /einnehmen | /hacken | /hackenlspd | /members | /rob | /frob | /trob | /bizrob\n");
strcat(strdialog,""cWhite"Für die Drogen Befehle schaue unter /help > Drogen Hilfe\n");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
case 26: return 1;
case 27: return 1;
case 28: { //Hacker Agency
strcat(strdialog,""cBlue"Befehle:"cWhite" Das willste wohl wissen, wa?");
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, ""cRed"Fraktionsbefehle", strdialog, "Schließen", "Schließen");
}
}
return 1;
}
Hier die ganzen Fraktionsbefehle