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
#2

You Can Put this in your OnGameModeInit()
pawn Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Source https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Reply
#3

Instead of FF at the end use 00 and it will make them invisible...

E.g. Cops_Color 0x1680E9FF => 0x1680E900



Or is this something else?

Quote:
Originally Posted by mahdi499
Посмотреть сообщение
You Can Put this in your OnGameModeInit()
pawn Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Source https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Chances are he'll want to show some player markers, just not the ones he's trying to assign in the start.
Reply
#4

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Instead of FF at the end use 00 and it will make them invisible...

E.g. Cops_Color 0x1680E9FF => 0x1680E900



Or is this something else?
Your way is correct if he wants to hide it for the plays he set color to and keep other player markers on the map, my method hides it for all players. 0 player markers on the map


EDIT : I guess we posted at the same time, so yes you're correct.
Reply
#5

Thanks so much guys !.
Reply
#6

Quote:
Originally Posted by mahdi499
Посмотреть сообщение
Your way is correct if he wants to hide it for the plays he set color to and keep other player markers on the map, my method hides it for all players. 0 player markers on the map
Exactly, which really, most servers want to have the markers turn up, especially when they have hitmen who need to track a hit.

Also, with this it allows for making you able to fade in markers so you can make them for a proximity, not the entire map visible.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)