public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
SetPlayerColor(playerid,0xFFFFFF00);
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
SetPlayerColor(playerid,0x2B60DE00);
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
SetPlayerColor(playerid,0x2B60DE00);
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
SetPlayerColor(playerid,0xCFECEC00);
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
SetPlayerColor(playerid,0x6AFB9200);
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
SetPlayerColor(playerid,0x736F6E00);
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
SetPlayerColor(playerid,0x6CC41700);
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
SetPlayerColor(playerid,0x842DCE00);
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] ==
SetPlayerColor(playerid,0xAF781700);
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
SetPlayerColor(playerid,0xC38EC700);
if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
SetPlayerColor(playerid,0x82625700);
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
SetPlayerColor(playerid,0x65833D00);
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
SetPlayerColor(playerid,0x4F59A600);
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
SetPlayerColor(playerid,0x98AFC700);
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
SetPlayerColor(playerid,0xAD9C5800);
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
SetPlayerColor(playerid,0xCD5E2E00);
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
SetPlayerColor(playerid,0xF600FF00);
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
SetPlayerColor(playerid,0x2B60DE00);
}
}
This guys , thx for your help i Rep all