SetPlayerColor

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
  • #define COLOR_TEAM12 0xC0C0C0AA
    #define COLOR_TEAM13 0x9ACD32AA
    #define COLOR_NOOB 0xFFFFFF00
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_BROWN 0x993300AA
    #define COLOR_CYAN 0x99FFFFAA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x0000BBAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_LIGHTRED 0xFF6347AA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_LIGHTGREEN 0x9ACD32AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PURPLE 0xC2A2DAAA


    So habe alle farben definirt !!


    if(PlayerInfo[playerid][pLeader] == 7)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_YELLOW);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
    PlayerInfo[playerid][pInt] = 3;
    PlayerInfo[playerid][pLocal] = 241;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_BLUE);
    rand = random(sizeof(gCopPlayerSpawns));
    SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_GREEN);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_DARKRED);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_PINK);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -2656.0393,635.0596,14.4531);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_PURPLE);
    SetPlayerInterior(playerid, 17);
    SetPlayerPos(playerid, 475.013610,-15.532709,1003.695312);
    PlayerInfo[playerid][pInt] = 17;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_BROWN);
    SetPlayerInterior(playerid, 5);
    SetPlayerPos(playerid, 1255.069580,-804.666503,1084.015136);
    PlayerInfo[playerid][pInt] = 5;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_ORANGE);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1124.2415,-2037.1274,69.8847);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_YELLOW);
    SetPlayerPos(playerid, 1725.249633,-1663.713745,20.229757);
    SetPlayerInterior(playerid,18);
    PlayerInfo[playerid][pInt] = 18;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_CYAN);
    SetPlayerPos(playerid, -218.845748,1405.563964,27.773437);
    SetPlayerInterior(playerid,18);
    PlayerInfo[playerid][pInt] = 18;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_BLUE);
    SetPlayerPos(playerid, 681.442016,-456.438903,-25.609874);
    SetPlayerFacingAngle(playerid, 4.156707);
    SetPlayerInterior(playerid,1);
    PlayerInfo[playerid][pInt] = 1;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetPlayerPos(playerid, 912.460632,-1235.048461,17.210937);
    SetPlayerFacingAngle(playerid, 4.754567);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;Hab das so gemacht wie es Bei euch im forum steht !!


    SetPDistance(10);
    SetWeather(3);
    EnableTirePopping(1);
    AllowInteriorWeapons(1);
    AllowAdminTeleport(1);
    UsePlayerPedAnims();
    ShowNameTags(1);
    ShowPlayerMarkers(1);
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(0);
    for(new i = 0; i < sizeof(CreatedCars); i++)


    Mhh ,kann mir da jemand helfen ? Hab kein fehler in pwn , aber mann sieht die farben nicht (Im Radar)


    Habe auch das ganze Forum durchsucht !! Bitte um hilfe :( :( :?:

  • weil das radar ausgeschaltet ist also das man sieht die players....
    ich weiss aber leider nicht mehr den command der das aktiviert dann müsstest du die zeile nur löschen :D


    Never forget me , forget yourself !

    Zitat

    So. Alle Beiträge werden gelöscht, kann ja nicht sein, ihr habt sie nicht mehr alle..

  • ach man ! Also wenn ich das


    ShowPlayerMarkers(1);


    oder das mache


    ShowPlayerMarkers(0);


    es geht nicht ! Was mach ich den nur Falsch ?????


    ?( ?(


    Und wie ist das mit PHP code gemeint ????

    Einmal editiert, zuletzt von Lowrider ()

  • Probier ist mal so habe interior auf 0 gesetzt
    if(PlayerInfo[playerid][pLeader] == 7)


    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
    SetPlayerColor(playerid,COLOR_YELLOW);
    PlayerInfo[playerid][pInt] = 0;


    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gCopPlayerSpawns));
    SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerColor(playerid,COLOR_BLUE);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_GREEN);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_DARKRED);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_PINK);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -2656.0393,635.0596,14.4531);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_PURPLE);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 475.013610,-15.532709,1003.695312);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_BROWN);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1255.069580,-804.666503,1084.015136);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_ORANGE);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1124.2415,-2037.1274,69.8847);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_YELLOW);
    SetPlayerPos(playerid, 1725.249633,-1663.713745,20.229757);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_CYAN);
    SetPlayerPos(playerid, -218.845748,1405.563964,27.773437);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_BLUE);
    SetPlayerPos(playerid, 681.442016,-456.438903,-25.609874);
    SetPlayerFacingAngle(playerid, 4.156707);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetPlayerPos(playerid, 912.460632,-1235.048461,17.210937);
    SetPlayerFacingAngle(playerid, 4.754567);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • hmm.. kp mehr :?:
    vll. ladest du dir mal ein standart GF und fügst es dort ein als TEST und wenn es dort geht versuchst du einen zusammenhang zu finden was die ursache sein kann.
    ____


    //edit: ich denke das muss i-was beipublic OnGameModeInit() sein ich hoffe du findest es bald :thumbup: