public SetPlayerColor(playerid)
{
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Zivi
{
SetPlayerColor(playerid,COLOR_WHITE);
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
{
SetPlayerColor(playerid,NB);
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //SF Police spawn
{
SetPlayerColor(playerid,NB);
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Army spawn
{
SetPlayerColor(playerid,COLOR_GREEN);
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Sanitäter spawn
{
SetPlayerColor(playerid,COLOR_RED);
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
{
SetPlayerColor(playerid,COLOR_ORANGE);
}
if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)//Yakuza spawn
{
SetPlayerColor(playerid,COLOR_PURPLE);
}
if(PlayerInfo[playerid][pLeader] == 7)//Präsident spawn
{
SetPlayerColor(playerid,COLOR_BLACK);
}
if(PlayerInfo[playerid][pMember] == 7)//Bodyguard spawn
{
SetPlayerColor(playerid,COLOR_BLACK);
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
{
SetPlayerColor(playerid,COLOR_DARKRED);
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
{
SetPlayerColor(playerid,COLOR_LIME);
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
{
SetPlayerColor(playerid,COLOR_YELLOW);
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //LS.Bikers Spawn
{
SetPlayerColor(playerid,COLOR_GREY);
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
{
SetPlayerColor(playerid,COLOR_LIGHTGREEN);
}
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //BALLAS GANG
{
SetPlayerColor(playerid,COLOR_PURPLE);
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Fast and Furious
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos Vagos
{
SetPlayerColor(playerid,COLOR_YELLOW);
}
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Aztecas
{
SetPlayerColor(playerid,COLOR_YELLOW);
}
if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //San Fierro Rifa
{
SetPlayerColor(playerid,COLOR_GREENYELLOW);
}
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //W C Customs
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
}
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
{
SetPlayerColor(playerid,COLOR_YELLOW);
}
if (PlayerInfo[playerid][pMember] == 21) //FBI Agenten spawn
{
SetPlayerColor(playerid,STEALTH_BLUE);
}
if (PlayerInfo[playerid][pLeader] == 21) //FBI Leader spawn
{
SetPlayerColor(playerid,STEALTH_BLUE);
}
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //Feuerwehr spawn
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
}
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Russenmafia spawn
{
SetPlayerColor(playerid,COLOR_GREY);
}
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Oamt spawn
{
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
}
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25) //S.W.A.T. spawn
{
SetPlayerColor(playerid,NB);
}
}
Wenn der Spieler Spawnt setzt du das
SetPlayerColor(playerid);