SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 07/10/2011, 01:52 PM   #1
Link_
Gangsta
 
Link_'s Avatar
 
Join Date: Jul 2010
Location: Jo„o Monlevade
Posts: 552
Reputation: 3
Default Help one mapicon

Anyone know how to put only one of the houses icon to appear on the map?
Look at the code I tried to do but are not showing up
pawn Code:
forward MapIconStreamer();
public MapIconStreamer()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new Float:SmallestDistance = 99999.9;
            new CP, Float:OldDistance;
            for(new propid; propid<MAX_HOUSES; propid++)
            {
                OldDistance = GetDistanceToProperty(i, propid);
                if(OldDistance < SmallestDistance)
                {
                    SmallestDistance = OldDistance;
                    CP = propid;
                }
            }
RemovePlayerMapIcon(i, 31);
            if(hInfo[CP][TemDono] == 1)
            {
                SetPlayerMapIcon(i, 31, hInfo[ CP ][ iconx ],hInfo[ CP ][ icony ],hInfo[ CP ][ iconz ], 32, 0);
            }
            else
            {
                SetPlayerMapIcon(i, 31, hInfo[ CP ][ iconx ],hInfo[ CP ][ icony ],hInfo[ CP ][ iconz ], 31, 0);
            }
        }
    }
}
__________________

Novo Projeto vem por ae

Brasil Mata-Mata 2012 [ SaW ]



Link_ is offline   Reply With Quote
Old 07/10/2011, 02:05 PM   #2
Salsa
Huge Clucker
 
Salsa's Avatar
 
Join Date: Apr 2011
Location: Tokoyo, Japan
Posts: 438
Reputation: 13
Default Re: Help one mapicon

Me to try but Map icons not showing
__________________
Hosted Tab For 13$ Per Month : DISABLE NOW
Mapping For $ Pm Me If You Want Maps
Need Registered IRC Channel Pm Me I Can Make Irc Channel's On Request
Salsa is offline   Reply With Quote
Old 07/10/2011, 02:24 PM   #3
Link_
Gangsta
 
Link_'s Avatar
 
Join Date: Jul 2010
Location: Jo„o Monlevade
Posts: 552
Reputation: 3
Default Re: Help one mapicon

I did not understand already used most dynamic mapicon flashes
__________________

Novo Projeto vem por ae

Brasil Mata-Mata 2012 [ SaW ]



Link_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion for mapicon scott1 Help Archive 16 04/12/2010 12:11 PM
MapIcon FrankC Help Archive 0 27/09/2010 01:37 PM
[DUV] CheckPoint e Mapicon. . . [NWD]Tweener_ PortuguÍs/Portuguese 4 19/09/2010 02:45 PM
MapIcon help. Doppeyy Help Archive 7 24/06/2010 08:18 PM


All times are GMT. The time now is 07:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.