Hallo liebes Breadfish Forum,
Undzwar möchte ich Fraktions farben erstellen z.B. LSPD -> Blau oder Hitman -> Braun aber bei mir funktioniert das irgendwie nicht.
Ich besitzt zurzeit das Godfather World of SanAndreas (WOS) von K3VIN.
Ich habe das so versucht.
defindet hab ich sie auch mit den farben die ich gerne haben möchte.
//Fraktion Farben
#define COLOR_LSPD 0x009BFFFF
#define COLOR_FBI 0x0041FFFF
#define COLOR_ARMY 0x4AA76AFF
#define COLOR_MEDIC 0x9B0000FF
#define COLOR_LCN 0x00FF78FF
#define COLOR_YAKUZA 0xFF00A5FF
#define COLOR_BM 0x646464FF
#define COLOR_HITMAN 0x730000FF
#define COLOR_CNN 0x37FF00FF
#define COLOR_TAXI 0xF5FF00FF
#define COLOR_FAHRLEHRER 0x00FFA0FF
#define COLOR_CRIPTZ 0x505050FF
#define COLOR_GS 0x05FF00FF
#define COLOR_BALLAS 0xFF0055FF
#define COLOR_TRANSPORT 0x00AFFFFF
#define COLOR_VAGOS 0x9BFF00FF
#define COLOR_AZTECAS 0xAAAAAAFF
#define COLOR_RIFAS 0x646464FF
#define COLOR_GHOSTRIDER 0xFF3C00FF
#define COLOR_ALQAIDA 0x0A0A0AFF
#define COLOR_WHEELMAN 0xFF1400FF
#define COLOR_SAPD 0x0041FFFF
#define COLOR_Brigada 0x323232FF
#define COLOR_O-AMT 0xE1FF00FF
//<----------------Fraktions-Farben---------------->//
Function SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) //LSPD Farbe
{
SetPlayerColor(playerid,COLOR_LSPD);
}
else if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Zivi Farbe
{
SetPlayerColor(playerid,COLOR_WHITE);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerColor(playerid,COLOR_FBI);
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerColor(playerid,COLOR_ARMY);
}
else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerColor(playerid,COLOR_MEDIC);
}
else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerColor(playerid,COLOR_LCN);
}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerColor(playerid,COLOR_YAKUZA);
}
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
SetPlayerColor(playerid,COLOR_BM);
}
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
SetPlayerColor(playerid,COLOR_HITMAN);
}
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerColor(playerid,COLOR_CNN);
}
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
SetPlayerColor(playerid,COLOR_TAXI);
}
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerColor(playerid,COLOR_FAHRLEHRER);
}
else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerColor(playerid,COLOR_CRIPTZ);
}
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerColor(playerid,COLOR_GS);
}
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerColor(playerid,COLOR_BALLAS);
}
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
SetPlayerColor(playerid,COLOR_TRANSPORT);
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerColor(playerid,COLOR_VAGOS);
}
else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
SetPlayerColor(playerid,COLOR_AZTECAS);
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{
SetPlayerColor(playerid,COLOR_RIFAS);
}
else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerColor(playerid,COLOR_GHOSTRIDER);
}
else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerColor(playerid,COLOR_ALQAIDA);
}
else if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerColor(playerid,COLOR_SAPD);
}
else if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerColor(playerid,COLOR_Brigada);
}
else if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerColor(playerid,COLOR_O-AMT);
}
else
{
}
}
}
Aber das ist irgendwie komisch denn nur die LSPD Farbe funktioniert aber der rest nicht z.B Hitman, CNN, Army...
Ich würde mich sehr um eine hilfreichende Rückmeldung freuen.
Mit freundlichen Grüßen,
xChicagoBulls