26.04.2016, 05:00
Use (Col/Map)Andreas to check the Z height difference. If there is a significant difference, then yes the point is in air.
pawn Код:
public OnFilterScriptInit()
{
CA_Init();
return 1;
}
IsXYZinAir(Float:x, Float:y, Float:z)
{
new Float:CA_z;
CA_FindZ_For2DCoord(x, y, CA_z);
return ((-(CA_z - z) * -1) >= 1.0) ? (true) : (false);
}