[AJUDA]icone no mapa
#10

aparecer so 1 map icondas propiedades eu sei fazer com SetPlayerMapIcon mais como tem mais de 100 prosp as maps icons n aparece

tipo com dynamicmapicon fica piscando os maps icons

pawn Код:
public MapIconStreamer()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new Float:SmallestDistance = 99999.9;
            new CP,Float:OldDistance;
            for(new propid; propid<PropertiesAmount; propid++)
            {
                OldDistance = GetDistanceToProperty(i,propid);
                if(OldDistance < SmallestDistance)
                {
                    SmallestDistance = OldDistance;
                    CP = propid;
                }
            }
            RemovePlayerMapIcon(i,31);
            if(PropInfo[CP][PropIsBought]== 1)
            {
                SetPlayerMapIcon(i,31,PropInfo[CP][PropX],PropInfo[CP][PropY],PropInfo[CP][PropZ],32,0);
            }
            else
            {
                SetPlayerMapIcon(i,31,PropInfo[CP][PropX],PropInfo[CP][PropY],PropInfo[CP][PropZ],31,0);
            }
        }
    }
}
Reply


Messages In This Thread
[AJUDA]icone no mapa - by atsbs - 07.10.2011, 21:25
Re: [AJUDA]icone no mapa - by [NWD]Jim._.Carrey - 07.10.2011, 21:29
Re: [AJUDA]icone no mapa - by atsbs - 07.10.2011, 21:32
Re: [AJUDA]icone no mapa - by atsbs - 07.10.2011, 23:10
Re: [AJUDA]icone no mapa - by atsbs - 07.10.2011, 23:55
Re: [AJUDA]icone no mapa - by [NWD]Jim._.Carrey - 08.10.2011, 00:13
Re: [AJUDA]icone no mapa - by Link_ - 08.10.2011, 00:17
Re: [AJUDA]icone no mapa - by [NWD]Jim._.Carrey - 08.10.2011, 00:23
Re: [AJUDA]icone no mapa - by Lуs - 08.10.2011, 00:24
Re: [AJUDA]icone no mapa - by Link_ - 08.10.2011, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)