Zone name
#3

Does that function already exists or do I need to modify: GetPlayer3DZone(playerid, szZone, sizeof(szZone));

I modified it to this:

Код:
stock GetZoneName(Float:x,Float:y,Float:z,zone[],len)
{

	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] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
		{
		    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
		}
	}
	return 0;

}
Reply


Messages In This Thread
Zone name - by SystemX - 02.07.2016, 06:21
Re: Zone name - by Sew_Sumi - 02.07.2016, 06:37
Re: Zone name - by SystemX - 02.07.2016, 06:42
Re: Zone name - by Sew_Sumi - 02.07.2016, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)