Hallo,
Überschrift sagt alles:
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 21)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
SetPlayerColor(playerid,COLOR_WHITE);
}
}
Wiso sehe ich keine?
Will damit Bullen = Blau , Army = Grün usw.. bla bla .. :O
MFG
Er!k