14.11.2012, 01:34
pawn Код:
public ShowTeamMarkers1(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(gTeam[playerid] == gTeam[i])
{
SetPlayerMarkerForPlayer(playerid, i, 0xFF0000FF );
}
}
}
}
public ShowTeamMarkers2(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (gTeam[playerid] != gTeam[i])
{
SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) );
}
}
}
}
PS. I understood in the first time just the first time im looking at the thread
