Interior Locations
#5

Now i'm having a problem, Some of the stores shares the same interior and i'm expecting that it will kept showing "Starfish Casino 24/7" because it uses the same zone area. Any way to fix this?

pawn Код:
{"Starfish Casino 24/7",        {-38.1375,-58.1593,1007.7020,-16.6392,-47.8263,1007.7020}},
    {"The Emerald Isle 24/7",       {-38.1375,-58.1593,1007.7020,-16.6392,-47.8263,1007.7020}},
from the location arrays.

pawn Код:
stock GetPlayer2DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    for(new i = 0; i != sizeof(gSAZones); i++ )
    {
        if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
        {
            return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
        }
    }
    return 0;
}
Reply


Messages In This Thread
Interior Locations - by JaKe Elite - 06.09.2013, 14:39
Re: Interior Locations - by JaKe Elite - 07.09.2013, 07:37
Re: Interior Locations - by XcorelloX - 07.09.2013, 07:47
Re: Interior Locations - by JaKe Elite - 07.09.2013, 07:49
Re: Interior Locations - by JaKe Elite - 07.09.2013, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)