[AJUDA] Cores das orgs
#1

pawn Код:
forward SetPlayerToTeamColor(playerid);
pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,FPS[playerid]);
    TextDrawShowForPlayer(playerid, TextDrawdeData[playerid]);
    TextDrawShowForPlayer(playerid, TextDrawdeHora[playerid]);
    SetPVarInt(playerid, "spawned", true);
    if(IsPlayerNPC(playerid)) //teste bot
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
        if(!strcmp(npcname, "bot_detrem", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        {
            PutPlayerInVehicle(playerid, trembot, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
            SetPlayerSkin(playerid, 61);
        }
        if(!strcmp(npcname, "bot_onibus", true))//ONIBUS BOT
        {
            PutPlayerInVehicle(playerid, NPCBus, 0);
            SetPlayerSkin(playerid, 61);
        }
        return 1;
    }
    if(sincronizando[playerid] == 1)
    {
        return 1;
    }
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
        gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0)
    {
        MSGPLAYER(playerid, COLOR_LIGHTRED, "(AdmCmd): Vocк foi kickado por Deus, Motivo: Spawn sem login");
        MSGPLAYER(playerid, COLOR_LIGHTRED,"Deus te kickou do servidor, e nгo o contrarie novamente");
        Kick(playerid);
        return 1;
    }
    CheckInfoOrg(playerid);
    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLider] < 1)
    {
        MedicBill[playerid] = 0;
        MSGPLAYER(playerid, COLOR_LIGHTRED, "Vocк nгo foi aprovado pelo lнder, agora й um Civil !");
        PlayerInfo[playerid][pTeam] = 3;
        gTeam[playerid] = 3;
        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
        SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
        SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 5)
    {
        if(PlayerInfo[playerid][pMembro] < 1)
        {
            MedicBill[playerid] = 0;
            MSGPLAYER(playerid, COLOR_LIGHTRED, "Vocк nгo faz parte de uma familia, agora й um Civil !");
            PlayerInfo[playerid][pTeam] = 3;
            gTeam[playerid] = 3;
            if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
            SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
            SpawnPlayer(playerid);
        }
    }
    if(gTeam[playerid] == 10)
    {
        if(PlayerInfo[playerid][pMembro] != 8 && PlayerInfo[playerid][pMembro] != 26)
        {
            MedicBill[playerid] = 0;
            MSGPLAYER(playerid, COLOR_LIGHTRED, "Vocк nгo faz parte de uma agencia, й um Civil !");
            PlayerInfo[playerid][pTeam] = 3;
            gTeam[playerid] = 3;
            if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
            SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
            SpawnPlayer(playerid);
        }
    }
    if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMembro] != 16 && PlayerInfo[playerid][pMembro] != 1 && PlayerInfo[playerid][pMembro] != 2 && PlayerInfo[playerid][pMembro] != 3 && PlayerInfo[playerid][pMembro] != 11)//convidar bug
    {
        MedicBill[playerid] = 0;
        MSGPLAYER(playerid, COLOR_LIGHTRED, "Vocк nгo й mais um oficial, й um Civil !");
        PlayerInfo[playerid][pTeam] = 3;
        gTeam[playerid] = 3;
        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; } else { PlayerInfo[playerid][pSkin] = 12; }
        SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
        SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 3)
    {
        if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
        {
            MedicBill[playerid] = 0;
            if(PlayerInfo[playerid][pMembro] == 1) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
            else if(PlayerInfo[playerid][pMembro] == 2) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
            else if(PlayerInfo[playerid][pMembro] == 3) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
            else if(PlayerInfo[playerid][pMembro] == 16) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
            else if(PlayerInfo[playerid][pMembro] == 26) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
            else if(PlayerInfo[playerid][pMembro] == 4) { SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
            else if(PlayerInfo[playerid][pMembro] == 5) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
            else if(PlayerInfo[playerid][pMembro] == 6) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
            else if(PlayerInfo[playerid][pMembro] == 8) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
            else if(PlayerInfo[playerid][pMembro] == 9) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
            else if(PlayerInfo[playerid][pMembro] == 10) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
            else if(PlayerInfo[playerid][pMembro] == 11) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
            else if(PlayerInfo[playerid][pMembro] == 12) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 22; }
            else if(PlayerInfo[playerid][pMembro] == 22) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 23; }
            else if(PlayerInfo[playerid][pMembro] == 23) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 24; }
            else if(PlayerInfo[playerid][pMembro] == 13) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 20; }
            else if(PlayerInfo[playerid][pMembro] == 14) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 15; }
            else if(PlayerInfo[playerid][pMembro] == 15) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 16; }
            else if(PlayerInfo[playerid][pMembro] == 17) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 18; }
            else if(PlayerInfo[playerid][pMembro] == 18) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pMembro] == 19) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pMembro] == 20) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pMembro] == 21) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pMembro] == 25) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 15; }
            else if(PlayerInfo[playerid][pMembro] == 27) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 15; }
            else if(PlayerInfo[playerid][pLider] == 1) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 26) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 2) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 3) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 4) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 5) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 6) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 7) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 8) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 9) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 10) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 11) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 12) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 22; }
            else if(PlayerInfo[playerid][pLider] == 22) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 23; }
            else if(PlayerInfo[playerid][pLider] == 23) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 24; }
            else if(PlayerInfo[playerid][pLider] == 13) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 20; }
            else if(PlayerInfo[playerid][pLider] == 14) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
            else if(PlayerInfo[playerid][pLider] == 15) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 16; }
            else if(PlayerInfo[playerid][pLider] == 16) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            else if(PlayerInfo[playerid][pLider] == 17) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 18; }
            else if(PlayerInfo[playerid][pLider] == 18) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pLider] == 19) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pLider] == 20) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pLider] == 21) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
            else if(PlayerInfo[playerid][pLider] == 25) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
            else if(PlayerInfo[playerid][pLider] == 27) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
            SpawnPlayer(playerid);
        }
    }
    if(PlayerInfo[playerid][pSkin] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
    else
    {
        if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 26; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
        else { PlayerInfo[playerid][pSkin] = 12; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
    }
    SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);
    RecentlyShot[playerid] = 0;
    return 1;
}
pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
    {
        SetPlayerColor(playerid, COR_ADMIN);
    }
    else if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
    else if(PlayerInfo[playerid][pHelperTrabalhando] == 1)//helpers
    {
       SetPlayerColor(playerid, 0x00FFFFAA);
    }
    else if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM
    {
       SetPlayerColor(playerid, COR_PM);
    }
    else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//BOPE
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, COR_EXE);
    }
    else if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//S.A.M.U
    {
       SetPlayerColor(playerid, COR_SAMU);
    }
    else if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Taliban
    {
       SetPlayerColor(playerid, COR_TAL);
    }
    else if (PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)//Governo
    {
       SetPlayerColor(playerid, COR_PRE);
    }
    else if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)//Hitmans
    {
       SetPlayerColor(playerid, COR_HITMAN);
    }
    else if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9)//Reporter
    {
       SetPlayerColor(playerid, COR_REP);
    }
    else if (PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)//Taxistas
    {
       SetPlayerColor(playerid, COR_TAXI);
    }
    else if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)//PF
    {
       SetPlayerColor(playerid, COR_PF);
    }
    else if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)//Mбfia Cosa Nostra
    {
       SetPlayerColor(playerid, COR_COSA);
    }
    else if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)//Mбfia Yakuza
    {
       SetPlayerColor(playerid, COR_YAK);
    }
    else if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)//Grove
    {
       SetPlayerColor(playerid, COR_GRO);
    }
    else if (PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Al-Qaeda
    {
       SetPlayerColor(playerid, COR_GI);
    }
    else if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)//Policia Civil
    {
       SetPlayerColor(playerid, COR_PC);
    }
    else if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)//BALLAS
    {
       SetPlayerColor(playerid, COR_BALLAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)//vagos
    {
       SetPlayerColor(playerid, COR_VAGOS);
    }
    else if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//CV
    {
       SetPlayerColor(playerid, COR_CV);
    }
    else if (PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)//PCC
    {
       SetPlayerColor(playerid, COR_PCC);
    }
    else if (PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)//Os Pobre Loko
    {
       SetPlayerColor(playerid, COR_OPL);
    }
    else if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)//Sons
    {
       SetPlayerColor(playerid, COR_SONS);
    }
    else if (PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//Minight
    {
       SetPlayerColor(playerid, COR_DRIFT);
    }
    else if (PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)//TCP
    {
       SetPlayerColor(playerid, COR_TCP);
    }
    else if (PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//blood
    {
       SetPlayerColor(playerid, COR_ADA);
    }
    else if (PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)//PR
    {
       SetPlayerColor(playerid, COR_EMPTA);
    }
    else if (PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)//Mayans
    {
       SetPlayerColor(playerid, COR_Mayans);
    }
    else //caso dк algum bug
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
}

Sempre que alguem de alguma org entra fica com a cor Cyan1, queria saber o que eu fasso pra ajeitar, pra as cores ficarem normais? Uso o GM do BAC ea versгo 0.3d!!! e as #define estгo normais no estilo 0xID DA COR EM HEX F6 ou AA


Limite de caracteres ai teve q colocar em 2!!!
Reply
#2

pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
    {
        SetPlayerColor(playerid, ****);//Troque os **** pela a cor desejada
    }
    else if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
    else if(PlayerInfo[playerid][pHelperTrabalhando] == 1)//helpers
    {
       SetPlayerColor(playerid, 0x00FFFFAA);
    }
    else if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM
    {
       SetPlayerColor(playerid, COR_PM);
    }
    else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//BOPE
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, COR_EXE);
    }
    else if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//S.A.M.U
    {
       SetPlayerColor(playerid, COR_SAMU);
    }
    else if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
