02.07.2016, 06:42
Does that function already exists or do I need to modify: GetPlayer3DZone(playerid, szZone, sizeof(szZone));
I modified it to this:
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; }