SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 27/12/2011, 01:41 PM   #1
kasumo
Little Clucker
 
Join Date: Nov 2011
Posts: 25
Reputation: 0
Default

pawn Code:
forward SetPlayerToTeamColor(playerid);
pawn Code:
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 Code:
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!!!

Last edited by LuxurioN™; 27/12/2011 at 01:54 PM. Reason: 2 postagens para a mesma dúvida.
kasumo is offline   Reply With Quote
Old 27/12/2011, 02:24 PM   #2
LiiinK
Little Clucker
 
Join Date: Dec 2011
Posts: 1
Reputation: 0
Default Re: [AJUDA] Cores das orgs

pawn Code:
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
LiiinK is offline   Reply With Quote
Old 27/12/2011, 03:06 PM   #3
kasumo
Little Clucker
 
Join Date: Nov 2011
Posts: 25
Reputation: 0
Default Re: [AJUDA] Cores das orgs

Quote:
Originally Posted by Mata_Noob View Post
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 View Post
pawn Code:
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 Code:
#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
kasumo is offline   Reply With Quote
Old 27/12/2011, 04:15 PM   #4
kasumo
Little Clucker
 
Join Date: Nov 2011
Posts: 25
Reputation: 0
Default Re: [AJUDA] Cores das orgs

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
kasumo is offline   Reply With Quote
Old 27/12/2011, 04:20 PM   #5
!Niiw
Big Clucker
 
!Niiw's Avatar
 
Join Date: Sep 2011
Location: Fortaleza
Posts: 60
Reputation: 9
Default Re: [AJUDA] Cores das orgs

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
__________________
!Niiw is offline   Reply With Quote
Old 27/12/2011, 04:20 PM   #6
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 4,371
Reputation: 513
Default Re: [AJUDA] Cores das orgs

Quote:
Originally Posted by kasumo View Post
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 Code:
SetPlayerToTeamColor(playerid);

OnPlayerSpawn...
Lós is offline   Reply With Quote
Old 27/12/2011, 07:12 PM   #7
!Niiw
Big Clucker
 
!Niiw's Avatar
 
Join Date: Sep 2011
Location: Fortaleza
Posts: 60
Reputation: 9
Default Re: [AJUDA] Cores das orgs

Quote:
Originally Posted by Mata_Noob View Post
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
__________________
!Niiw is offline   Reply With Quote
Old 28/12/2011, 03:12 PM   #8
kasumo
Little Clucker
 
Join Date: Nov 2011
Posts: 25
Reputation: 0
Default Re: [AJUDA] Cores das orgs

cara fiz tudo, mais tinha desbugado por 5 minutos e voltou tudin ao q era antes!!!
kasumo is offline   Reply With Quote
Old 03/06/2012, 12:21 AM   #9
RedBulL_x
Huge Clucker
 
RedBulL_x's Avatar
 
Join Date: Jun 2011
Posts: 217
Reputation: 5
Default Respuesta: [AJUDA] Cores das orgs

Estou com o mesmo problema, Já tentei todas as forma que falaram a cima. Alguém tem a solução ?
__________________


Iniciante em PAWN!
RedBulL_x is offline   Reply With Quote
Old 03/06/2012, 12:43 AM   #10
RedBulL_x
Huge Clucker
 
RedBulL_x's Avatar
 
Join Date: Jun 2011
Posts: 217
Reputation: 5
Default Respuesta: [AJUDA] Cores das orgs

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.
Code:
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);
	}
}
__________________


Iniciante em PAWN!
RedBulL_x is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda]Orgs Geo1996 Português/Portuguese 3 15/12/2011 07:27 PM
[Ajuda] Preciso de ajuda pra criar um xat interno entra as orgs Lucas_Killers Português/Portuguese 10 15/12/2011 03:36 AM
[ajuda] orgs kshorro Português/Portuguese 3 16/10/2011 07:00 PM
[AJUDA] ORGS SERGINHO_LOPES Português/Portuguese 7 03/08/2011 10:48 PM


All times are GMT. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.