25.03.2009, 14:46
Quote:
Originally Posted by Fabio11
pawn Код:
|
pawn Код:
stock IsPlayerInCube(playerid, Float:xmin, Float:ymin, Float:zmin, Float:xmax, Float:ymax, Float:zmax)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if( x > xmin && y > ymin && z > zmin && x < xmax && y < ymax && z < zmax) return 1;
return 0;
}