23.05.2009, 22:21
Hello. I set my faction's to a certant color, and for some reason they are showing up on the map for everyone to see. I cannot seem to figure out why its doing that. Please Help
. I dont wana remove markers for players, i just wana remove team color markers.
If this helps, this is the code i use
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
if(PlayerInfo[playerid][pMember] == 1 ) { SetPlayerColor(playerid, COLOR_LIGHTBLUE); }
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) { SetPlayerColor(playerid, COLOR_VENOMOUS); }
}
}
![Smiley](images/smilies/smile.png)
If this helps, this is the code i use
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
if(PlayerInfo[playerid][pMember] == 1 ) { SetPlayerColor(playerid, COLOR_LIGHTBLUE); }
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) { SetPlayerColor(playerid, COLOR_VENOMOUS); }
}
}