Map Icon Help
#1

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?
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)