Spieler auf Minimap anzeigen

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
  • Function SetPlayerTeamColor(playerid)
    {
    if(pDaten[playerid][Member] == 0 || pDaten[playerid][Leader] == 0)
    {
    SetPlayerColor(playerid,TEAM_ZIVI_COLOR);
    }
    else if(pDaten[playerid][Member] == 1 && OnDuty[playerid]==1 || pDaten[playerid][Leader] == 1 && OnDuty[playerid]==1)
    {
    SetPlayerColor(playerid,TEAM_COPS_COLOR);
    }
    else if(pDaten[playerid][Member] == 2 && OnDuty[playerid]==1 || pDaten[playerid][Leader] == 2 && OnDuty[playerid]==1)
    {
    SetPlayerColor(playerid,TEAM_SPEZ_COLOR);
    }
    else if(pDaten[playerid][Member] == 3 || pDaten[playerid][Leader] == 3)
    {
    SetPlayerColor(playerid,TEAM_FEU_COLOR);
    }
    else if(pDaten[playerid][Member] == 4 || pDaten[playerid][Leader] == 4)
    {
    SetPlayerColor(playerid,TEAM_MEDIC_COLOR);
    }
    else if(pDaten[playerid][Member] == 5 || pDaten[playerid][Leader] == 5)
    {
    SetPlayerColor(playerid,TEAM_OAMT_COLOR);
    }
    else if(pDaten[playerid][Member] == 6 || pDaten[playerid][Leader] == 6)
    {
    SetPlayerColor(playerid,TEAM_YAK_COLOR);
    }
    else if(pDaten[playerid][Member] == 7 || pDaten[playerid][Leader] == 7)
    {
    SetPlayerColor(playerid,TEAM_BALL_COLOR);
    }
    else if(pDaten[playerid][Member] == 8 || pDaten[playerid][Leader] == 8)
    {
    SetPlayerColor(playerid,TEAM_GS_COLOR);
    }
    else if(pDaten[playerid][Member] == 9 || pDaten[playerid][Leader] == 9)
    {
    SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
    }
    else if(pDaten[playerid][Member] == 10 || pDaten[playerid][Leader] == 10)
    {
    SetPlayerColor(playerid,TEAM_ATZE_COLOR);
    }
    else if(pDaten[playerid][Member] == 11 || pDaten[playerid][Leader] == 11)
    {
    SetPlayerColor(playerid,TEAM_CNN_COLOR);
    }
    else if(pDaten[playerid][Member] == 12 || pDaten[playerid][Leader] == 12)
    {
    SetPlayerColor(playerid,TEAM_RS_COLOR);
    }
    else if(pDaten[playerid][Member] == 13 || pDaten[playerid][Leader] == 13)
    {
    SetPlayerColor(playerid,TEAM_LCN_COLOR);
    }
    else if(pDaten[playerid][Member] == 14 || pDaten[playerid][Leader] == 14)
    {
    SetPlayerColor(playerid,TEAM_MAFIA_COLOR);
    }
    else if(pDaten[playerid][Member] == 15 || pDaten[playerid][Leader] == 15)
    {
    SetPlayerColor(playerid,TEAM_LBC_COLOR);
    }
    else if(pDaten[playerid][Member] == 16 || pDaten[playerid][Leader] == 16)
    {
    SetPlayerColor(playerid,TEAM_TRIADEN_COLOR);
    }
    else if(pDaten[playerid][Member] == 17 || pDaten[playerid][Leader] == 17)
    {
    SetPlayerColor(playerid,TEAM_HITMAN_COLOR);
    }
    else
    {
    SetPlayerColor(playerid,TEAM_ZIVI_COLOR);
    }
    return 1;
    }[align=center][/align]
    bei mir ist das so