11.01.2015, 17:06
still i can increase object size to bigger..
i used like this..
on top
and under onplayereditattachedobject.
i used like this..
on top
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;
}
pawn Код:
if(IsValidScale(fScaleX, fScaleY, fScaleZ))
{
SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
}