Players Colors
#4

That should work.
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 ) );
    }
}
NOTE: You must set the color before using GetPlayerColor function.
Reply


Messages In This Thread
Players Colors - by yancarlos4500 - 02.09.2013, 03:05
Re: Players Colors - by Skribblez - 02.09.2013, 03:27
Re: Players Colors - by yancarlos4500 - 02.09.2013, 19:15
Re: Players Colors - by Konstantinos - 02.09.2013, 19:33
Re: Players Colors - by yancarlos4500 - 02.09.2013, 20:14
Re: Players Colors - by yancarlos4500 - 03.09.2013, 00:12
Re: Players Colors - by Konstantinos - 03.09.2013, 10:35

Forum Jump:


Users browsing this thread: 2 Guest(s)