23.08.2012, 12:55
There's alot of these out there...
I made this one myself,
*Note*: This will only work with 3D Squares and Rectangles.
I made this one myself,
pawn Код:
stock IsPointInArea(Float: X, Float: Y, Float: Z, Float: MinX, Float: MinY, Float: MinZ, Float: MaxX, Float: MaxY, Float: MaxZ) {
if((MinX >= X && X >= MaxX) && (MinY >= Y && Y >= MaxY) && (MinZ >= Z && Z >= MaxZ)) {
return true;
}
return false;
}