27.12.2011, 14:24
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);
}