02.09.2013, 19:33
That should work.
NOTE: You must set the color before using GetPlayerColor function.
pawn Код:
public OnPlayerStreamIn( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}
public OnPlayerStreamOut( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}