11.01.2015, 16:27
pawn Код:
#define CONSTRAINT_MIN_X 0.75
#define CONSTRAINT_MIN_Y 0.75
#define CONSTRAINT_MIN_Z 0.75
#define CONSTRAINT_MAX_X 1.25
#define CONSTRAINT_MAX_Y 1.25
#define CONSTRAINT_MAX_Z 1.25
IsValidScale(Float:sx, Float:sy, Float:sz)
{
if( sx <= CONSTRAINT_MIN_X || sx >= CONSTRAINT_MAX_X ||
sy <= CONSTRAINT_MIN_Y || sy >= CONSTRAINT_MAX_Y ||
sz <= CONSTRAINT_MIN_Z || sz >= CONSTRAINT_MAX_Z ) return 0;
return 1;
}