die farben und alles gehen sehr gut, nur werden nun die einzelnen spieler mit farben auch auf der Map angezeigt. "siehe Bild"
nun meine Bitte: weiß einer wie ich das herausbekomme aus meinem script?
forward SetPlayerToTeamColor(playerid);
public SetPlayerToTeamColor(playerid)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerColor(playerid, 0x0000CDB2);//LSPD hell-Blau
}
else if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerColor(playerid, 0x00003FFF);//FBI dunkel-Blau
}
else if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerColor(playerid, 0x006800FF);//National-Guard dunkelgrün
}
else if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerColor(playerid, 0xFF3300FF);//Medic orange-rot
}
else if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
SetPlayerColor(playerid, 0x000000FF);//Bürgermeister schwarz
}
else if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerColor(playerid, 0xFF6200FF);//News orange
}
else if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
SetPlayerColor(playerid, 0xFFFF00FF);//Taxi-Company gelb
}
return 1;
}