Help! With Team Color! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help! With Team Color! (
/showthread.php?tid=78897)
Help! With Team Color! -
tona - 23.05.2009
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); }
}
}
Re: Help! With Team Color! -
Donny_k - 24.05.2009
You can't stop a player having a colour, you can only remove the marker on the map (AFAIK).