Beiträge von BadBanger95

    Hallo Ich würde gerne im folgenden Befehl nur die Wörter "bestanden" GRÜN und "nicht bestanden" ROT machen wie bekomme ich das hin O.o ?







    if(strcmp(cmd,"/licenses",true)==0)
    {
    if(IsPlayerConnected(playerid))
    {
    new text1[20];
    new text3[20];
    new text4[20];
    new text5[20];
    new text6[20];
    new text7[20];
    new text8[20];
    new text9[20];
    if(PlayerInfo[playerid][pCarLic]) { text1 = "bestanden"; } else { text1 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pFlyLic]) { text3 = "bestanden"; } else { text3 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pBoatLic]) { text4 = "bestanden"; } else { text4 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pFishLic]) { text5 = "bestanden"; } else { text5 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pGunLic]) { text6 = "bestanden"; } else { text6 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pMotoLic]) { text7 = "bestanden"; } else { text7 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pLKWLic]) { text8 = "bestanden"; } else { text8 = "nicht bestanden"; }
    if(PlayerInfo[playerid][pRollerLic]) { text9 = "bestanden"; } else { text9 = "nicht bestanden"; }
    SendClientMessage(playerid, COLOR_WHITE, "|__________________ Lizenzen __________________|");
    format(string, sizeof(string), "** Führerschein: %s.", text1);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Fluglizenz: %s.", text3);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Segelschein: %s.", text4);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Angelschein: %s.", text5);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Waffenschein: %s.", text6);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Motorradschein: %s.", text7);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** LKW Schein: %s.", text8);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "** Rollerschein: %s.", text9);
    SendClientMessage(playerid, COLOR_GREY, string);
    SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________|");
    }
    return 1;
    }