[Ajuda] Ajuda Cor Org
#1

Porque nгo fica as cores das Orgs nos players ??

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, 0x9999FFF6);
    }
    else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//ROTA
    {
       SetPlayerColor(playerid, 0x000000FF);
    }
    else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, 0x00660CF6);
    }
    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
#2

Troque else if por somente if

E tire a ultima else if de bug


E no OnPlayerConnect coloque

pawn Код:
SetPlayerToTeamColor(playerid);

Se n der posta aq
Reply
#3

Ainda Nгo esta funcionando a unica org que funfo foi a 27

coloquei o cуdigo
pawn Код:
SetPlayerToTeamColor(playerid);
no on player connect e deixei o outro assim e nгo funciono

pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
    {
        SetPlayerColor(playerid, COR_ADMIN);
    }
    if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
    if(PlayerInfo[playerid][pHelperTrabalhando] == 1)//helpers
    {
       SetPlayerColor(playerid, 0x00FFFFAA);
    }
    if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//PM
    {
       SetPlayerColor(playerid, COR_PM);
    }
    if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//ROTA
    {
       SetPlayerColor(playerid, 0x000000FF);
    }
    if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, 0x00660CF6);
    }
    if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//S.A.M.U
    {
       SetPlayerColor(playerid, 0xFF0000FF);
    }
    if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
    {
       SetPlayerColor(playerid, 0x2FAFF5F6);
    }
    if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Taliban
    {
       SetPlayerColor(playerid, 0xFE005DFF);
    }
    if (PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)//Governo
    {
       SetPlayerColor(playerid, 0x6699FFF6);
    }
    if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)//Hitmans
    {
       SetPlayerColor(playerid, 0xA9A9A9F6);
    }
    if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9)//Reporter
    {
       SetPlayerColor(playerid, 0xFFC1C1F6);
    }
    if (PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)//Taxistas
    {
       SetPlayerColor(playerid, 0xFFA405FF);
    }
    if (PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)//PF
    {
       SetPlayerColor(playerid, 0x5F5B5DFF);
    }
    if (PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)//Mбfia Cosa Nostra
    {
       SetPlayerColor(playerid, 0x00FFFFAA);
    }
    if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)//Mбfia Yakuza
    {
       SetPlayerColor(playerid, 0x660066F6);
    }
    if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)//Grove
    {
       SetPlayerColor(playerid, 0x33FF00F6);
    }
    if (PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Guerrilheiros Israelita
    {
       SetPlayerColor(playerid, 0x33CCFFAA);
    }
    if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)//Policia Civil
    {
       SetPlayerColor(playerid, 0x93833EF6);
    }
    if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)//BALLAS
    {
       SetPlayerColor(playerid, 0x9900CCF6);
    }
    if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)//vagos
    {
       SetPlayerColor(playerid, 0xFFFF33F6);
    }
    if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//CV
    {
       SetPlayerColor(playerid, 0xF6000000);
    }
    if (PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)//PCC
    {
       SetPlayerColor(playerid, 0xCCFF99FF);
    }
    if (PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)//Os Pobre Loko
    {
       SetPlayerColor(playerid, 0x98F5FFAA);
    }
    if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)//Sons
    {
       SetPlayerColor(playerid, 0x8B0000AA);
    }
    if (PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//Minight
    {
       SetPlayerColor(playerid, 0xBF80FFAA);
    }
    if (PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)//TCP
    {
       SetPlayerColor(playerid, 0x8B4513FF);
    }
    if (PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//blood
    {
       SetPlayerColor(playerid, 0x00D8F0AA);
    }
    if (PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)//PR
    {
       SetPlayerColor(playerid, 0xFF6347AA);
    }
    if (PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)//G-Unit
    {
       SetPlayerColor(playerid, 0x363636AA);
    }
    else //caso dк algum bug
    {
       SetPlayerColor(playerid, 0xFFFFFFFF);
    }
}
Reply
#4

Retire essa parte do se der bug , e coloque else if apartir do segundo if (nгo coloca no primeiro , apenas nos outros)
Reply
#5

Ainda nгo deu em nada todas as orgs ficam assim:


Uploaded with ImageShack.us
Uploaded with ImageShack.us
O cуdigo ficou Assim :
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, 0x9999FFF6);
    }
    else if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//ROTA
    {
       SetPlayerColor(playerid, 0x000000FF);
    }
    else if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
    {
       SetPlayerColor(playerid, 0x00660CF6);
    }
    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);
    }
}
Reply
#6

Alguйm me Ajuda PF
Reply
#7

Mano nгo funciono
Reply
#8

Nгo o cуdigo eu coloquei do jeito que vocк falou mas nгo foi
Reply
#9

Alguйm me Ajuda ??
Reply
#10

Ajusta as orgs para o seu gm , espero ter ajudado!
pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(admtrampando[playerid] == 1 && admhide[playerid] != 1)
    {
        SetPlayerColor(playerid, COR_ADMIN);
    }
    else if(helpertrampando[playerid] == 1 && helperhide[playerid] != 1)
    {
        SetPlayerColor(playerid, 0xF09C00AA);
    }
    else if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, COLOR_WHITE);
    }
    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)//ROTAM
    {
       SetPlayerColor(playerid, COR_ROTAM);
    }
    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)//Mйdicos
    {
       SetPlayerColor(playerid, 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)//Gi
    {
       SetPlayerColor(playerid, COR_GI);
    }
    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)//Grove
    {
       SetPlayerColor(playerid, COR_GRO);
    }
    else if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)//BALLAS
    {
       SetPlayerColor(playerid, COR_BALLAS);
    }
    else if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)//vagos
    {
       SetPlayerColor(playerid, COR_VAGOS);
    }
    else if (PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//ComandoVermelho
    {
       SetPlayerColor(playerid, COR_CV);
    }
    else if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)//Triads
    {
       SetPlayerColor(playerid, COR_TRIAD);
    }
    else if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)//MECA
    {
       SetPlayerColor(playerid, COR_MECANICOS);
    }
    else if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)//BOMBEIROS
    {
       SetPlayerColor(playerid, COR_BOMBEIROS);
    }
    else if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//FARC
    {
       SetPlayerColor(playerid, COR_FARC);
    }
    else //caso dк algum bug
    {
       SetPlayerColor(playerid, COLOR_WHITE);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)