#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;
}
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
You Can Put this in your OnGameModeInit()
pawn Код:
|
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
|