Problem with SetPlayerToTeamColor
#1

Hello

How can I not see the player colors on the mini-map?



pawn Код:
#define             TEAM_HIT_COLOR              0xFFFFFF00//Culors
#define             TEAM_COPS_COLOR             0x1680E9FF
#define             TEAM_SAMD_COLOR             0xFF5E5EFF
#define             TEAM_NR_COLOR               0xAEA0FAFF
#define             TEAM_MECHANICS_COLOR        0xBB9D8AFF
#define             TEAM_MAYOR_COLOR            0xABC069FF
#define             TEAM_HITMAN_COLOR           0xBE0505FF
#define             TEAM_BANKER_COLOR           0xFA9805FF
#define             TEAM_MAFIA1_COLOR           0x1EB009FF
#define             TEAM_MAFIA2_COLOR           0xBE10BAFF
#define             TEAM_SI_COLOR               0xFA9805FF// Culors

public SetPlayerToTeamColor(playerid)
{
    if(IsPlayerConnectedEx(playerid))
    {
        if(Info[playerid][pMember] == 1 || Info[playerid][pLeader] == 1)
        {
            SetPlayerColor(playerid,TEAM_COPS_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 2 || Info[playerid][pLeader] == 2)
        {
            SetPlayerColor(playerid,TEAM_COPS_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 3 || Info[playerid][pLeader] == 3)
        {
            SetPlayerColor(playerid,TEAM_COPS_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 4 || Info[playerid][pLeader] == 4)
        {
            SetPlayerColor(playerid,TEAM_SAMD_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 5 || Info[playerid][pLeader] == 5)
        {
            SetPlayerColor(playerid,TEAM_NR_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 6 || Info[playerid][pLeader] == 6)
        {
            SetPlayerColor(playerid,TEAM_MECHANICS_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 7 || Info[playerid][pLeader] == 7)
        {
            SetPlayerColor(playerid,TEAM_MAYOR_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 8 || Info[playerid][pLeader] == 8)
        {
            SetPlayerColor(playerid,TEAM_HITMAN_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 9 || Info[playerid][pLeader] == 9)
        {
            SetPlayerColor(playerid,TEAM_BANKER_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 10 || Info[playerid][pLeader] == 10)
        {
            SetPlayerColor(playerid,TEAM_MAFIA1_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 11 || Info[playerid][pLeader] == 11)
        {
            SetPlayerColor(playerid,TEAM_MAFIA2_COLOR);
            return 1;
        }
        if(Info[playerid][pMember] == 12 || Info[playerid][pLeader] == 12)
        {
            SetPlayerColor(playerid,TEAM_SI_COLOR);
            return 1;
        }
    return 1;
}
Reply


Messages In This Thread
Problem with SetPlayerToTeamColor - by Johnny_Ionut - 11.01.2015, 10:53
Re: Problem with SetPlayerToTeamColor - by mahdi499 - 11.01.2015, 11:13
Re: Problem with SetPlayerToTeamColor - by Sew_Sumi - 11.01.2015, 11:14
Re: Problem with SetPlayerToTeamColor - by mahdi499 - 11.01.2015, 11:16
Re: Problem with SetPlayerToTeamColor - by Johnny_Ionut - 11.01.2015, 11:17
Re: Problem with SetPlayerToTeamColor - by Sew_Sumi - 11.01.2015, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)