SetPlayerColor
Function SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_LSCOP); // Copfarbe
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_FBI); // Copfarbe
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_ARMY); // Armyfarbe
}
else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_ARZT); // ARZT
}
else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_LCN); // LCN
}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_YAKUZA); // YAKUZA
}
else if(PlayerInfo[playerid][pLeader] == 7)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_PReSI); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 7)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_PReSISCHUTZ); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_HITMAN); // HITMAN
}
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_CNN); // CNN
}
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_TAXI); // TAXI
}
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_FL); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_TRIADEN); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_Grove); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_BALLAS); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_BIKER); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_VAGOS); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_AZEN); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_Osmanen); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 19)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_BloodZ); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_TERROR); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 21)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_WHELL); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_FEUER); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
//SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
SetPlayerColor(playerid,NAMECOLOR_LCN2); // PRÄSI
}
else if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerColor(playerid,0xFF740000); // OAMT Farbe
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
}
}
}
das ?