/showme Tut

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

  • das dürfte nur die farbe des players in der liste die mit Tab erscheint ändern ^^

  • dann halt so ^^
    if (strcmp("/showme", cmdtext, true) == 0)
    {
    ShowPlayerMarkers(1);
    SetPlayerColor(playerid, 0xFFFFFFAA);
    SendClientMessage(playerid, FARBE,"Du bist nun Sichtbar.");
    return 1;
    }


    if(strcmp("/unshowme" ,cmdtext, true) == 0)
    {
    SetPlayerColor(playerid, 0xFFFFFF00);
    SendClientMessage(playerid, FARBE,"jetzt nicht mehr o.o");
    ShowPlayerMarkers(0);
    return 1;
    }

  • zombie modder wenn du English könntest würdest du hier kein Schrott schreiben.


    SetPlayerMarker(playerid, FARBE); setzt nur einen Marker für den Spieler der den Befehl nutzt.


    GRUß Conkra

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen

  • new Menu:showme;



    if (strcmp("/showme", cmdtext, true, 10) == 0)
    {
    TogglePlayerControllable(playerid, true);
    ShowMenuForPlayer(showme, playerid);
    return 1;
    }


    ongamemodeinit
    showme = CreateMenu("Farben", 2, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(showme, 0, "Grau");
    AddMenuItem(showme, 0, "Lila");
    AddMenuItem(showme, 0, "Dunkelblau");
    AddMenuItem(showme, 0, "Gelb");
    AddMenuItem(showme, 0, "Rot");
    AddMenuItem(showme, 0, "Gruen");
    AddMenuItem(showme, 0, "leuchtendes Gruen");
    AddMenuItem(showme, 0, "Orange");
    AddMenuItem(showme, 0, "helles Gelb");
    AddMenuItem(showme, 0, "Unsichtbar");


    if(CurrentMenu == showme)
    {
    switch(row)
    {
    case 0:
    {
    SetPlayerColor(playerid, COLOR_GREY);
    SendClientMessage(playerid, COLOR_GREY, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 1:
    {
    SetPlayerColor(playerid, COLOR_PURPLE);
    SendClientMessage(playerid, COLOR_PURPLE, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 2:
    {
    SetPlayerColor(playerid, COLOR_DBLUE);
    SendClientMessage(playerid, COLOR_DBLUE, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 3:
    {
    SetPlayerColor(playerid, COLOR_YELLOW);
    SendClientMessage(playerid, COLOR_YELLOW, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 4:
    {
    SetPlayerColor(playerid, COLOR_RED);
    SendClientMessage(playerid, COLOR_RED, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 5:
    {
    SetPlayerColor(playerid, COLOR_GREEN);
    SendClientMessage(playerid, COLOR_GREEN, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 6:
    {
    SetPlayerColor(playerid, COLOR_LIGHTGREEN);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 7:
    {
    SetPlayerColor(playerid, TEAM_ORANGE_COLOR);
    SendClientMessage(playerid, TEAM_ORANGE_COLOR, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 8:
    {
    SetPlayerColor(playerid, COLOR_YELLOW2);
    SendClientMessage(playerid, COLOR_YELLOW2, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 9:
    {
    SetPlayerColor(playerid, TEAM_HIT_COLOR);
    SendClientMessage(playerid, TEAM_HIT_COLOR, "Unsichtbar");
    TogglePlayerControllable(playerid, true);
    }
    }
    }


    RFT

  • if(CurrentMenu == showme)
    {
    switch(row)
    {
    case 0:
    {
    SetPlayerColor(playerid, COLOR_GREY);
    SendClientMessage(playerid, COLOR_GREY, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 1:
    {
    SetPlayerColor(playerid, COLOR_PURPLE);
    SendClientMessage(playerid, COLOR_PURPLE, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 2:
    {
    SetPlayerColor(playerid, COLOR_DBLUE);
    SendClientMessage(playerid, COLOR_DBLUE, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 3:
    {
    SetPlayerColor(playerid, COLOR_YELLOW);
    SendClientMessage(playerid, COLOR_YELLOW, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 4:
    {
    SetPlayerColor(playerid, COLOR_RED);
    SendClientMessage(playerid, COLOR_RED, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 5:
    {
    SetPlayerColor(playerid, COLOR_GREEN);
    SendClientMessage(playerid, COLOR_GREEN, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 6:
    {
    SetPlayerColor(playerid, COLOR_LIGHTGREEN);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 7:
    {
    SetPlayerColor(playerid, TEAM_ORANGE_COLOR);
    SendClientMessage(playerid, TEAM_ORANGE_COLOR, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 8:
    {
    SetPlayerColor(playerid, COLOR_YELLOW2);
    SendClientMessage(playerid, COLOR_YELLOW2, "Farbe");
    TogglePlayerControllable(playerid, true);
    }
    case 9:
    {
    SetPlayerColor(playerid, TEAM_HIT_COLOR);
    SendClientMessage(playerid, TEAM_HIT_COLOR, "Unsichtbar");
    TogglePlayerControllable(playerid, true);
    }
    }
    }
    wo muss ich das einfügen?
    Mfg UnPacheDx