07.09.2013, 08:21
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?
from the location arrays.
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}},
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;
}