Teams on radar
#13

Quote:
Originally Posted by Grim_
Посмотреть сообщение
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.
Ill use this
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;
}
and i sett the team colors like this
pawn Код:
if(Member[playerid] == 0)
    {
        SetPlayerPos(playerid, 414.6559,2531.7651,19.1601);
        SetPlayerTeam(playerid, 0);
        SetPlayerColor(playerid, COLOR_RED);
it seams the blips are invisible untill youi get near the player, then it shown up on radar
Reply


Messages In This Thread
Teams on radar - by cruising - 03.08.2011, 14:40
Re: Teams on radar - by Virtual1ty - 03.08.2011, 14:53
Re: Teams on radar - by Patrik356b - 03.08.2011, 14:58
Re: Teams on radar - by cruising - 03.08.2011, 16:10
Re: Teams on radar - by cruising - 05.08.2011, 13:23
Re: Teams on radar - by =WoR=Varth - 06.08.2011, 01:46
Re: Teams on radar - by cruising - 08.08.2011, 21:36
Re: Teams on radar - by Grim_ - 08.08.2011, 21:59
Re: Teams on radar - by cruising - 08.08.2011, 22:10
Re: Teams on radar - by Grim_ - 08.08.2011, 22:11
Re: Teams on radar - by cruising - 08.08.2011, 22:19
Re: Teams on radar - by Grim_ - 08.08.2011, 22:21
Re: Teams on radar - by cruising - 08.08.2011, 22:26

Forum Jump:


Users browsing this thread: 2 Guest(s)