Minimap Makierung entfernen

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
  • Hallo,
    ich habe da ein kleines Problem,
    jeder Spieler wird in der Minimap als ein weißer Punkt gezeigt, wie entferne ich den..


    Bitte schaut euch das mal an


    Das TeamColor (Hab diese Farben eigentlich eingeklammert, trotz dessen sieht man alle Spieler als weißer Punkt in der MiniMap)


    Function SetPlayerToTeamColor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    // Copfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    // Copfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    //SetPlayerColor(playerid,NAMECOLOR_ARMY); // Armyfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    // white SetPlayerColor(playerid,NAMECOLOR_MEDIC); // Arztfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_LCN); // LaCostaNostrafarbe
    }
    else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_YAKUZA); // Yakuzafarbe
    }
    else if(PlayerInfo[playerid][pLeader] == 7)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_PRAESI); // Präsifarbe
    }
    else if(PlayerInfo[playerid][pMember] == 7)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_PRAESI_SCHUTZ); // Präsischutzfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_CNN); // CNNfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_TAXI); // Taxifarbe
    }
    else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_LEHRER); // Fahrlehrerfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_Grove); // Grovefarbe
    }
    else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_Bloods); // Bloodsfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_FAF); // Ls Biker Club-farbe
    }
    else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_MaraSalvatrucha); // MaraSalvatruchafarbe
    }
    else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_Crips); //Cripsfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
    {
    //SetPlayerColor(playerid,0xff6600); // white
    }
    else if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
    {
    // OAMT Farbe
    }
    else
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    }
    }




    Die Fraktionen ( SetPlayerToTeamColor )


    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 220.0979,108.2944,1010.2188); // Warp the player
    SetPlayerFacingAngle(playerid,random(360));
    SetPlayerInterior(playerid,10);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,6);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,219.7876,69.6195,1005.0391);
    SetPlayerFacingAngle(playerid,273.0);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Army spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2729.3303,-2451.3550,17.5937);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Sanitäter spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2028.1194,-1403.0164,17.2372);
    SetPlayerFacingAngle(playerid,88.8873);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid,1);
    SetPlayerHealth(playerid,100);
    SetPlayerPos(playerid,1273.1633,-804.5030,1089.9321);
    SetPlayerFacingAngle(playerid,273.2191);
    return 1;
    }
    if (PlayerInfo[playerid][pLeader] == 6)//Leader Yakuza
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);// spawn waffen
    SetPlayerVirtualWorld(playerid,0);// virtuelle welt
    SetPlayerPos(playerid,1962.8567,973.3038,994.4688);//spawn koordinaten
    SetPlayerFacingAngle(playerid,42.8977);
    SetPlayerInterior(playerid,10);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 6)//Member Yakuza
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerHealth(playerid,100);
    GivePlayerWeapons(playerid);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 1962.8567,973.3038,994.4688);
    SetPlayerFacingAngle(playerid, 42.8977);
    SetPlayerInterior(playerid, 10);
    if(PlayerInfo[playerid][pRank] == 1 && PlayerInfo[playerid][pSex] == 1)
    {
    SetPlayerSkin(playerid, 122);
    }
    else if(PlayerInfo[playerid][pRank] == 2 && PlayerInfo[playerid][pSex] == 1)
    {
    SetPlayerSkin(playerid, 123);
    }
    else if(PlayerInfo[playerid][pRank] == 3 || PlayerInfo[playerid][pRank] == 4 && PlayerInfo[playerid][pSex] == 1)
    {
    SetPlayerSkin(playerid, 294);
    }
    else if(PlayerInfo[playerid][pRank] == 5 && PlayerInfo[playerid][pSex] == 1)
    {
    SetPlayerSkin(playerid, 186);
    }
    else if(PlayerInfo[playerid][pRank] >= 6 && PlayerInfo[playerid][pSex] == 1)
    {
    SetPlayerSkin(playerid, 228);
    }
    else if(PlayerInfo[playerid][pSex] == 2)
    {
    SetPlayerSkin(playerid, 169);
    }
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 7)//Präsident spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1290.6393,-791.4279,1089.9375);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 7)//Bodyguard spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,1274.0594,-790.8364,1089.9316);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2807.2910,-1166.6786,1025.5703);
    SetPlayerFacingAngle(playerid,272.1251);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid,3);
    GivePlayerWeapons(playerid);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News Reporter spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,1653.9125,-1657.5243,22.5156);
    SetPlayerFacingAngle(playerid, 179.7355);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 1025.2363,-1358.8267,13.7266);
    SetPlayerFacingAngle(playerid,243.8503);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Triaden
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,-2642.3894,1398.7834,906.4666);
    SetPlayerFacingAngle(playerid,51.4238);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 3;
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerInterior(playerid,8);
    SetPlayerHealth(playerid,100);
    PlayerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,4);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Ballas GANG
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,281.6475);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,6);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Sf Biker Club
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,-2032.5929,161.4476,29.046);
    SetPlayerFacingAngle(playerid,263.0450);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos MaraSalvatrucha
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerVirtualWorld(playerid,8);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 8;
    if(PlayerInfo[playerid][pRank] >= 0 && PlayerInfo[playerid][pRank] <= 2)
    {
    SetPlayerSkin(playerid, 110);
    }
    else if(PlayerInfo[playerid][pRank] >= 3 && PlayerInfo[playerid][pRank] <= 5)
    {
    SetPlayerSkin(playerid, 108);
    }
    else if(PlayerInfo[playerid][pLeader] == 16)
    {
    SetPlayerSkin(playerid, 109);
    }
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Crips
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,134.9023);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,9);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //Los Santos Rifa
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2807.1306,-1166.3514,1025.5703);
    SetPlayerHealth(playerid,100);
    SetPlayerFacingAngle(playerid,223.2888);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //RS SPAWN
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,234.1262,1081.6293,1084.2415);
    SetPlayerFacingAngle(playerid,179.4645);
    SetPlayerInterior(playerid,6);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,179.9684);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,12);
    GivePlayerWeapons(playerid);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(IsPlayerInFrac(playerid, 21))
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2562.6875,-1282.1237,1065.3672);
    SetPlayerInterior(playerid,2);
    SetPlayerVirtualWorld(playerid,0);
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //SWAT
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,216.5056,168.7749,1003.0234);
    SetPlayerFacingAngle(playerid,273.0);
    SetPlayerInterior(playerid, 3);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Russenmafia spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1728.3701,-1667.5378,22.6094);
    SetPlayerFacingAngle(playerid,39.2599);
    SetPlayerInterior(playerid,18);
    PlayerInfo[playerid][pInt] = 0;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Oamt spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,323.3881,308.5240,999.1484);
    SetPlayerInterior(playerid,5);
    PlayerInfo[playerid][pInt] = 5;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)//Makler
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2215.2573,1805.6851,10.8203,89.5827);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(IsAnInstructor(playerid)) //Fahrschule spawn
    {
    if(SchoolSpawn[playerid] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2022.2632,-116.6569,1035.1719);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapons(playerid);
    }
    else if(SchoolSpawn[playerid] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2145.5706,-1803.3696,16.1406);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapons(playerid);
    }
    return 1;
    }



    Ich bitte bitte um Hilfe!!

    Einmal editiert, zuletzt von Mellow500 () aus folgendem Grund: Textcode verändert.