but if a player/team kill we see the name in white. I would want that the player/team have the team colour shown when they kills/die while they are invisible.foreach(new i : Player) SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFFFF));
for(new i=0; i<MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFFFF));
foreach(new i : Player)
{
if(GetPlayerTeam(i) != GetPlayerTeam(playerid)) // If they are not on the same team
{
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFFFF));
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == Zone[ zone ][ZoneOwner])
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
if(IsPlayerConnected(a))
{
SetPlayerMarkerForPlayer(a, i, GetPlayerColor(i));
}
}
}
if(gTeam[i] == attacker)
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
if(IsPlayerConnected(a))
{
SetPlayerMarkerForPlayer(a, i, GetPlayerColor(i));
}
}
}
}
}
|
Actually I'm having doubts about that. SetPlayerMarkerForPlayer just changes the radar blip, right? So why not just set it to 0xFFFFFF00? It'll be transparent right? SetPlayerColor isn't used so their color should still be the same right? I've said right too many times in this post, right?
I'll test it tomorrow. |
if(strcmp(cmd, "/test", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == Zone[ zone ][ZoneOwner])
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
if(IsPlayerConnected(a))
{
SetPlayerMarkerForPlayer(a, i, (GetPlayerColor(i) & 0xFFFFFF00));
}
}
}
if(gTeam[i] == attacker)
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
if(IsPlayerConnected(a))
{
SetPlayerMarkerForPlayer(a, i, (GetPlayerColor(i) & 0xFFFFFF00));
}
}
}
}
}
}