Troque os **** pela cor desejada
Reply
#3

Quote:
Originally Posted by Mata_Noob
Посмотреть сообщение
pesquise todos `Cyan1` do seu gm e troque-os pela cor que voce quer... mano, se voce quiser posso ser scripter / mapper do seu servidor se me arranjar um adm (: conserto tudo no gm, e outra, seu servidor `e rpg ou rp??
Da cor HEXADECIMAL do cyan, apenas existe nos Helpers e Cosa Nostra. Nгo adiantaria tirar.

Quote:
Originally Posted by LiiinK
Посмотреть сообщение
pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
    {
        SetPlayerColor(playerid, ****);//Troque os **** pela a cor desejada
    }
    else if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
    else if(PlayerInfo[playerid][pHelperTrabalhando] == 1)//helpers
    {
       SetPlayerColor(playerid, 0x00FFFFAA);
    }
    else if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM
    {
       SetPlayerColor(playerid, COR_PM);
    }
    else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//BOPE
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, COR_EXE);
    }
    else if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//S.A.M.U
    {
       SetPlayerColor(playerid, COR_SAMU);
    }
    else if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
    {
       SetPlayerColor(playerid, COR_AZTECAS);
    }
Troque os **** pela cor desejada
A cor esta certo manin, os cуdigos COR_AZTECAS se eu nгo me engane sгo defines que eu coloquei no servidor.
Vou mostrar akew
pawn Код:
#define COR_Mayans 0x363636AA
#define COR_PMLV 0xFF6347AA
#define COR_ADA 0x90EE90AA
#define COR_TCP 0x16C970AA
//#define COR_TCP 0x004A88AA
#define COR_PM 0x9999FFF6
#define COR_PR 0x666699F6
#define COR_EXE 0x00660CF6
#define COR_SAMU 0xCC6666F6
#define COR_AZTECAS 0x1e3effF6
#define COR_TAL 0x696969AA
#define COR_PRE 0x6699FFF6
#define COR_HITMAN 0xA9A9A9F6
#define COR_REP 0xFFC1C1F6
#define COR_NOIX 0x00FF78F6
#define COR_NOIXX 0xBDFFD4F6
#define COR_TAXI 0x66FFFFF6
#define COR_PF 0x999966F6
#define COR_COSA 0x12FFEFAA
#define COR_YAK 0x6F187DC8
#define COLOR_ORANGE 0xFF9900AA
#define COR_MS 0xBF80FFAA
#define COR_MR 0x8B0000AA
#define COR_GRO 0x33FF00F6
#define COR_EMPTA 0xFFD700F6
#define COR_GI 0x877450AA
#define COR_CV 0xCD0000
#define COR_PCC 0xC0FF3E
#define COR_OPL 0x54FF9F
#define COR_SONS 0x8B0000
#define COR_DRIFT 0x008B8B
#define tutorial 9999
#define MENUCOP 40028
//#define COR_PC 0x93833EF6
#define LARANJA 0xFF6600AA
#define COR_PC 0x996666AA
#define COR_BALLAS 0x6633ccAA
#define COR_VAGOS 0xFFFF33F6
#define COR_NASCIMENTO 0xFF0000F6
//#define COR_ADMIN 0xFF68FFAA
#define COR_ADMIN 0xFF35F3F6
Reply
#4

Me disseram pra eu colocar um
SetTimer("SetPlayerColor", 0, false)
no onplayerspawn ou foi no onplayerconect, nгo to lembrado!
Mais onde?

Antes, dpois, nofim
Reply
#5

Nгo precisa de SetTimer, apenas coloque SetPlayerColor(playerid, Cor); no OnPlayerSpawn


Obs: nгo esqueзa de colocar cada Set.. pra cada spawn de cada org


@Edit

Sobre o Admin й so colocar o SetPlayerColor no comando que ele entra em serviзo
Reply
#6

Quote:
Originally Posted by kasumo
Посмотреть сообщение
Me disseram pra eu colocar um
SetTimer("SetPlayerColor", 0, false)
no onplayerspawn ou foi no onplayerconect, nгo to lembrado!
Mais onde?

Antes, dpois, nofim
Й a mesma coisa de chamar a funзгo.

pawn Код:
SetPlayerToTeamColor(playerid);
OnPlayerSpawn...
Reply
#7

Quote:
Originally Posted by Mata_Noob
Посмотреть сообщение
sim, sim, esta desta forma mas ha algum conflito... e a public esta criada com as cores mas nao ha nada executando-a... entendeste?

Entгo no caso pode haver um SetPlayerColor em outro local com a cor que ele disse que fica
Reply
#8

cara fiz tudo, mais tinha desbugado por 5 minutos e voltou tudin ao q era antes!!!
Reply
#9

Estou com o mesmo problema, Jб tentei todas as forma que falaram a cima. Alguйm tem a soluзгo ?
Reply
#10

Consegui resolver. O problema vou postar a public SetPlayerToTeamColor do GM BAS que o carinha ae em cima usa, quem tiver com o mesmo problema й sу substituir a public por essa.
Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
	{
		SetPlayerColor(playerid, COR_ADMIN);
	}
	else if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM
	{
       SetPlayerColor(playerid, COR_PM);
	}
	else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//BOPE
	{
       SetPlayerColor(playerid, 0x000000FF);
	}
	else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
	{
       SetPlayerColor(playerid, COR_EXE);
	}
	else if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//S.A.M.U
	{
       SetPlayerColor(playerid, 0xFF0000FF);
	}
	else if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
	{
       SetPlayerColor(playerid, 0x2FAFF5F6);
	}
	else if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Taliban
	{
       SetPlayerColor(playerid, 0xFE005DFF);
	}
    else if (PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)//Governo
	{
       SetPlayerColor(playerid, 0x6699FFF6);
	}
	else if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)//Hitmans
	{
       SetPlayerColor(playerid, 0xA9A9A9F6);
	}
	else if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9)//Reporter
	{
       SetPlayerColor(playerid, 0xFFC1C1F6);
    }
    else if (PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)//Taxistas
	{
       SetPlayerColor(playerid, 0xFFA405FF);
    }
	else if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)//PF
	{
       SetPlayerColor(playerid, 0x5F5B5DFF);
	}
	else if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)//Mбfia Cosa Nostra
	{
       SetPlayerColor(playerid, 0x00FFFFAA);
	}
	else if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)//Mбfia Yakuza
	{
       SetPlayerColor(playerid, 0x660066F6);
	}
	else if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)//Grove
	{
       SetPlayerColor(playerid, 0x33FF00F6);
	}
	else if (PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Guerrilheiros Israelita
	{
       SetPlayerColor(playerid, 0x33CCFFAA);
	}
	else if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)//Policia Civil
	{
       SetPlayerColor(playerid, 0x93833EF6);
	}
	else if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)//BALLAS
	{
       SetPlayerColor(playerid, 0x9900CCF6);
	}
	else if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)//vagos
	{
       SetPlayerColor(playerid, 0xFFFF33F6);
	}
	else if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//CV
	{
       SetPlayerColor(playerid, 0xF6000000);
	}
	else if (PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)//PCC
	{
       SetPlayerColor(playerid, 0xCCFF99FF);
	}
	else if (PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)//Os Pobre Loko
	{
       SetPlayerColor(playerid, 0x98F5FFAA);
	}
	else if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)//Sons
	{
       SetPlayerColor(playerid, 0x8B0000AA);
	}
	else if (PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//Minight
	{
       SetPlayerColor(playerid, 0xBF80FFAA);
	}
	else if (PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)//TCP
	{
       SetPlayerColor(playerid, 0x8B4513FF);
	}
	else if (PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//blood
	{
       SetPlayerColor(playerid, 0x00D8F0AA);
	}
	else if (PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)//PR
	{
       SetPlayerColor(playerid, 0xFF6347AA);
	}
	else if (PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)//G-Unit
	{
       SetPlayerColor(playerid, 0x363636AA);
	}
	else //caso dк algum bug
	{
       SetPlayerColor(playerid, 0xFFFFFFFF);
	}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)