Fhelp geht nicht

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
  • Mein /fhelp Befehl geht nicht.
    Er zeigt mir immer an das ich in keiner Fraktion bin, obwohl ich in einer Fraktion bin warum ?


    Function ShowPlayerFractionCommands(playerid)
    {
    if(IsPlayerInFrac(playerid,0))return SendClientMessage(playerid,0x00C3FFFF,"Du bist kein Kraktionsmitglied.");
    else if(IsPlayerInFrac(playerid,1))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,2))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,3))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,4))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** MEDIC *** /untersuchen, /revive, /duty, /heal, /frc, /accept medic");
    }
    else if(IsPlayerInFrac(playerid,5))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,6))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,7))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** PRÄSI *** /settax /givetax /penter /pexit /dachluke /präsibüro /ptor /FRC");
    }
    else if(IsPlayerInFrac(playerid,8))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /portable /henter /hfind /hexit /bestellen /tie /untie /kidnap /gangjail /gangunjail /mundtape");
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /durchsuchen /augenbinde /frakkammermats /frakkammer /FRC /sad");
    }
    else if(IsPlayerInFrac(playerid,9))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** NEWS *** /paper /papers /live /news [text] /ntor /FRC");
    }
    else if(IsPlayerInFrac(playerid,10))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TAXI *** /fare [Fahrpreis] /FRC");
    }
    else if(IsPlayerInFrac(playerid,11))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FAHRLEHRER *** /startlesson /stoplesson /givelicense /lehrerlift /licensepreise /FRC");
    }
    else if(IsPlayerInFrac(playerid,12))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,13))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,14))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,15))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,16))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,17))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,18))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,19))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /f, /duty, /sellrepair, /accept adac");
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /sellrefill, /sellwechsel, /FRC");

    }
    else if(IsPlayerInFrac(playerid,20))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /augenbinde /frakkammermats /frakkammer /FRC");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /klauc4, /kleidungklauen, /kleidungtragen, /nackenschlag");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /autobombe");
    }
    else if(IsPlayerInFrac(playerid,21))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,22))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,23))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** OAMT *** /oamtls /oticket /m /tazer /blitzer /findcar /parkkralle /FRC");
    }
    return 1;
    }


    ocmd:fhelp(playerid,params[])
    {
    ShowPlayerFractionCommands(playerid);
    }

  • So ich habe das nun endlich mal Eingefügt, doch es klappt Leider immernochnicht.
    Wisst ihr wie das kommt, oder was ich jetzt nocht machen soll ?


    Ich habe das jetzt so stehen im Script.
    ocmd:fhelp(playerid,params[])
    {
    ShowPlayerFractionCommands(playerid);
    return 1;
    }


    stock ShowPlayerFractionCommands(playerid)
    {
    if(IsPlayerInFrac(playerid,0))return SendClientMessage(playerid,0x00C3FFFF,"Du bist kein Fraktionsmitglied.");
    else if(IsPlayerInFrac(playerid,1))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,2))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,3))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,4))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** MEDIC *** /untersuchen, /revive, /duty, /heal, /frc, /accept medic");
    }
    else if(IsPlayerInFrac(playerid,5))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,6))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,7))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** PRÄSI *** /settax /givetax /penter /pexit /dachluke /präsibüro /ptor /FRC");
    }
    else if(IsPlayerInFrac(playerid,8))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /portable /henter /hfind /hexit /bestellen /tie /untie /kidnap /gangjail /gangunjail /mundtape");
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /durchsuchen /augenbinde /frakkammermats /frakkammer /FRC /sad");
    }
    else if(IsPlayerInFrac(playerid,9))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** NEWS *** /paper /papers /live /news [text] /ntor /FRC");
    }
    else if(IsPlayerInFrac(playerid,10))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TAXI *** /fare [Fahrpreis] /FRC");
    }
    else if(IsPlayerInFrac(playerid,11))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FAHRLEHRER *** /startlesson /stoplesson /givelicense /lehrerlift /licensepreise /FRC");
    }
    else if(IsPlayerInFrac(playerid,12))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,13))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,14))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,15))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,16))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,17))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,18))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,19))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /f, /duty, /sellrepair, /accept adac");
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /sellrefill, /sellwechsel, /FRC");

    }
    else if(IsPlayerInFrac(playerid,20))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /augenbinde /frakkammermats /frakkammer /FRC");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /klauc4, /kleidungklauen, /kleidungtragen, /nackenschlag");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /autobombe");
    }
    else if(IsPlayerInFrac(playerid,21))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,22))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,23))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** OAMT *** /oamtls /oticket /m /tazer /blitzer /findcar /parkkralle /FRC");
    }
    return 1;
    }


    So habe ich es im Script stehen.
    MfG

  • Versuchs mal so:


    Spoiler anzeigen
    stock ShowPlayerFractionCommands(playerid)
    {
    if(!IsPlayerInFrac(playerid,0))return SendClientMessage(playerid,0x00C3FFFF,"Du bist kein Fraktionsmitglied.");
    if(IsPlayerInFrac(playerid,1))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** LSPD *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,2))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** FBI *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,3))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /zivil /rbball /ticket /sperre");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /gov)ernment /pd1 /pd2 /pdd ( Innen Tore )/sfpdtor /orten /tazer /frisk /take /schild /rb /rbb /sperrewegall");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /alcator /alcatür /alcalift /alcaptor /zollcontrol"#COL_RED" /ucl /ucldel /deskkick");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /nagelband (/nb) /nagelbandweg (/nbw) /nagelbandwegall (/nbwa) /spionagetool (FBI)");
    SendClientMessage(playerid,0xF5FF00FF,"*** ARMY *** /FRC ( Carrespawn (Leader) ) /armylift1 /armylift2");
    }
    else if(IsPlayerInFrac(playerid,4))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** MEDIC *** /untersuchen, /revive, /duty, /heal, /frc, /accept medic");
    }
    else if(IsPlayerInFrac(playerid,5))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** LCN *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,6))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** YAKUZA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,7))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** PRÄSI *** /settax /givetax /penter /pexit /dachluke /präsibüro /ptor /FRC");
    }
    else if(IsPlayerInFrac(playerid,8))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /portable /henter /hfind /hexit /bestellen /tie /untie /kidnap /gangjail /gangunjail /mundtape");
    SendClientMessage(playerid,0xF5FF00FF,"*** HITMAN *** /durchsuchen /augenbinde /frakkammermats /frakkammer /FRC /sad");
    }
    else if(IsPlayerInFrac(playerid,9))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** NEWS *** /paper /papers /live /news [text] /ntor /FRC");
    }
    else if(IsPlayerInFrac(playerid,10))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TAXI *** /fare [Fahrpreis] /FRC");
    }
    else if(IsPlayerInFrac(playerid,11))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** FAHRLEHRER *** /startlesson /stoplesson /givelicense /lehrerlift /licensepreise /FRC");
    }
    else if(IsPlayerInFrac(playerid,12))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** CRIPS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,13))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** GSTREET *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,14))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BALLAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,15))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BIKER *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,16))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** VAGOS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,17))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** ATZTECAS *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,18))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** RIFA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,19))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /f, /duty, /sellrepair, /accept adac");
    SendClientMessage(playerid,0xF5FF00FF,"*** ADAC *** /sellrefill, /sellwechsel, /FRC");

    }
    else if(IsPlayerInFrac(playerid,20))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /augenbinde /frakkammermats /frakkammer /FRC");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /klauc4, /kleidungklauen, /kleidungtragen, /nackenschlag");
    SendClientMessage(playerid,0xF5FF00FF,"*** TERROR *** /autobombe");
    }
    else if(IsPlayerInFrac(playerid,21))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,22))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** - *** Keine Frakbefehle");
    }
    else if(IsPlayerInFrac(playerid,23))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /f, /mundtape, /lenter, /lexit, /ctf, /lcntor");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /kidnap, /gangjail, /gangunjail, /mundtape, /tie, /untie, /durchsuchen");
    SendClientMessage(playerid,0xF5FF00FF,"*** BRIGADA *** /augenbinde /frakkammermats /frakkammer /FRC");
    }
    else if(IsPlayerInFrac(playerid,24))
    {
    SendClientMessage(playerid,0xF5FF00FF,"*** OAMT *** /oamtls /oticket /m /tazer /blitzer /findcar /parkkralle /FRC");
    }
    return 1;
    }

    Einmal editiert, zuletzt von Master147 ()



  • Das kann ja garnicht stimmen, da fragst du oben ab ob er NICHT in der Fraktions ID 0 ist. Wenn er das nicht ist kommt die Error Message.


    MfG
    Acer

  • Bei dir kommt die Nachricht wenn du nicht Admin Level 3 bist. Bei 3 kommt die Nachricht nicht.


    Bei deinem Code zum Problem siehts auch so aus.


    !IsPlayerInFrac(playerid,0)


    Wenn der Spieler in einer anderen Fraktion als 0 ist, vorausgesetzt die Funktion IsPlayerInFrac funktioniert so wie erwartet, dann kommt die Nachricht, dass man in keiner Fraktion ist.

  • Währe es nicht sinvoller das



    if(IsPlayerInFrac(playerid,0))return SendClientMessage(playerid,0x00C3FFFF,"Du bist kein Fraktionsmitglied.");
    ganz unten hinzusetzten. Also das erst abgefragt wird ob er in einer der Fraktionen ist und wenn nicht dann erst die Nachricht schicken?

    seekrass approved
    4x vom Discord geflogen


    shoxinat0r 4
    dennismitzwein 2
    Trooper[Y] 2
    maddin 1
    Unbekannter Discord Kick 2