if(IsPlayerInRangeOfPoint(playerid, Float:Range, Float:X, Float:Y, Float:Z){MoveObject(YourVariable, X, Y, Z);}