09.03.2013, 08:00
hello guys.. i make hide player marker for team.. the function is : "Hide player marker team for another team"
the script :
whats wrong ?
the script :
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) || i == playerid ) continue;
if( GetPlayerTeam( playerid ) != GetPlayerTeam( i ) )
{
SetPlayerMarkerForPlayer( playerid, i, 0xFFFFFF00 );
SetPlayerMarkerForPlayer( i, playerid, 0xFFFFFF00 );
// Hide the player's marker from someone on the other team, and vice-versa
}
}