PDA

View Full Version : Help with teamblips


NeamPojma
27/06/2015, 11:29 AM
Hello guys i asked about team blips before but i have problem again.
It should make enemies invisible and it work.
I cant make Teammates will see eachother on map all is invisible ,also i want Team1 cant see Team2 name tag but my command dont work:
for(new i = 0;i < MAX_PLAYERS;i++)
{
if(gTeam[playerid] == TEAM_RUS && gTeam[i] == TEAM_USA)
{
SetPlayerColor(playerid, 0xFF000000);
SetPlayerColor(i, 0x0000FF00);
ShowPlayerNameTagForPlayer(playerid,i,0);
}
if(gTeam[playerid] == TEAM_USA && gTeam[i] == TEAM_RUS)
{
SetPlayerColor(playerid, 0x0000FF00);
SetPlayerColor(i, 0xFF000000);
ShowPlayerNameTagForPlayer(playerid,i,0);
}
if(gTeam[playerid] == TEAM_USA && gTeam[i] == TEAM_USA)
{
//SetPlayerColor(playerid, 0x0000FF00);
//SetPlayerColor(i, 0x0000FF00);
SetPlayerMarkerForPlayer(playerid,i,0x0000FFFF);
}
if(gTeam[playerid] == TEAM_RUS && gTeam[i] == TEAM_RUS)
{
//SetPlayerColor(playerid, 0xFF000000);
//SetPlayerColor(i, 0xFF000000);
SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);
}
}

NeamPojma
27/06/2015, 06:28 PM
Bump