SA-MP Forums Archive
Map Icon Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Map Icon Help (/showthread.php?tid=481876)



Map Icon Help - Phil_Cutcliffe - 18.12.2013

pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < sizeof(BusinessInfo); i++)
    {
        if(BusinessInfo[i][bType] == 3) //Clothes
        {
            for(new a = 0; a < MAX_PLAYERS; a++)
            {
                SetPlayerMapIcon( a, 12, BusinessInfo[i][bExitX], BusinessInfo[i][bExitY], BusinessInfo[i][bExitZ], 52, 0, MAPICON_LOCAL );
            }
        }
    }
This compiled fine but didn't work. Is there any way I can do map icons like this for my businesses?


Re: Map Icon Help - Threshold - 18.12.2013

This should be under OnPlayerConnect. Load the business variables under OnGameModeInit, but show the map icon under OnPlayerConnect.


Re: Map Icon Help - Phil_Cutcliffe - 18.12.2013

This didn't work for me either way. I've had to set all the map icons one by one. Tedious but oh well! Thanks anyway pal.