08.08.2011, 22:26
Quote:
If you're using the second code I posted (keeping the chat color of the player the same), then make sure you have previously used SetPlayerColor.
|
pawn Код:
public OnPlayerSpawn( playerid )
{
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) || i == playerid ) continue;
if( GetPlayerTeam( playerid ) != GetPlayerTeam( i ) )
{
ShowPlayerMarkerForPlayer( playerid, i, 0xFFFFFF00 );
ShowPlayerMarkerForPlayer( i, playerid, 0xFFFFFF00 );
// Hide the player's marker from someone on the other team, and vice-versa
}
}
return 1;
}
pawn Код:
if(Member[playerid] == 0)
{
SetPlayerPos(playerid, 414.6559,2531.7651,19.1601);
SetPlayerTeam(playerid, 0);
SetPlayerColor(playerid, COLOR_RED);